From 232c4a9ecbfa6d5d1401d21211655d214d59895c Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 10 Dec 2020 16:40:10 +0000 Subject: [PATCH] Fix texture zoo tests --- util/test/rdtest/shared/Texture_Zoo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/test/rdtest/shared/Texture_Zoo.py b/util/test/rdtest/shared/Texture_Zoo.py index 9dbc94753..d85397528 100644 --- a/util/test/rdtest/shared/Texture_Zoo.py +++ b/util/test/rdtest/shared/Texture_Zoo.py @@ -329,7 +329,7 @@ class Texture_Zoo(): val: rd.PixelValue = self.pick(pipe.GetOutputTargets()[0].resourceId, int(view.x + view.width / 2), int(view.y + view.height / 2), rd.Subresource(), rd.CompType.Typeless) - picked = val.floatValue + picked = list(val.floatValue) # A8 picked values come out in alpha, but we want to compare against the single channel if tex.format.type == rd.ResourceFormatType.A8: @@ -457,7 +457,7 @@ class Texture_Zoo(): elif comp_type == rd.CompType.UInt: picked = [float(a) for a in picked_combo.uintValue] else: - picked = picked_combo.floatValue + picked = list(picked_combo.floatValue) # alpha channel in 10:10:10:2 has extremely low precision, and the ULP requirements mean # we basically can't trust anything between 0 and 1 on float formats. Just round in that