template <>
class WireWeakOnewayBufferClientImpl
Defined at line 9584 of file fidling/gen/sdk/fidl/fuchsia.gpu.magma/fuchsia.gpu.magma/cpp/fidl/fuchsia.gpu.magma/cpp/wire_messaging.h
Public Methods
::fidl::OneWayStatus ImportObject (::fuchsia_gpu_magma::wire::PrimaryImportObjectRequest PrimaryImportObjectRequest)
Imports an object for use in the system driver.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus ReleaseObject (uint64_t object_id, ::fuchsia_gpu_magma::wire::ObjectType object_type)
Destroys the object with `object_id` within this connection.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus CreateContext (uint32_t context_id)
Creates context `context_id` for use in command execution. A context may be associated
with hardware state.
DEPRECATED: Please use CreateContext2.
TODO(https://fxbug.dev/413030654): Fully deprecate this API.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus CreateContext2 (uint32_t context_id, ::fuchsia_gpu_magma::wire::Priority priority)
Creates context `context_id` for use in command execution. A context may be associated
with hardware state.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus DestroyContext (uint32_t context_id)
Destroys context `context_id`.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus ExecuteCommand (uint32_t context_id, ::fidl::VectorView< ::fuchsia_gpu_magma::wire::BufferRange> resources, ::fidl::VectorView< ::fuchsia_gpu_magma::wire::CommandBuffer> command_buffers, ::fidl::VectorView<uint64_t> wait_semaphores, ::fidl::VectorView<uint64_t> signal_semaphores, ::fuchsia_gpu_magma::wire::CommandBufferFlags flags)
Submits command buffers for execution on the hardware, with associated `resources`.
`resources` must refer to buffers that have been imported.
`wait_semaphores` and `signal_semaphores` must refer to events that have been imported.
`wait_semaphores` must all be signaled before execution begins, then are reset.
`signal_semaphores` will be signaled after the command buffer is completed.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus ExecuteInlineCommands (uint32_t context_id, ::fidl::VectorView< ::fuchsia_gpu_magma::wire::InlineCommand> commands)
Submits a series of commands for execution on the hardware without using a command buffer.
The number of commands sent should be calculated so that the total message size is less than
MAX_INLINE_COMMANDS_DATA_SIZE.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus MapBuffer (::fuchsia_gpu_magma::wire::PrimaryMapBufferRequest PrimaryMapBufferRequest)
Maps a page range onto the hardware in the connection's address space at address `hw_va`.
`flags` is a set of flags from MapFlags that specify how the hardware can access the buffer.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus UnmapBuffer (::fuchsia_gpu_magma::wire::PrimaryUnmapBufferRequest PrimaryUnmapBufferRequest)
Releases the mapping at address `hw_va` from the hardware for the given `buffer_id`.
Buffers will also be implicitly unmapped when released.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus BufferRangeOp2 (::fuchsia_gpu_magma::wire::BufferOp op, const ::fuchsia_gpu_magma::wire::BufferRange & range)
Perform an operation on a range of the buffer.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus EnableFlowControl ()
Enables the events OnNotifyMessagesConsumed and OnNotifyMemoryImported.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus EnablePerformanceCounterAccess (::zx::event && access_token)
Tries to enable performance counter FIDL messages. To be successful, |access_token| must
have been returned by PerformanceCounterAccess.GetPerformanceCountToken() from the matching
device.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus EnablePerformanceCounters (::fidl::VectorView<uint64_t> counters)
Enables a set of performance counters. Disables enabled performance counters that are not
in the new set. Performance counters will also be automatically disabled on connection
close. Performance counter access must have been enabled using
EnablePerformanceCounterAccess before calling this method.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus CreatePerformanceCounterBufferPool (uint64_t pool_id, ::fidl::ServerEnd< ::fuchsia_gpu_magma::PerformanceCounterEvents> && event_channel)
Creates a pool of buffers that performance counters can be dumped into. Performance counter
access must have been enabled using EnablePerformanceCounterAccess before calling this
method.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus ReleasePerformanceCounterBufferPool (uint64_t pool_id)
Releases a pool of performance counter buffers. Performance counter access must have been
enabled using EnablePerformanceCounterAccess before calling this method.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus AddPerformanceCounterBufferOffsetsToPool (uint64_t pool_id, ::fidl::VectorView< ::fuchsia_gpu_magma::wire::BufferRange> offsets)
Adds a set of offsets into buffers to the pool. |offsets[n].buffer_id| is the id of a
buffer that was previously imported using ImportBuffer(). The same buffer may be added to
multiple pools. The pool will hold on to a reference to the buffer even after ReleaseBuffer
is called. When dumped into this entry, counters will be written starting at
|offsets[n].buffer_offset| bytes into the buffer, and up to |offsets[n].buffer_offset| +
|offsets[n].buffer_size|. |offsets[n].buffer_size| must be large enough to fit all enabled
counters. Performance counter access must have been enabled using
EnablePerformanceCounterAccess before calling this method.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus RemovePerformanceCounterBufferFromPool (uint64_t pool_id, uint64_t buffer_id)
Removes every offset of a buffer from the pool. Once this method is finished being handled
on the server, no more dumps will be processed into this buffer. In-flight dumps into this
buffer may be lost. Performance counter access must have been enabled using
EnablePerformanceCounterAccess before calling this method.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus DumpPerformanceCounters (uint64_t pool_id, uint32_t trigger_id)
Triggers dumping of the performance counters into a buffer pool. May fail silently if there
are no buffers in the pool. |trigger_id| is an arbitrary ID assigned by the client that can
be returned in OnPerformanceCounterReadCompleted. Performance counter access must have been
enabled using EnablePerformanceCounterAccess before calling this method.
Caller provides the backing storage for FIDL message.
::fidl::OneWayStatus ClearPerformanceCounters (::fidl::VectorView<uint64_t> counters)
Sets the values of all listed performance counters to 0. May not be supported by some
hardware. Performance counter access must have been enabled using
EnablePerformanceCounterAccess before calling this method.
Caller provides the backing storage for FIDL message.