diff options
author | Marek Olšák <[email protected]> | 2019-08-13 15:25:40 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-08-13 18:15:53 -0400 |
commit | 88a511bd42c22fc44f0fe49b607f3b79247192a9 (patch) | |
tree | 5782aad355530a8280dc3840b0b08a14fd67cd12 /src/gallium/auxiliary/nir/tgsi_to_nir.c | |
parent | 37841f52b23dec1ef041fe96bb9fd7bdccb9306f (diff) |
tgsi_to_nir: fix incorrect number of image src1 components
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/nir/tgsi_to_nir.c')
-rw-r--r-- | src/gallium/auxiliary/nir/tgsi_to_nir.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 8c49acce60a..cd8604eec71 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -1893,14 +1893,11 @@ ttn_mem(struct ttn_compile *c, nir_alu_dest dest, nir_ssa_def **src) dim, is_array, base_type, access, format); nir_deref_instr *image_deref = nir_build_deref_var(b, image); const struct glsl_type *type = image_deref->type; - unsigned coord_components = glsl_get_sampler_coordinate_components(type); nir_intrinsic_set_access(instr, image_deref->var->data.image.access); instr->src[0] = nir_src_for_ssa(&image_deref->dest.ssa); - instr->src[1] = nir_src_for_ssa(nir_swizzle(b, src[addr_src_index], - SWIZ(X, Y, Z, W), - coord_components)); + instr->src[1] = nir_src_for_ssa(src[addr_src_index]); /* Set the sample argument, which is undefined for single-sample images. */ if (glsl_get_sampler_dim(type) == GLSL_SAMPLER_DIM_MS) { |