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 <jakob@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Gert Wollny 6 years ago committed by Dave Airlie
parent a135a16c37
commit baa834da12
  1. 2
      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;

Loading…
Cancel
Save