i965: Fix shaders that write to gl_PointSize on Sandybridge.
gl_PointSize (VERT_RESULT_PSIZ) doesn't take up a message register, as it's part of the header. Without this fix, writing to gl_PointSize would cause the SF to read and use the wrong attributes, leading to all kinds of random looking failure. Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -54,6 +54,8 @@ get_attr_override(struct brw_context *brw, int fs_attr, int two_side_color)
|
||||
* be FRAG_ATTRIB_*.
|
||||
*/
|
||||
for (i = 1; i < vs_attr; i++) {
|
||||
if (i == VERT_RESULT_PSIZ)
|
||||
continue;
|
||||
if (brw->vs.prog_data->outputs_written & BITFIELD64_BIT(i))
|
||||
attr_index++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user