i915tex: Remove unused tex_program field.
authorMichel Dänzer <michel@tungstengraphics.com>
Thu, 21 Dec 2006 17:06:58 +0000 (18:06 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 9 Jan 2007 11:46:50 +0000 (12:46 +0100)
src/mesa/drivers/dri/i915tex/i915_context.h
src/mesa/drivers/dri/i915tex/i915_state.c
src/mesa/drivers/dri/i915tex/i915_tex.c

index 5ae76fcd185893fdc808200a24700e35bb89e0c6..d2713e88f96a2f26aa212d7fd75ba616dd161db6 100644 (file)
@@ -243,7 +243,6 @@ struct i915_context
    GLuint lodbias_ss2[MAX_TEXTURE_UNITS];
 
 
-   struct i915_fragment_program tex_program;
    struct i915_fragment_program *current_program;
 
    struct i915_hw_state meta, initial, state, *current;
index 2f5a30787ee182721ccadb8f22c3b0829767dcb6..7c742a7bd946dc18ce134416e31c1818554e0e33 100644 (file)
@@ -520,7 +520,6 @@ update_specular(GLcontext * ctx)
    /* A hack to trigger the rebuild of the fragment program.
     */
    intel_context(ctx)->NewGLState |= _NEW_TEXTURE;
-   I915_CONTEXT(ctx)->tex_program.translated = 0;
 }
 
 static void
index a53abe9a92f0f8f0549429322da1508ae9ee311b..59e148ca04e0e732d4c413a0f995afac5f99f5b5 100644 (file)
@@ -52,27 +52,6 @@ i915TexEnv(GLcontext * ctx, GLenum target,
    struct i915_context *i915 = I915_CONTEXT(ctx);
 
    switch (pname) {
-   case GL_TEXTURE_ENV_COLOR:  /* Should be a tracked param */
-   case GL_TEXTURE_ENV_MODE:
-   case GL_COMBINE_RGB:
-   case GL_COMBINE_ALPHA:
-   case GL_SOURCE0_RGB:
-   case GL_SOURCE1_RGB:
-   case GL_SOURCE2_RGB:
-   case GL_SOURCE0_ALPHA:
-   case GL_SOURCE1_ALPHA:
-   case GL_SOURCE2_ALPHA:
-   case GL_OPERAND0_RGB:
-   case GL_OPERAND1_RGB:
-   case GL_OPERAND2_RGB:
-   case GL_OPERAND0_ALPHA:
-   case GL_OPERAND1_ALPHA:
-   case GL_OPERAND2_ALPHA:
-   case GL_RGB_SCALE:
-   case GL_ALPHA_SCALE:
-      i915->tex_program.translated = 0;
-      break;
-
    case GL_TEXTURE_LOD_BIAS:{
          GLuint unit = ctx->Texture.CurrentUnit;
          GLint b = (int) ((*param) * 16.0);
@@ -92,22 +71,8 @@ i915TexEnv(GLcontext * ctx, GLenum target,
 }
 
 
-static void
-i915BindTexture(GLcontext * ctx, GLenum target,
-                struct gl_texture_object *texobj)
-{
-   /* Need this if image format changes between bound textures.
-    * Could try and shortcircuit by checking for differences in
-    * state between incoming and outgoing textures:
-    */
-   I915_CONTEXT(ctx)->tex_program.translated = 0;
-}
-
-
-
 void
 i915InitTextureFuncs(struct dd_function_table *functions)
 {
-   functions->BindTexture = i915BindTexture;
    functions->TexEnv = i915TexEnv;
 }