Project: /_project.yaml Book: /_book.yaml

fuchsia.gpu.magma

PROTOCOLS

Device {:#Device}

Defined in fuchsia.gpu.magma/magma.fidl

Query {:#Query}

Get a parameter.

Request

Response

QueryReturnsBuffer {:#QueryReturnsBuffer}

Get a parameter and store it in a new vmo.

Request

Response

Connect {:#Connect}

Get the magma ipc channels.

Request

Response

DumpState {:#DumpState}

Dumps driver and hardware state.

Request

TestRestart {:#TestRestart}

For testing only.

Request

Primary {:#Primary}

Defined in fuchsia.gpu.magma/magma.fidl

ImportBuffer {:#ImportBuffer}

Imports a buffer for use in the system driver.

Request

ReleaseBuffer {:#ReleaseBuffer}

Destroys the buffer with buffer_id within this connection.

Request

ImportObject {:#ImportObject}

Imports an object for use in the system driver.

Request

ReleaseObject {:#ReleaseObject}

Destroys the object with object_id within this connection.

Request

CreateContext {:#CreateContext}

Creates context context_id.

Request

DestroyContext {:#DestroyContext}

Destroys context context_id.

Request

ExecuteCommandBuffer {:#ExecuteCommandBuffer}

Submits a command buffer for execution on the GPU. Note that the buffer referred to by command_buffer must contain a valid magma_system_command_buffer and all associated data structures Transfers ownership of command_buffer.

Request

ExecuteCommandBufferWithResources {:#ExecuteCommandBufferWithResources}

Submits a command buffer for execution on the GPU, with associated resources.

Request

ExecuteImmediateCommands {:#ExecuteImmediateCommands}

Submits a series of commands for execution on the GPU without using a command buffer.

Request

GetError {:#GetError}

Retrieve the current magma error status.

Request

Response

MapBufferGpu {:#MapBufferGpu}

Maps page_count pages of buffer from page_offset onto the GPU in the connection's address space at gpu_va. flags is a set of flags from MAGMA_GPU_MAP_FLAGS that specify how the GPU can access the buffer.

Request

UnmapBufferGpu {:#UnmapBufferGpu}

Releases the mapping at gpu_va from the GPU. Buffers will also be implicitly unmapped when released.

Request

CommitBuffer {:#CommitBuffer}

Ensures that page_count pages starting at page_offset from the beginning of the buffer are backed by physical memory.

Request

STRUCTS

Resource {:#Resource}

Defined in fuchsia.gpu.magma/magma.fidl

CommandBuffer {:#CommandBuffer}

Defined in fuchsia.gpu.magma/magma.fidl

CONSTANTS