[Piglit] [PATCH] arb_gpu_shader_int64: Test shifting by more than 32

Pierre Moreau pierre.morrow at free.fr
Sun Dec 3 19:51:16 UTC 2017


Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
---

This is my first patch to piglit and do not have commit access.

There was an error in Nouveau for shifts by more than 32; this could be helpful
for other drivers that have a different code path for shift by >32.

 .../execution/fs-shift-scalar-by-scalar.shader_test           | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/spec/arb_gpu_shader_int64/execution/fs-shift-scalar-by-scalar.shader_test b/tests/spec/arb_gpu_shader_int64/execution/fs-shift-scalar-by-scalar.shader_test
index e66798dff..3851fcd93 100644
--- a/tests/spec/arb_gpu_shader_int64/execution/fs-shift-scalar-by-scalar.shader_test
+++ b/tests/spec/arb_gpu_shader_int64/execution/fs-shift-scalar-by-scalar.shader_test
@@ -73,6 +73,17 @@ uniform uint64_t uexpected_shl 0x0000008501020300
 uniform uint64_t uexpected_shr 0x0014000000850102
 draw rect ortho 8 0 4 4
 
+uniform int64_t ival -0x7dfcfefbdf6536ff # bit pattern: 0x82030104209ac901
+uniform uint64_t uval 0x1400000085010203
+uniform int shl 36
+uniform int shr 36
+uniform int64_t iexpected_shl 0x09ac901000000000
+uniform int64_t iexpected_shr -0x7dfcff0 # bit pattern: 0xfffffffff8203010
+uniform uint64_t uexpected_shl 0x5010203000000000
+uniform uint64_t uexpected_shr 0x0000000001400000
+draw rect ortho 12 0 4 4
+
 probe rect rgba (0, 0, 4, 4) (0.0, 1.0, 0.0, 1.0)
 probe rect rgba (4, 0, 4, 4) (0.0, 1.0, 0.0, 1.0)
 probe rect rgba (8, 0, 4, 4) (0.0, 1.0, 0.0, 1.0)
+probe rect rgba (12, 0, 4, 4) (0.0, 1.0, 0.0, 1.0)
-- 
2.15.0



More information about the Piglit mailing list