Commit bf65575e by Nicolas Capens Committed by Nicolas Capens

Fix the write mask of indirect struct accesses.

BUG=17987645 Change-Id: Ie33767573f0994635343b0d0f441c3ebb2462881 Reviewed-on: https://swiftshader-review.googlesource.com/1210Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 129c98aa
......@@ -284,8 +284,8 @@ namespace sh
for(int index = 0; index < result->totalRegisterCount(); index++)
{
Instruction *mov = emit(sw::Shader::OPCODE_MOV, result, left);
mov->dst.index += index;
mov->dst.mask = writeMask(result, index);
argument(mov->src[0], left, index);
if(left->totalRegisterCount() > 1)
......
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