radv: reset non-syncobj semaphore context after wait.
authorDave Airlie <airlied@redhat.com>
Fri, 21 Jul 2017 22:56:02 +0000 (23:56 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 21 Jul 2017 23:03:26 +0000 (00:03 +0100)
When I ported from libdrm, I forgot to add the line to reset
the sem, we just need to reset the context.

This fixes a regression in DOOM.

Fixes: 9ac1432a571 ("radv: port to new libdrm API.")
Reported-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c

index bc4d460cf44c80cba8621484305a6bde054b6e06..0d89b950d2e11d075b926d10110c51441341d307 100644 (file)
@@ -1173,6 +1173,8 @@ static int radv_amdgpu_cs_submit(struct radv_amdgpu_ctx *ctx,
                        struct drm_amdgpu_cs_chunk_dep *dep = &sem_dependencies[sem_count++];
 
                        amdgpu_cs_chunk_fence_to_dep(sem, dep);
+
+                       sem->context = NULL;
                }
                i = num_chunks++;