i965/icl: Add WA_2204188704 to disable pixel shader panic dispatch
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 24 Jan 2019 22:44:35 +0000 (14:44 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 19 Mar 2019 21:42:02 +0000 (14:42 -0700)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_state_upload.c

index 2729a54e144f3e5ea2edf369177ac155662e5902..d9ea1057123eac2e632d746c52e6306c8fd188b9 100644 (file)
@@ -1675,6 +1675,10 @@ enum brw_pixel_shader_coverage_mask_mode {
 # define GLK_SCEC_BARRIER_MODE_3D_HULL     (1 << 7)
 # define GLK_SCEC_BARRIER_MODE_MASK        REG_MASK(1 << 7)
 
+#define COMMON_SLICE_CHICKEN3              0x7304
+# define PS_THREAD_PANIC_DISPATCH          (3 << 6)
+# define PS_THREAD_PANIC_DISPATCH_MASK     REG_MASK(3 << 6)
+
 #define HALF_SLICE_CHICKEN7                0xE194
 # define TEXEL_OFFSET_FIX_ENABLE           (1 << 1)
 # define TEXEL_OFFSET_FIX_MASK             REG_MASK(1 << 1)
index 50049d325b3b202ddc80e44293d6d526dcb622b8..cc21aca494542dec408bdbc7dad2e708a879cf03 100644 (file)
@@ -108,6 +108,12 @@ brw_upload_initial_gpu_state(struct brw_context *brw)
        */
       brw_load_register_imm32(brw, GEN8_L3CNTLREG,
                               GEN8_L3CNTLREG_EDBC_NO_HANG);
+
+      /* WA_2204188704: Pixel Shader Panic dispatch must be disabled.
+       */
+       brw_load_register_imm32(brw, COMMON_SLICE_CHICKEN3,
+                               PS_THREAD_PANIC_DISPATCH_MASK |
+                               PS_THREAD_PANIC_DISPATCH);
    }
 
    if (devinfo->gen == 10 || devinfo->gen == 11) {