summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_clip.c
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2011-08-26 09:30:35 -0700
committerPaul Berry <stereotype441@gmail.com>2011-09-06 11:05:38 -0700
commit78be5bcb222d379a07979de98ff5b9e3549de6a7 (patch)
tree7989f68f8abad37f523eb6125213bd2a2528af5f /src/mesa/drivers/dri/i965/brw_clip.c
parent4efb32c642507228d5bfebbd6d403dd9944f9b7c (diff)
downloadexternal_mesa3d-78be5bcb222d379a07979de98ff5b9e3549de6a7.zip
external_mesa3d-78be5bcb222d379a07979de98ff5b9e3549de6a7.tar.gz
external_mesa3d-78be5bcb222d379a07979de98ff5b9e3549de6a7.tar.bz2
i965: clip: Remove no-longer-needed variables.
The variables offset[], idx_to_attr[], nr_bytes, nr_attrs, and header_regs were all serving purposes which are now served by the VUE map. Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_clip.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_clip.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_clip.c b/src/mesa/drivers/dri/i965/brw_clip.c
index 8929160..32c0778 100644
--- a/src/mesa/drivers/dri/i965/brw_clip.c
+++ b/src/mesa/drivers/dri/i965/brw_clip.c
@@ -56,7 +56,6 @@ static void compile_clip_prog( struct brw_context *brw,
const GLuint *program;
void *mem_ctx;
GLuint program_size;
- GLuint delta;
GLuint i;
memset(&c, 0, sizeof(c));
@@ -73,26 +72,6 @@ static void compile_clip_prog( struct brw_context *brw,
brw_compute_vue_map(&c.vue_map, intel, c.key.nr_userclip,
c.key.do_twoside_color, c.key.attrs);
- /* Need to locate the two positions present in vertex + header.
- * These are currently hardcoded:
- */
- if (intel->gen == 5)
- c.header_regs = 3;
- else
- c.header_regs = 1;
-
- delta = c.header_regs * REG_SIZE;
-
- for (i = 0; i < VERT_RESULT_MAX; i++) {
- if (c.key.attrs & BITFIELD64_BIT(i)) {
- c.offset[i] = delta;
- delta += ATTR_SIZE;
-
- c.idx_to_attr[c.nr_attrs] = i;
- c.nr_attrs++;
- }
- }
-
/* nr_regs is the number of registers filled by reading data from the VUE.
* This program accesses the entire VUE, so nr_regs needs to be the size of
* the VUE (measured in pairs, since two slots are stored in each
@@ -100,8 +79,6 @@ static void compile_clip_prog( struct brw_context *brw,
*/
c.nr_regs = (c.vue_map.num_slots + 1)/2;
- c.nr_bytes = c.nr_regs * REG_SIZE;
-
c.prog_data.clip_mode = c.key.clip_mode; /* XXX */
/* For some reason the thread is spawned with only 4 channels