diff options
author | Rob Clark <[email protected]> | 2017-05-15 13:24:34 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-05-16 16:34:21 -0400 |
commit | 2216a95946cda54227bdb04f2fc92ad9695014ce (patch) | |
tree | dd8035bf29c6433850ae8af7db7b65b1c6c38c6b /src/gallium/auxiliary/nir | |
parent | b00fbb7dafbf4bde0e6ddefd4aece622795a821c (diff) |
ttn: fix txd src sizes
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/nir')
-rw-r--r-- | src/gallium/auxiliary/nir/tgsi_to_nir.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 3b8e321771a..bdcf218c975 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -1411,15 +1411,17 @@ ttn_tex(struct ttn_compile *c, nir_alu_dest dest, nir_ssa_def **src) } if (tgsi_inst->Instruction.Opcode == TGSI_OPCODE_TXD) { + instr->src[src_number].src_type = nir_tex_src_ddx; instr->src[src_number].src = nir_src_for_ssa(nir_swizzle(b, src[1], SWIZ(X, Y, Z, W), - instr->coord_components, false)); - instr->src[src_number].src_type = nir_tex_src_ddx; + nir_tex_instr_src_size(instr, src_number), + false)); src_number++; + instr->src[src_number].src_type = nir_tex_src_ddy; instr->src[src_number].src = nir_src_for_ssa(nir_swizzle(b, src[2], SWIZ(X, Y, Z, W), - instr->coord_components, false)); - instr->src[src_number].src_type = nir_tex_src_ddy; + nir_tex_instr_src_size(instr, src_number), + false)); src_number++; } |