i915: Drop dead argument to translate_texture_format().
authorEric Anholt <eric@anholt.net>
Thu, 9 Jun 2011 16:58:38 +0000 (09:58 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 14 Jun 2011 18:17:38 +0000 (11:17 -0700)
src/mesa/drivers/dri/i915/i830_texstate.c
src/mesa/drivers/dri/i915/i915_texstate.c

index 3298dbb69f53cfdbee1beea710bb692363e2c2b7..d4af5e51026bda429cc5f48f8a5ad73ac85cef76 100644 (file)
@@ -40,7 +40,7 @@
 
 
 static GLuint
-translate_texture_format(GLuint mesa_format, GLuint internal_format)
+translate_texture_format(GLuint mesa_format)
 {
    switch (mesa_format) {
    case MESA_FORMAT_L8:
@@ -156,8 +156,7 @@ i830_update_tex_unit(struct intel_context *intel, GLuint unit, GLuint ss3)
     */
    i830->state.tex_offset[unit] = dst_x * intelObj->mt->cpp + dst_y * pitch;
 
-   format = translate_texture_format(firstImage->TexFormat,
-                                    firstImage->InternalFormat);
+   format = translate_texture_format(firstImage->TexFormat);
 
    state[I830_TEXREG_TM0LI] = (_3DSTATE_LOAD_STATE_IMMEDIATE_2 |
                                (LOAD_TEXTURE_MAP0 << unit) | 4);
index 5aa2ea1804851ae6dac185a37d6b1ea23f7d42d1..bcf42d59969f96ad98f7805e3f7e5d7251308741 100644 (file)
@@ -39,8 +39,7 @@
 
 
 static GLuint
-translate_texture_format(gl_format mesa_format, GLuint internal_format,
-                        GLenum DepthMode)
+translate_texture_format(gl_format mesa_format, GLenum DepthMode)
 {
    switch (mesa_format) {
    case MESA_FORMAT_L8:
@@ -165,7 +164,6 @@ i915_update_tex_unit(struct intel_context *intel, GLuint unit, GLuint ss3)
    i915->state.tex_offset[unit] = 0; /* Always the origin of the miptree */
 
    format = translate_texture_format(firstImage->TexFormat,
-                                    firstImage->InternalFormat,
                                     sampler->DepthMode);
    pitch = intelObj->mt->region->pitch * intelObj->mt->cpp;