From dc27caaa08eab643733d8088fd4f220b484fb48e Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Thu, 7 Nov 2024 14:54:22 +0000 Subject: [PATCH] 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 --- util/test/tests/Iter_Test.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/util/test/tests/Iter_Test.py b/util/test/tests/Iter_Test.py index f27d5476f..c4a2c1b4a 100644 --- a/util/test/tests/Iter_Test.py +++ b/util/test/tests/Iter_Test.py @@ -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: