wined3d: Use the default queue index for resource fencing.
commitcb4385ea8732df1f3dcc764ced984a45adbbf875
authorStefan Dösinger <stefan@codeweavers.com>
Wed, 9 Mar 2022 10:48:30 +0000 (9 13:48 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 9 Mar 2022 19:54:17 +0000 (9 20:54 +0100)
tree181f0869c2937a52f05d81b1aefd2fa3e09c868f
parente308f53aa6eedef6f86ea39fef463f6932c293ed
wined3d: Use the default queue index for resource fencing.

This removes tracking work entirely from the CS thread and replaces
interlocked with regular writes on the main thread. It also avoids
accessing access_count in read-write mode from two threads.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/cs.c
dlls/wined3d/wined3d_private.h