class FakeContextStateBuffer
Defined at line 41 of file ../../src/graphics/drivers/msd-vsi-vip/tests/unit_tests/test_command_buffer.h
This holds the buffer that can be passed as the context state buffer for a batch.
Public Methods
void CreateWithEvent (std::unique_ptr<MsdVsiDevice> &device,std::shared_ptr<MsdVsiContext>context,uint32_tgpu_addr,std::unique_ptr<FakeContextStateBuffer> *out_buffer)
Returns a fake context state buffer in |out_buffer|, which has an EVENT command written
to the underlying platform buffer. After submitting the batch, the caller can verify the
buffer was executed by calling |WaitForCompletion|, which will wait for the EVENT
to be executed.
Defined at line 47 of file ../../src/graphics/drivers/msd-vsi-vip/tests/unit_tests/test_command_buffer.h
void FakeContextStateBuffer (std::shared_ptr<MsdVsiBuffer>buf,uint32_tdata_size,std::unique_ptr<magma::PlatformSemaphore>semaphore)
Defined at line 63 of file ../../src/graphics/drivers/msd-vsi-vip/tests/unit_tests/test_command_buffer.h
CommandBuffer::ExecResource ExecResource ()
Defined at line 67 of file ../../src/graphics/drivers/msd-vsi-vip/tests/unit_tests/test_command_buffer.h
void WaitForCompletion ()
Defined at line 71 of file ../../src/graphics/drivers/msd-vsi-vip/tests/unit_tests/test_command_buffer.h