]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/xe/tuning: Apply "Disable NULL query for Anyhit Shader" to Xe2
authorNitin Gote <nitin.r.gote@intel.com>
Tue, 19 Aug 2025 06:11:51 +0000 (11:41 +0530)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 20 Aug 2025 15:23:26 +0000 (08:23 -0700)
Extend the "Disable NULL query for Anyhit Shader" tuning to Xe2
(graphics version 2000+) platforms, in addition to Xe3.

This sets the DIS_NULL_QUERY bit in RT_CTRL to disable null query
for Anyhit shaders on both Xe2 and Xe3.

This is a change in behavior that can regress a userspace not
prepared for it. However it's not feasible to change dynamically
the option per client or per exec queue via an opt-in flag. Mesa
is already prepared for that and it got propagated to their
stable versions. Even if it was possible, at this point adding a
flag would mean mesa would also need to propagate such a flag to
their stable versions, otherwise the previous fix would not be
used.

Signed-off-by: Nitin Gote <nitin.r.gote@intel.com>
Acked-by: Tapani Pälli <tapani.palli@intel.com>
Link: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35044
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35044
Link: https://lore.kernel.org/r/20250819061151.1272622-1-nitin.r.gote@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_tuning.c

index 828b45b24c23aa59efcec48b7807f90dacd47e57..a524170a04d02959daca54bbe00856491efcece8 100644 (file)
@@ -99,7 +99,7 @@ static const struct xe_rtp_entry_sr engine_tunings[] = {
          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),
+         XE_RTP_RULES(GRAPHICS_VERSION_RANGE(2000, XE_RTP_END_VERSION_UNDEFINED),
                       FUNC(xe_rtp_match_first_render_or_compute)),
          XE_RTP_ACTIONS(SET(RT_CTRL, DIS_NULL_QUERY))
        },