[Piglit] [PATCH] arb_gpu_shader_int64: Test shifting by more than 32
Pierre Moreau
pierre.morrow at free.fr
Sun Dec 24 18:41:06 UTC 2017
Ping
Merry Christmas everyone!
Pierre
On 2017-12-03 — 20:51, Pierre Moreau wrote:
> 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
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20171224/af5edc8d/attachment.sig>
More information about the Piglit
mailing list