From baa834da12f509163231e0ac2d0281b19fde9ed9 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Sun, 12 Aug 2018 12:02:42 +0200 Subject: [PATCH] shader: Also don't convert when src type is SIGNED and input is int. Closes: #18 Fixes: dEQP- GLES31.functional.geometry_shading.layered.fragment_layer_2d_array dEQP- GLES31.functional.geometry_shading.layered.fragment_layer_2d_multisample_array dEQP-GLES31.functional.geometry_shading.layered.fragment_layer_3d dEQP-GLES31.functional.geometry_shading.layered.fragment_layer_cubemap Reviewed-by: Jakob Bornecrantz Reviewed-by: Gurchetan Singh Signed-off-by: Dave Airlie --- src/vrend_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index b7cddea..b63e1e4 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -2961,7 +2961,7 @@ get_source_info(struct dump_ctx *ctx, create_swizzled_clipdist(ctx, srcs[i], src, j, false, get_string(stypeprefix), prefix, arrayname); } else { enum vrend_type_qualifier srcstypeprefix = stypeprefix; - if (stype == TGSI_TYPE_UNSIGNED && + if ((stype == TGSI_TYPE_UNSIGNED || stype == TGSI_TYPE_SIGNED) && ctx->inputs[j].is_int) srcstypeprefix = TYPE_CONVERSION_NONE;