From 5aadf1d6490a8c4d550d67c16a82b0b7c83ae898 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 25 Jan 2021 12:21:12 +0000 Subject: [PATCH] Fix Iter_Test invalid python tuple use --- util/test/tests/Iter_Test.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/util/test/tests/Iter_Test.py b/util/test/tests/Iter_Test.py index 9f2d08468..65359778d 100644 --- a/util/test/tests/Iter_Test.py +++ b/util/test/tests/Iter_Test.py @@ -134,13 +134,14 @@ class Iter_Test(rdtest.TestCase): compType = rd.VarTypeCompType(value.type) if compType == rd.CompType.UInt: - debugged = value.value.u32v[0:value.columns] + debugged = list(value.value.u32v[0:value.columns]) elif compType == rd.CompType.SInt: - debugged = value.value.s32v[0:value.columns] + debugged = list(value.value.s32v[0:value.columns]) else: - debugged = value.value.f32v[0:value.columns] + debugged = list(value.value.f32v[0:value.columns]) - # For now, ignore debugged values that are uninitialised. This is an application bug but it causes false reports of problems + # For now, ignore debugged values that are uninitialised. This is an application bug but it causes false + # reports of problems for comp in range(4): if value.value.u32v[comp] == 0xcccccccc: debugged[comp] = expect[comp] @@ -273,7 +274,8 @@ class Iter_Test(rdtest.TestCase): debuggedValue = list(debugged.value.f32v[0:4]) - # For now, ignore debugged values that are uninitialised. This is an application bug but it causes false reports of problems + # For now, ignore debugged values that are uninitialised. This is an application bug but it causes + # false reports of problems for idx in range(4): if debugged.value.u32v[idx] == 0xcccccccc: debuggedValue[idx] = lastmod.shaderOut.col.floatValue[idx]