[Mesa-dev] [PATCH 5/8] i965: Drop unused argument to translate_tex_format().

Eric Anholt eric at anholt.net
Fri Jun 21 10:57:29 PDT 2013


---
 src/mesa/drivers/dri/i965/brw_state.h             | 1 -
 src/mesa/drivers/dri/i965/brw_wm_surface_state.c  | 2 --
 src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 1 -
 3 files changed, 4 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h
index 60b81dc..3ac65cf 100644
--- a/src/mesa/drivers/dri/i965/brw_state.h
+++ b/src/mesa/drivers/dri/i965/brw_state.h
@@ -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);
 
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index ceabedb..1642a58 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -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));
diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
index c2699ab..6d61b1f 100644
--- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
@@ -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);
 
-- 
1.8.3.rc0



More information about the mesa-dev mailing list