]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/xe3: Disable null query for anyhit shader
authorNitin Gote <nitin.r.gote@intel.com>
Thu, 5 Jun 2025 10:08:12 +0000 (15:38 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 5 Jun 2025 22:57:37 +0000 (15:57 -0700)
Set DIS_NULL_QUERY bit of RT_CTRL register to disable
null query for anyhit shader for Xe3 IP.

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Nitin Gote <nitin.r.gote@intel.com>
Link: https://lore.kernel.org/r/20250605100812.2547808-1-nitin.r.gote@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_tuning.c

index 49ddbda7cdef66da49469b687b2296cc2d00b283..828b45b24c23aa59efcec48b7807f90dacd47e57 100644 (file)
@@ -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, XE_RTP_END_VERSION_UNDEFINED),
+                      FUNC(xe_rtp_match_first_render_or_compute)),
+         XE_RTP_ACTIONS(SET(RT_CTRL, DIS_NULL_QUERY))
+       },
 };
 
 static const struct xe_rtp_entry_sr lrc_tunings[] = {