diff mbox series

drm/i915/mtl: Disable SF round to nearest even

Message ID 20230809064043.375079-1-shekhar.chauhan@intel.com (mailing list archive)
State New, archived
Headers show
Series drm/i915/mtl: Disable SF round to nearest even | expand

Commit Message

Chauhan, Shekhar Aug. 9, 2023, 6:40 a.m. UTC
Workaround for disabling round to nearest even in the SF unit.

BSpec: 45818
Signed-off-by: Shekhar Chauhan <shekhar.chauhan@intel.com>
---
 drivers/gpu/drm/i915/gt/intel_workarounds.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Matt Roper Aug. 11, 2023, 12:59 a.m. UTC | #1
On Wed, Aug 09, 2023 at 12:10:43PM +0530, Shekhar Chauhan wrote:
> Workaround for disabling round to nearest even in the SF unit.

I don't think we want/need this workaround in i915 (see the explanation
I just gave on the Xe patch for the same workaround).  However we do
need to _drop_ the implementation of this workaround that we already
have for DG2.


Matt

> 
> BSpec: 45818
> Signed-off-by: Shekhar Chauhan <shekhar.chauhan@intel.com>
> ---
>  drivers/gpu/drm/i915/gt/intel_workarounds.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/gt/intel_workarounds.c
> index 01807a7dd2c1..f233a552539b 100644
> --- a/drivers/gpu/drm/i915/gt/intel_workarounds.c
> +++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c
> @@ -850,6 +850,9 @@ static void mtl_ctx_workarounds_init(struct intel_engine_cs *engine,
>  
>  	/* Wa_18019271663 */
>  	wa_masked_en(wal, CACHE_MODE_1, MSAA_OPTIMIZATION_REDUC_DISABLE);
> +
> +	/* Wa_15010599737 */
> +	wa_mcr_masked_en(wal, CHICKEN_RASTER_1, DIS_SF_ROUND_NEAREST_EVEN);
>  }
>  
>  static void fakewa_disable_nestedbb_mode(struct intel_engine_cs *engine,
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/gt/intel_workarounds.c
index 01807a7dd2c1..f233a552539b 100644
--- a/drivers/gpu/drm/i915/gt/intel_workarounds.c
+++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c
@@ -850,6 +850,9 @@  static void mtl_ctx_workarounds_init(struct intel_engine_cs *engine,
 
 	/* Wa_18019271663 */
 	wa_masked_en(wal, CACHE_MODE_1, MSAA_OPTIMIZATION_REDUC_DISABLE);
+
+	/* Wa_15010599737 */
+	wa_mcr_masked_en(wal, CHICKEN_RASTER_1, DIS_SF_ROUND_NEAREST_EVEN);
 }
 
 static void fakewa_disable_nestedbb_mode(struct intel_engine_cs *engine,