From 7d418d2f1f8d0297efa86e0579bf151bce790c8b Mon Sep 17 00:00:00 2001 From: Ari Suonpaa Date: Wed, 2 Feb 2022 13:44:42 +0200 Subject: [PATCH] Fix rounding issues with texture generation shader VK-GL-CTS Issue: 3250 Affects: dEQP-VK.graphicsfuzz.cov-fragcoord-bitwise-and-loop-reduce-value-index-array dEQP-VK.graphicsfuzz.cov-loop-exit-conditions-sampler-struct-integer-variable Components: Vulkan Change-Id: I49732c8c9fa77c6fa1a044f1cb846f655a65c1cc --- .../cov-fragcoord-bitwise-and-loop-reduce-value-index-array.amber | 6 +++--- .../cov-loop-exit-conditions-sampler-struct-integer-variable.amber | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-fragcoord-bitwise-and-loop-reduce-value-index-array.amber b/external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-fragcoord-bitwise-and-loop-reduce-value-index-array.amber index 5a75909..0fa453a 100644 --- a/external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-fragcoord-bitwise-and-loop-reduce-value-index-array.amber +++ b/external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-fragcoord-bitwise-and-loop-reduce-value-index-array.amber @@ -32,9 +32,9 @@ layout(location = 0) out vec4 _GLF_color; void main() { _GLF_color = vec4( - gl_FragCoord.x * (1.0 / 256.0), - (int(gl_FragCoord.x) ^ int(gl_FragCoord.y)) * (1.0 / 256.0), - gl_FragCoord.y * (1.0 / 256.0), + floor(gl_FragCoord.x) * (1.0 / 255.0), + (int(gl_FragCoord.x) ^ int(gl_FragCoord.y)) * (1.0 / 255.0), + floor(gl_FragCoord.y) * (1.0 / 255.0), 1.0); } END diff --git a/external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-loop-exit-conditions-sampler-struct-integer-variable.amber b/external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-loop-exit-conditions-sampler-struct-integer-variable.amber index 330e70a..8e6796e 100644 --- a/external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-loop-exit-conditions-sampler-struct-integer-variable.amber +++ b/external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-loop-exit-conditions-sampler-struct-integer-variable.amber @@ -68,9 +68,9 @@ layout(location = 0) out vec4 _GLF_color; void main() { _GLF_color = vec4( - gl_FragCoord.x * (1.0 / 256.0), - (int(gl_FragCoord.x) ^ int(gl_FragCoord.y)) * (1.0 / 256.0), - gl_FragCoord.y * (1.0 / 256.0), + floor(gl_FragCoord.x) * (1.0 / 255.0), + (int(gl_FragCoord.x) ^ int(gl_FragCoord.y)) * (1.0 / 255.0), + floor(gl_FragCoord.y) * (1.0 / 255.0), 1.0); } END -- 2.7.4