mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 08:10:14 +01:00
nouveau/codegen: allow tex offsets on non-TXF instructions (e.g. TXL)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
This commit is contained in:
parent
f76c7ad5b1
commit
0befbafb4b
1 changed files with 8 additions and 0 deletions
|
|
@ -1728,6 +1728,14 @@ Converter::handleTEX(Value *dst[4], int R, int S, int L, int C, int Dx, int Dy)
|
|||
if (tgsi.getOpcode() == TGSI_OPCODE_SAMPLE_C_LZ)
|
||||
texi->tex.levelZero = true;
|
||||
|
||||
for (s = 0; s < tgsi.getNumTexOffsets(); ++s) {
|
||||
for (c = 0; c < 3; ++c) {
|
||||
texi->tex.offset[s][c] = tgsi.getTexOffset(s).getValueU32(c, info);
|
||||
if (texi->tex.offset[s][c])
|
||||
texi->tex.useOffsets = s + 1;
|
||||
}
|
||||
}
|
||||
|
||||
bb->insertTail(texi);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue