Skip to content

Commit 9c31e01

Browse files
committed
Fix validate_trace() being called from generate_full_trace()
1 parent 6fe5e8d commit 9c31e01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

util/test/rdtest/testcase.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,13 +739,15 @@ def compare_full_traces(self, expectedStates: List[rd.ShaderDebugState], states:
739739

740740
def generate_full_trace(self, trace: rd.ShaderDebugTrace) -> List[rd.ShaderDebugState]:
741741
allStates = []
742+
allChanges = []
742743
while True:
743744
states = self.controller.ContinueDebug(trace.debugger)
744745
if len(states) == 0:
745746
break
746747
for state in states:
747748
allStates.append(state)
748-
self.validate_trace(allStates)
749+
allChanges.append(state.changes)
750+
self.validate_trace(allChanges)
749751
return allStates
750752

751753
def process_trace(self, trace: rd.ShaderDebugTrace, validate: bool = True):

0 commit comments

Comments
 (0)