i965/icl: Fix WA_1606682166
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 26 Jun 2019 20:18:38 +0000 (13:18 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 28 Jun 2019 21:02:13 +0000 (14:02 -0700)
An earlier change was setting the SamplerCount = 0 for Gen 11
under #if GEN_GEN < 7. This commit fixes the problem.

This WA has also been added to the linux kernel.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/genX_state_upload.c

index f182683d8a82e46be337ae6db8110bb3a067241c..2baeb3b4bb1cfc7717033f930e9a992ca40f3014 100644 (file)
@@ -1943,8 +1943,7 @@ genX(upload_wm)(struct brw_context *brw)
       if (wm_prog_data->base.use_alt_mode)
          wm.FloatingPointMode = FLOATING_POINT_MODE_Alternate;
 
-      /* WA_1606682166 */
-      wm.SamplerCount = (GEN_GEN == 5 || GEN_GEN == 11) ?
+      wm.SamplerCount = GEN_GEN == 5 ?
          0 : DIV_ROUND_UP(stage_state->sampler_count, 4);
 
       wm.BindingTableEntryCount =