i965: Drop a NEW_SAMPLER annotation for use of sampler_count.
authorEric Anholt <eric@anholt.net>
Mon, 28 Apr 2014 16:35:20 +0000 (09:35 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 3 May 2014 00:01:40 +0000 (17:01 -0700)
The sampler count is set up from the gl_program at draw time, not at
sampler change time.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c
src/mesa/drivers/dri/i965/gen8_ps_state.c

index b85c1466c8eeddd0d1b5feeb94abd0d537134a21..742a52e8f9d9aea38b87bf7125d4cf7dbfb736fa 100644 (file)
@@ -143,7 +143,6 @@ upload_wm_state(struct brw_context *brw)
    if (ctx->_Shader->CurrentProgram[MESA_SHADER_FRAGMENT] == NULL)
       dw2 |= GEN6_WM_FLOATING_POINT_MODE_ALT;
 
-   /* CACHE_NEW_SAMPLER */
    dw2 |= (ALIGN(brw->wm.base.sampler_count, 4) / 4) <<
            GEN6_WM_SAMPLER_COUNT_SHIFT;
 
index 97831dfeb521ffd8bd7dd4d6d9c1df0b129b8260..eabadee3bf992aa023446b1037c8980f27d14772 100644 (file)
@@ -154,7 +154,6 @@ upload_ps_state(struct brw_context *brw)
 
    dw2 = dw4 = dw5 = 0;
 
-   /* CACHE_NEW_SAMPLER */
    dw2 |=
       (ALIGN(brw->wm.base.sampler_count, 4) / 4) << GEN7_PS_SAMPLER_COUNT_SHIFT;
 
index 8d9ad643e860eb01362973cc7f6c46e6114477ee..085606072bded3a84e924befe28a72e1a9223d51 100644 (file)
@@ -151,7 +151,6 @@ upload_ps_state(struct brw_context *brw)
     */
    dw3 |= GEN7_PS_VECTOR_MASK_ENABLE;
 
-   /* CACHE_NEW_SAMPLER */
    dw3 |=
       (ALIGN(brw->wm.base.sampler_count, 4) / 4) << GEN7_PS_SAMPLER_COUNT_SHIFT;