Commit 8157d5ce by Nicolas Capens

Fix the type used for structure field write masks.

The index used to index into a structure (a scalar) used to have the vector size of the resulting type. This changed recently to always be 1, so the field type size needs to be determined from the fields themselves, which is also the type of the indexing result. Change-Id: I2dc373d8d31b02c0f69879cb0a3feacd83d6e473 Reviewed-on: https://swiftshader-review.googlesource.com/8368Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 5da143cb
......@@ -2455,7 +2455,7 @@ namespace glsl
dst.type = registerType(left);
dst.index += fieldOffset;
dst.mask = writeMask(right);
dst.mask = writeMask(result);
return 0xE4;
}
......
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