i965: Remove unused sampler key fields
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Sat, 22 Feb 2014 09:05:27 +0000 (11:05 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Apr 2014 20:34:59 +0000 (13:34 -0700)
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_program.h
src/mesa/drivers/dri/i965/brw_wm.c

index 0116646fe1987ed8b432b45e18ed11413cbf721b..a8650c3454b5aef6c6ab3bb91224d6d0c6125393 100644 (file)
@@ -41,12 +41,6 @@ struct brw_sampler_prog_key_data {
 
    uint32_t gl_clamp_mask[3];
 
-   /**
-    * YUV conversions, needed for the GL_MESA_ycbcr extension.
-    */
-   uint16_t yuvtex_mask;
-   uint16_t yuvtex_swap_mask; /**< UV swaped */
-
    /**
     * For RG32F, gather4's channel select is broken.
     */
index b97501c5d19a18a5389444ba1fd26468d2f6086a..663b47e5ce7828eb08147ac2575dd715642d0c66 100644 (file)
@@ -238,10 +238,6 @@ brw_debug_recompile_sampler_key(struct brw_context *brw,
                       old_key->gl_clamp_mask[1], key->gl_clamp_mask[1]);
    found |= key_debug(brw, "GL_CLAMP enabled on any texture unit's 3rd coordinate",
                       old_key->gl_clamp_mask[2], key->gl_clamp_mask[2]);
-   found |= key_debug(brw, "GL_MESA_ycbcr texturing\n",
-                      old_key->yuvtex_mask, key->yuvtex_mask);
-   found |= key_debug(brw, "GL_MESA_ycbcr UV swapping\n",
-                      old_key->yuvtex_swap_mask, key->yuvtex_swap_mask);
    found |= key_debug(brw, "gather channel quirk on any texture unit",
                       old_key->gather_channel_quirk_mask, key->gather_channel_quirk_mask);
 
@@ -356,12 +352,6 @@ brw_populate_sampler_prog_key_data(struct gl_context *ctx,
          if (alpha_depth || (brw->gen < 8 && !brw->is_haswell))
             key->swizzles[s] = brw_get_texture_swizzle(ctx, t);
 
-        if (img->InternalFormat == GL_YCBCR_MESA) {
-           key->yuvtex_mask |= 1 << s;
-           if (img->TexFormat == MESA_FORMAT_YCBCR)
-               key->yuvtex_swap_mask |= 1 << s;
-        }
-
         if (sampler->MinFilter != GL_NEAREST &&
             sampler->MagFilter != GL_NEAREST) {
            if (sampler->WrapS == GL_CLAMP)