radv/sqtt: fix wrong check in radv_is_thread_trace_complete()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 Mar 2020 13:59:45 +0000 (14:59 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 08:00:39 +0000 (08:00 +0000)
Oops, should be equal actually.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4022>

src/amd/vulkan/radv_sqtt.c

index c04a79f2842a24ca08527ad53a6ab87e5752948e..669d4a846ca626fe82a89d6d398c3ac588b8093c 100644 (file)
@@ -505,7 +505,7 @@ radv_is_thread_trace_complete(struct radv_device *device,
        /* Otherwise, compare the current thread trace offset with the number
         * of written bytes.
         */
-       return info->cur_offset < info->gfx9_write_counter;
+       return info->cur_offset == info->gfx9_write_counter;
 }
 
 static uint32_t