Iter Test : pixel history and vertex debug changes

Do not pixel debug on an unknown primitive ID (-1)
Allow pixel debug and vertex debug on non-drawcall actions which have non-zero drawIndex i.e. Indirect draws
This commit is contained in:
Jake Turner
2024-11-07 14:54:22 +00:00
parent 88fdd4a2e9
commit dc27caaa08
+17 -2
View File
@@ -59,7 +59,7 @@ class Iter_Test(rdtest.TestCase):
rdtest.log.print("No vertex shader bound at {}".format(action.eventId))
return
if not (action.flags & rd.ActionFlags.Drawcall):
if not (action.flags & rd.ActionFlags.Drawcall) and action.drawIndex == 0:
rdtest.log.print("{} is not a debuggable action".format(action.eventId))
return
@@ -214,9 +214,19 @@ class Iter_Test(rdtest.TestCase):
mod = history[i]
action = self.find_action('', mod.eventId)
if action is None or not (action.flags & rd.ActionFlags.Drawcall):
if action is None:
continue
if not(action.flags & rd.ActionFlags.Drawcall):
if action.drawIndex == 0:
continue
if not(action.flags & rd.ActionFlags.Clea):
continue
if not(action.flags & rd.ActionFlags.Copy):
continue
if not(action.flags & rd.ActionFlags.Resolve):
continue
rdtest.log.print(" hit %d at %d (%s)" % (i, mod.eventId, str(action.flags)))
lastmod = history[i]
@@ -233,6 +243,11 @@ class Iter_Test(rdtest.TestCase):
lastmod = None
continue
if mod.primitiveID == 0xffffffff:
rdtest.log.print("This hit's primitive ID is invalid, looking for one that is valid....")
lastmod = None
continue
break
if target == pipe.GetDepthTarget().resource: