summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_context.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2009-08-03 14:46:18 -0700
committerEric Anholt <[email protected]>2009-08-03 17:19:03 -0700
commit9b9cb30d128fc5f1ba77287696ecd508e640efde (patch)
tree826813f6ea48ff9ae854c2a396e2b6490c418d00 /src/mesa/drivers/dri/i965/brw_context.h
parent1f1ead9947aaa66346d3f33f024700d2fce90b53 (diff)
i965: Calculate enabled[] and nr_enabled once and re-use the values.
The code duplication bothered me.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 57ddf75413a..a1d00cde29f 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -475,6 +475,9 @@ struct brw_context
struct {
struct brw_vertex_element inputs[VERT_ATTRIB_MAX];
+ struct brw_vertex_element *enabled[VERT_ATTRIB_MAX];
+ GLuint nr_enabled;
+
#define BRW_NR_UPLOAD_BUFS 17
#define BRW_UPLOAD_INIT_SIZE (128*1024)