i965: Drop unused argument to translate_tex_format().
authorEric Anholt <eric@anholt.net>
Wed, 19 Jun 2013 21:26:50 +0000 (14:26 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 Jun 2013 08:07:11 +0000 (01:07 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c

index 60b81dcdc48091a9f8dc7b3f7b3151ee542e3c4e..3ac65cf9871126d9f9c89d93bdb4875d7374dd98 100644 (file)
@@ -180,7 +180,6 @@ GLuint translate_tex_target(GLenum target);
 
 GLuint translate_tex_format(struct intel_context *intel,
                             gl_format mesa_format,
-                           GLenum internal_format,
                            GLenum depth_mode,
                            GLenum srgb_decode);
 
index ceabedbe1b8e46c20e7c054ec85c64014dca1b82..1642a58780dac28dd11cb12a405a4bebf7768d9d 100644 (file)
@@ -735,7 +735,6 @@ brw_render_target_supported(struct intel_context *intel,
 GLuint
 translate_tex_format(struct intel_context *intel,
                      gl_format mesa_format,
-                    GLenum internal_format,
                     GLenum depth_mode,
                     GLenum srgb_decode)
 {
@@ -980,7 +979,6 @@ brw_update_texture_surface(struct gl_context *ctx,
              BRW_SURFACE_CUBEFACE_ENABLES |
              (translate_tex_format(intel,
                                     mt->format,
-                                   firstImage->InternalFormat,
                                    tObj->DepthMode,
                                    sampler->sRGBDecode) <<
               BRW_SURFACE_FORMAT_SHIFT));
index c2699ab817ea581f704dd07472856fbb6a13a4f9..6d61b1f65f7b7c7c54eb712b83b8df177278d50d 100644 (file)
@@ -311,7 +311,6 @@ gen7_update_texture_surface(struct gl_context *ctx,
 
    uint32_t tex_format = translate_tex_format(intel,
                                               mt->format,
-                                              firstImage->InternalFormat,
                                               tObj->DepthMode,
                                               sampler->sRGBDecode);