Add additional check on index buffer values being out of bounds

This commit is contained in:
baldurk
2024-12-02 15:45:34 +00:00
parent 3de21cd16f
commit 8d04479d20
+4
View File
@@ -95,6 +95,10 @@ class Iter_Test(rdtest.TestCase):
idx = indices[0]
if idx is None:
rdtest.log.print("Index buffer out of bounds for idx 0, skipping")
return
striprestart_index = pipe.GetRestartIndex() & ((1 << (ib.byteStride*8)) - 1)
if pipe.IsRestartEnabled() and idx == striprestart_index: