Revert "i965/icl: Add WA_2204188704 to disable pixel shader panic dispatch"
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 26 Jun 2019 21:19:53 +0000 (14:19 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 28 Jun 2019 21:02:13 +0000 (14:02 -0700)
SLICE_COMMON_CHICKEN3 is a privileged register not accesible from userspace.
This patch silences a simulator warning about it.

We don't need to add this workaround in linux kernel as the WA description
says it's fixed on latest stepping.

This reverts commit 85ecd14ef6a084f5e82860de6dbc79870b335682.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
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 17bca1991f145dec4beae75467f26b052a80481a..f0096e996b5713c86951fe8d69a58d58e6893732 100644 (file)
@@ -1676,10 +1676,6 @@ enum brw_pixel_shader_coverage_mask_mode {
 # define GLK_SCEC_BARRIER_MODE_MASK        REG_MASK(1 << 7)
 # define GEN11_STATE_CACHE_REDIRECT_TO_CS_SECTION_ENABLE (1 << 11)
 
-#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 938b9defedabe2b3b0a2b1dad773b63f6bb79339..c41d9551a1e22c48c12d147ab64b7954cb8e800d 100644 (file)
@@ -109,12 +109,6 @@ 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);
-
        /* WaEnableStateCacheRedirectToCS:icl */
        brw_load_register_imm32(brw, SLICE_COMMON_ECO_CHICKEN1,
                                GEN11_STATE_CACHE_REDIRECT_TO_CS_SECTION_ENABLE |