From 2be60e0c73ed1555a919c5725cc0cab119a2b6de Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Thu, 24 Jan 2019 14:46:02 -0800 Subject: [PATCH] anv/icl: Add WA_2204188704 to disable pixel shader panic dispatch Signed-off-by: Anuj Phogat Acked-by: Jason Ekstrand Reviewed-by: Lionel Landwerlin --- src/intel/genxml/gen11.xml | 5 +++++ src/intel/vulkan/genX_state.c | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/intel/genxml/gen11.xml b/src/intel/genxml/gen11.xml index a7c06c5ab60..6f3aba46561 100644 --- a/src/intel/genxml/gen11.xml +++ b/src/intel/genxml/gen11.xml @@ -3681,4 +3681,9 @@ + + + + + diff --git a/src/intel/vulkan/genX_state.c b/src/intel/vulkan/genX_state.c index cffd1e47247..6d55e5dc5c6 100644 --- a/src/intel/vulkan/genX_state.c +++ b/src/intel/vulkan/genX_state.c @@ -200,6 +200,18 @@ genX(init_device_state)(struct anv_device *device) lri.DataDWord = half_slice_chicken7; } + /* WA_2204188704: Pixel Shader Panic dispatch must be disabled. + */ + uint32_t common_slice_chicken3; + anv_pack_struct(&common_slice_chicken3, GENX(COMMON_SLICE_CHICKEN3), + .PSThreadPanicDispatch = 0x3, + .PSThreadPanicDispatchMask = 0x3); + + anv_batch_emit(&batch, GENX(MI_LOAD_REGISTER_IMM), lri) { + lri.RegisterOffset = GENX(COMMON_SLICE_CHICKEN3_num); + lri.DataDWord = common_slice_chicken3; + } + #endif /* Set the "CONSTANT_BUFFER Address Offset Disable" bit, so -- 2.30.2