aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-23 17:15:42 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-02-13 02:18:38 -0300
commit0cc70777cada35ea05287ff9a3da9f252120462f (patch)
tree1f9915c1b87e9fffca0a80f85386201c89f2251f /src/video_core/gpu_thread.cpp
parent8e14700d9c5e4ab2ead91b4ca4a9fea78414ac25 (diff)
vk_buffer_cache: Add support for null index buffers
Games can bind a null index buffer (size=0) where all indices are evaluated as zero. VK_EXT_robustness2 doesn't support this and all drivers segfault when a null index buffer is passed to vkCmdBindIndexBuffer. Workaround this by creating a 4 byte buffer and filling it with zeroes. If it's read out of bounds, robustness takes care of returning zeroes as indices.
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
0 files changed, 0 insertions, 0 deletions