mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user