wined3d: Provide a null counter BO for slots with no corresponding XFB buffer bound.
commitfbd53c3a3f65792608281be25ad5dcb315a6f2eb
authorZebediah Figura <zfigura@codeweavers.com>
Thu, 9 Nov 2023 00:10:31 +0000 (8 18:10 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 16 Nov 2023 12:43:49 +0000 (16 13:43 +0100)
tree3462ebfd621bee7e3fb2262c47b241d45a3da805
parentce59348c8f5e2d24f70a00b1181f06b025649a50
wined3d: Provide a null counter BO for slots with no corresponding XFB buffer bound.

The Vulkan specification does not currently mandate this. However, an
(unfortunately internal) Khronos discussion determined that this is an
oversight, and that many drivers likely expect that no counter buffer will be
bound if no XFB buffer is bound. Accordingly the specification will probably
mandate this in the future.

lavapipe is such a driver. This fixes a crash with llvmpipe in
test_index_buffer_offset().
dlls/wined3d/context_vk.c