Commit 3ae571ed by Nicolas Capens Committed by Nicolas Capens

Fix taking the index into account for write mask.

Change-Id: I25251e94680624c8c85698e96a053f518bb2c367 Reviewed-on: https://swiftshader-review.googlesource.com/13968Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 6986b28f
......@@ -2288,7 +2288,7 @@ namespace glsl
{
parameter.type = registerType(arg);
parameter.index = registerIndex(arg) + index;
parameter.mask = writeMask(arg);
parameter.mask = writeMask(arg, index);
}
void OutputASM::copy(TIntermTyped *dst, TIntermNode *src, int offset)
......@@ -2296,7 +2296,6 @@ namespace glsl
for(int index = 0; index < dst->totalRegisterCount(); index++)
{
Instruction *mov = emit(sw::Shader::OPCODE_MOV, dst, index, src, offset + index);
mov->dst.mask = writeMask(dst, index);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment