Fix rounding issues with texture generation shader
authorAri Suonpaa <ari.suonpaa@siru.fi>
Wed, 2 Feb 2022 11:44:42 +0000 (13:44 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 10 Feb 2022 16:12:25 +0000 (16:12 +0000)
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

external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-fragcoord-bitwise-and-loop-reduce-value-index-array.amber
external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-loop-exit-conditions-sampler-struct-integer-variable.amber

index 5a75909..0fa453a 100644 (file)
@@ -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
index 330e70a..8e6796e 100644 (file)
@@ -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