mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
nv50/ir: mark STORE destination inputs as used
Observed an issue when looking at the code generatedy by the image-vertex-attrib-input-output piglit test. Even though the test itself worked fine (due to TIC 0 being used for the image), this needs to be fixed. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
869e32593a
commit
1b9d1e13d8
1 changed files with 6 additions and 0 deletions
|
|
@ -1591,6 +1591,12 @@ bool Source::scanInstruction(const struct tgsi_full_instruction *inst)
|
|||
if (insn.getOpcode() == TGSI_OPCODE_STORE &&
|
||||
dst.getFile() != TGSI_FILE_MEMORY) {
|
||||
info->io.globalAccess |= 0x2;
|
||||
|
||||
if (dst.getFile() == TGSI_FILE_INPUT) {
|
||||
// TODO: Handle indirect somehow?
|
||||
const int i = dst.getIndex(0);
|
||||
info->in[i].mask |= 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (dst.getFile() == TGSI_FILE_OUTPUT) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue