i965: Remove unused depth_mode parameter from translate_tex_format().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 27 Nov 2013 06:22:13 +0000 (22:22 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Dec 2013 07:18:24 +0000 (23:18 -0800)
According to git blame, this hasn't been used in over two years:

    commit d2235b0f4681f75d562131d655a6d7b7033d2d8b
    Author: Eric Anholt <eric@anholt.net>
    Date:   Thu Nov 17 17:01:58 2011 -0800

        i965: Always handle GL_DEPTH_TEXTURE_MODE through the shader.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_surface_formats.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c

index d3fd9372cddfe5a353fadd9892705b628998fbf4..a148125a9eed9adc6dce4a0d9eafbba297ed4126 100644 (file)
@@ -193,7 +193,6 @@ GLuint translate_tex_target(GLenum target);
 
 GLuint translate_tex_format(struct brw_context *brw,
                             gl_format mesa_format,
-                           GLenum depth_mode,
                            GLenum srgb_decode);
 
 int brw_get_texture_swizzle(const struct gl_context *ctx,
index 88fda8c7f16ffcce15bb5598ea42397b17303086..9b75c2b8abb02df9f7155752152d55d2ebf39cb6 100644 (file)
@@ -686,7 +686,6 @@ brw_render_target_supported(struct brw_context *brw,
 GLuint
 translate_tex_format(struct brw_context *brw,
                      gl_format mesa_format,
-                    GLenum depth_mode,
                     GLenum srgb_decode)
 {
    struct gl_context *ctx = &brw->ctx;
index 01a4709145465d0dd6159aeac959b841be11e7c2..5236eda0d9f0f01367bda8bfbeb45e529dbac700 100644 (file)
@@ -289,7 +289,6 @@ brw_update_texture_surface(struct gl_context *ctx,
              BRW_SURFACE_CUBEFACE_ENABLES |
              (translate_tex_format(brw,
                                     mt->format,
-                                   tObj->DepthMode,
                                    sampler->sRGBDecode) <<
               BRW_SURFACE_FORMAT_SHIFT));
 
index dbd73099fb65f284cc4002fa928f7937d9e204d0..761bc3ba3e4fdfa4e0effddbf4d53f99bf1d6bce 100644 (file)
@@ -291,7 +291,6 @@ gen7_update_texture_surface(struct gl_context *ctx,
 
    uint32_t tex_format = translate_tex_format(brw,
                                               mt->format,
-                                              tObj->DepthMode,
                                               sampler->sRGBDecode);
 
    if (for_gather && tex_format == BRW_SURFACEFORMAT_R32G32_FLOAT)