diff options
author | Paul Berry <[email protected]> | 2011-08-24 18:41:30 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-09-06 11:04:47 -0700 |
commit | 08f030baec3d13805c5800183550d8ad88ed8881 (patch) | |
tree | 992c891ee5e70173843d6a254518f4923f294d43 /src/mesa/drivers/dri/i965/brw_sf.c | |
parent | 84e7d04e1d2ac9621c5fbb0f878164e7c16d2cf7 (diff) |
i965: SF: Remove attr_to_idx and idx_to_attr.
These data structures were serving the same purpose as the VUE map,
but were buggy. Now that the code has been transitioned to use the
VUE map, they are not needed.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_sf.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sf.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf.c b/src/mesa/drivers/dri/i965/brw_sf.c index 7b003dcdff7..ecbc9fdbc44 100644 --- a/src/mesa/drivers/dri/i965/brw_sf.c +++ b/src/mesa/drivers/dri/i965/brw_sf.c @@ -53,7 +53,7 @@ static void compile_sf_prog( struct brw_context *brw, const GLuint *program; void *mem_ctx; GLuint program_size; - GLuint i, idx; + GLuint i; memset(&c, 0, sizeof(c)); @@ -74,16 +74,6 @@ static void compile_sf_prog( struct brw_context *brw, c.prog_data.urb_read_length = c.nr_attr_regs; c.prog_data.urb_entry_size = c.nr_setup_regs * 2; - /* Construct map from attribute number to position in the vertex. - */ - for (i = idx = 0; i < VERT_RESULT_MAX; i++) { - if (c.key.attrs & BITFIELD64_BIT(i)) { - c.attr_to_idx[i] = idx; - c.idx_to_attr[idx] = i; - idx++; - } - } - /* Which primitive? Or all three? */ switch (key->primitive) { |