amdgpu: Add explicit dependency test

Graphics / Mesa 3D Graphics Library / libdrm - Andrey Grodzovsky [] - 30 November 2017 19:51 EST

The test is as following:

1) Create context A & B 2) Send a command submission using context A which fires up a compute shader. 3) The shader wait a bit and then write a value to a memory location. 4) Send a command submission using context B which writes another value to the same memory location, but having an explicit dependency on the first command submission. 5) Wait with the CPU for both submissions to finish and inspect the written value.

Test passes if the value seen in the memory location after both submissions is from command B.

bc21168f amdgpu: Add explicit dependency test.
tests/amdgpu/amdgpu_test.c | 18 ++++
tests/amdgpu/basic_tests.c | 264 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 282 insertions(+)


  • Share