diff options
author | Paul Berry <[email protected]> | 2011-08-24 18:57:32 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-09-06 11:04:50 -0700 |
commit | 58d9c95b3cb54383d07ca5560a1685fbe8588860 (patch) | |
tree | 0b4150597ac433b0e900fbfcbe48f4094f2f33b1 /src/mesa/drivers/dri/i965 | |
parent | 08f030baec3d13805c5800183550d8ad88ed8881 (diff) |
i965: SF: Stop using nr_setup_attrs in compute_masks.
Previously, the SF used nr_setup_attrs to determine whether it was
looking at the last element of the VUE. Changed this code to use the
VUE map.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sf_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf_emit.c b/src/mesa/drivers/dri/i965/brw_sf_emit.c index 0532d4ee468..532d3272934 100644 --- a/src/mesa/drivers/dri/i965/brw_sf_emit.c +++ b/src/mesa/drivers/dri/i965/brw_sf_emit.c @@ -358,7 +358,7 @@ static GLboolean calculate_masks( struct brw_sf_compile *c, /* Maybe only processs one attribute on the final round: */ - if (reg*2+1 < c->nr_setup_attrs) { + if (vert_reg_to_vert_result(c, reg, 1) != BRW_VERT_RESULT_MAX) { *pc |= 0xf0; if (persp_mask & BITFIELD64_BIT(vert_reg_to_vert_result(c, reg, 1))) |