OSDN Git Service

radv: Fix timeline semaphore refcounting.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 22 Nov 2019 00:51:36 +0000 (01:51 +0100)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 3 Dec 2019 18:23:24 +0000 (10:23 -0800)
commit0ca8b506a467551a7f643083085dd1215792e081
treeffc25552582cf4f8e13e57b78d21a68251db3372
parenta26064534501fe9857252367a8d593f0c7b8cee3
radv: Fix timeline semaphore refcounting.

Was totally broken ...

Removed two if(point) {} because point is always non-NULL and we
were counting on that already for counting, since we NULL our
references to semaphores without active point earlier.

Fixes: 4aa75bb3bdd "radv: Add wait-before-submit support for timelines."
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2137
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
(cherry picked from commit 48fc65413c8607390b2ed8cdaccac490d8c8fdae)
src/amd/vulkan/radv_device.c