mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +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
(cherry picked from commit 1b9d1e13d8)
This commit is contained in:
parent
49e105048b
commit
43234ba02a
1 changed files with 6 additions and 0 deletions
|
|
@ -1587,6 +1587,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