Add more alternatives to reflect() precision tests
Intel/Mesa started to generate these in some scenarios recently.
Components: Vulkan
Vk-GL-CTS Issue: 392
Affects:
dEQP-VK.glsl.builtin.precision.reflect.*
Change-Id: Ic943cf14d531e392c03adf18605e6330267be4a1
diff --git a/external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp b/external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp
index 18a89ad..b73ef14 100644
--- a/external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp
+++ b/external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp
@@ -3077,7 +3077,9 @@
const ExprP<float> dotNI = bindExpression("dotNI", ctx, dot(n, i));
return i - alternatives((n * dotNI) * constant(2.0f),
- n * (dotNI * constant(2.0f)));
+ alternatives(n * (dotNI * constant(2.0f)),
+ alternatives(n * dot(i * constant(2.0f), n),
+ n * dot(i, n * constant(2.0f)))));
}
};