[PATCH] drm/xe/ptl: Disable null query for anyhit shader

Upadhyay, Tejas tejas.upadhyay at intel.com
Wed May 7 13:33:13 UTC 2025



> -----Original Message-----
> From: Gote, Nitin R <nitin.r.gote at intel.com>
> Sent: 07 May 2025 18:15
> To: intel-xe at lists.freedesktop.org
> Cc: Lahtinen, Joonas <joonas.lahtinen at intel.com>; Ghimiray, Himal Prasad
> <himal.prasad.ghimiray at intel.com>; Upadhyay, Tejas
> <tejas.upadhyay at intel.com>; Gote, Nitin R <nitin.r.gote at intel.com>
> Subject: [PATCH] drm/xe/ptl: Disable null query for anyhit shader
> 
> For PTL, disable null query for anyhit shader as it currently does not bring any
> performance benefits.
> Quite the contrary, disabling the mechanism brings a small but consistent perf
> uplift.
> 
> Signed-off-by: Nitin Gote <nitin.r.gote at intel.com>
> ---
>  drivers/gpu/drm/xe/xe_tuning.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_tuning.c b/drivers/gpu/drm/xe/xe_tuning.c
> index 49ddbda7cdef..6f2f3428b12e 100644
> --- a/drivers/gpu/drm/xe/xe_tuning.c
> +++ b/drivers/gpu/drm/xe/xe_tuning.c
> @@ -98,6 +98,11 @@ static const struct xe_rtp_entry_sr engine_tunings[] = {
>  		       ENGINE_CLASS(RENDER)),
>  	  XE_RTP_ACTIONS(SET(SAMPLER_MODE,
> INDIRECT_STATE_BASE_ADDR_OVERRIDE))
>  	},
> +	{ XE_RTP_NAME("Tuning: Disable NULL query for Anyhit Shader"),
> +	  XE_RTP_RULES(GRAPHICS_VERSION_RANGE(3000, 3001),
> +		       FUNC(xe_rtp_match_first_render_or_compute)),
> +	  XE_RTP_ACTIONS(SET(RT_CTRL, DIS_NULL_QUERY))
> +	},

LGTM,
Reviewed-by: Tejas Upadhyay <tejas.upadhyay at intel.com>

Tejas
>  };
> 
>  static const struct xe_rtp_entry_sr lrc_tunings[] = {
> --
> 2.25.1



More information about the Intel-xe mailing list