summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_context.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-11-08 18:50:09 -0800
committerEric Anholt <eric@anholt.net>2011-11-11 08:27:59 -0800
commit1c65abb211e6a3df8c46180ae3242486ee97dc8d (patch)
tree89e4d0955f49f0cd841c9d0f7efd933f6d7fdd4a /src/mesa/drivers/dri/i965/brw_context.h
parent9472f6677672ac89d6addba025b33287670da9e9 (diff)
downloadexternal_mesa3d-1c65abb211e6a3df8c46180ae3242486ee97dc8d.zip
external_mesa3d-1c65abb211e6a3df8c46180ae3242486ee97dc8d.tar.gz
external_mesa3d-1c65abb211e6a3df8c46180ae3242486ee97dc8d.tar.bz2
i965: Add support for gl_VertexID and gl_InstanceID.
The compiler setup for these VF-uploaded attributes looks a little cheesy with mixing system values and real VBO-sourced attributes. It would be nice if we could just compute the ATTR[] map to GRF index up front and use it at visit time instead of using ir->location in the ATTR file. However, we don't know the reg_offset at visit(ir_variable *) time, so we can't do the mapping that early. Fixes piglit vertexid test. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index fb03208..e5d2d14 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -387,6 +387,7 @@ struct brw_vs_prog_data {
const float *pull_param[MAX_UNIFORMS * 4];
bool uses_new_param_layout;
+ bool uses_vertexid;
};