summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2005-05-10 13:54:52 +0000
committerKeith Whitwell <[email protected]>2005-05-10 13:54:52 +0000
commitab81d1fd999b1696df4c733a86b651e4c38b9bcc (patch)
tree92cf240663b8220ea95b431a4c76ed55df3e9730
parentd9fdb6c2bb52b4909265f504287ee8e4bc2d919f (diff)
don't be fooled into emitting padding for wpos when not used
-rw-r--r--src/mesa/drivers/dri/i915/i915_fragprog.c2
-rw-r--r--src/mesa/drivers/dri/i915/i915_program.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c
index 150d9bd2c22..ce14f8050e4 100644
--- a/src/mesa/drivers/dri/i915/i915_fragprog.c
+++ b/src/mesa/drivers/dri/i915/i915_fragprog.c
@@ -788,7 +788,7 @@ static void check_wpos( struct i915_fragment_program *p )
GLuint inputs = p->FragProg.InputsRead;
GLint i;
- p->wpos_tex = 0;
+ p->wpos_tex = -1;
for (i = 0; i < p->ctx->Const.MaxTextureCoordUnits; i++) {
if (inputs & FRAG_BIT_TEX(i))
diff --git a/src/mesa/drivers/dri/i915/i915_program.c b/src/mesa/drivers/dri/i915/i915_program.c
index 160774d9ac4..cf3ebc17109 100644
--- a/src/mesa/drivers/dri/i915/i915_program.c
+++ b/src/mesa/drivers/dri/i915/i915_program.c
@@ -380,7 +380,7 @@ void i915_init_program( i915ContextPtr i915, struct i915_fragment_program *p )
p->decl_t = 0;
p->temp_flag = 0xffff000;
p->utemp_flag = ~0x7;
- p->wpos_tex = 0;
+ p->wpos_tex = -1;
p->depth_written = 0;
p->nr_params = 0;