[Piglit] [PATCH] ARB_gpu_shader_int64: test that swizzles of constants work
Ilia Mirkin
imirkin at alum.mit.edu
Thu Aug 17 02:20:39 UTC 2017
Currently mesa produces this:
glsl/ir_constant_expression.cpp:735: virtual ir_constant*
ir_swizzle::constant_expression_value(void*, hash_table*): Assertion
`!"Should not get here."' failed.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
tests/spec/arb_gpu_shader_int64/compiler/const-swizzle.vert | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 tests/spec/arb_gpu_shader_int64/compiler/const-swizzle.vert
diff --git a/tests/spec/arb_gpu_shader_int64/compiler/const-swizzle.vert b/tests/spec/arb_gpu_shader_int64/compiler/const-swizzle.vert
new file mode 100644
index 000000000..46a7ee181
--- /dev/null
+++ b/tests/spec/arb_gpu_shader_int64/compiler/const-swizzle.vert
@@ -0,0 +1,13 @@
+#version 330
+#extension GL_ARB_gpu_shader_int64: require
+
+/* [config]
+ * expect_result: pass
+ * glsl_version: 3.30
+ * require_extensions: GL_ARB_gpu_shader_int64
+ * [end config]
+*/
+
+uint64_t f() {
+ return u64vec2(1UL, 2UL).y;
+}
--
2.13.0
More information about the Piglit
mailing list