mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
pan/bi: Emit a combine even if we only pass one staging reg to TEXC
We need that to account for potential swizzling on the source reg. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7615>
This commit is contained in:
parent
b9121624fc
commit
bbd3a8eadd
1 changed files with 1 additions and 4 deletions
|
|
@ -2074,16 +2074,13 @@ emit_texc(bi_context *ctx, nir_tex_instr *instr)
|
|||
}
|
||||
}
|
||||
|
||||
if (dreg_index > 1) {
|
||||
if (dreg_index >= 1) {
|
||||
/* Pass combined data registers together */
|
||||
tex.src[0] = combine.dest;
|
||||
bi_emit(ctx, combine);
|
||||
|
||||
for (unsigned i = 0; i < dreg_index; ++i)
|
||||
tex.swizzle[0][i] = i;
|
||||
} else if (dreg_index == 1) {
|
||||
tex.src[0] = combine.src[0];
|
||||
tex.swizzle[0][0] = combine.swizzle[0][0];
|
||||
} else {
|
||||
tex.src[0] = tex.dest;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue