diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2006-10-10 08:58:43 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2006-10-10 08:58:43 +0000 |
commit | d886423b3c0b800656ba5d4c6480bba90f8e5981 (patch) | |
tree | a562460131fcd0577b7fa7ef03a74fefe2839992 /src/mesa/drivers/dri/i915/i915_fragprog.c | |
parent | fcd758868b494411247ef94e0ea7cbac3e3ed79f (diff) |
Use the mesa-provided texenv program rather than rolling our own.
Turn on texture crossbar support.
Diffstat (limited to 'src/mesa/drivers/dri/i915/i915_fragprog.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_fragprog.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c index b0cc59c306..0f3e6885f3 100644 --- a/src/mesa/drivers/dri/i915/i915_fragprog.c +++ b/src/mesa/drivers/dri/i915/i915_fragprog.c @@ -955,6 +955,17 @@ void i915ValidateFragmentProgram( i915ContextPtr i915 ) GLuint s2 = S2_TEXCOORD_NONE; int i, offset = 0; + if (i915->current_program != p) + { + if (i915->current_program) { + i915->current_program->on_hardware = 0; + i915->current_program->params_uptodate = 0; + } + + i915->current_program = p; + } + + /* Important: */ VB->AttribPtr[VERT_ATTRIB_POS] = VB->NdcPtr; |