nv50/ir: we can't load local memory directly into an output
This fixes piglit tests like tests/spec/glsl-1.10/execution/variable-indexing/vs-output-array-float-index-wr.shader_test and related ones. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
@@ -372,7 +372,8 @@ NV50LegalizeSSA::propagateWriteToOutput(Instruction *st)
|
||||
return;
|
||||
|
||||
for (int s = 0; di->srcExists(s); ++s)
|
||||
if (di->src(s).getFile() == FILE_IMMEDIATE)
|
||||
if (di->src(s).getFile() == FILE_IMMEDIATE ||
|
||||
di->src(s).getFile() == FILE_MEMORY_LOCAL)
|
||||
return;
|
||||
|
||||
if (prog->getType() == Program::TYPE_GEOMETRY) {
|
||||
|
||||
Reference in New Issue
Block a user