iris: Call elk_nir_lower_fs_outputs for Gen8 RT reads, not brw

This older code really only exists for Gen8 and elk.  On brw platforms,
we moved to handling this in brw_nir_lower_fs_load_output, and don't
need to lower FS outputs before iris_setup_binding_tables.

Call the right compiler's lowering so that things continue working
on elk once we change brw_lower_fs_outputs in the next commit.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41122>
This commit is contained in:
Kenneth Graunke 2026-04-23 23:38:03 -07:00 committed by Marge Bot
parent fbaa5ad0c3
commit ff34135d05

View file

@ -2772,12 +2772,14 @@ iris_compile_fs(struct iris_screen *screen,
if (key->force_dual_color_blend)
iris_force_dual_color_blend(nir);
#ifdef INTEL_USE_ELK
/* Lower output variables to load_output intrinsics before setting up
* binding tables, so iris_setup_binding_table can map any load_output
* intrinsics to IRIS_SURFACE_GROUP_RENDER_TARGET_READ on Gfx8 for
* non-coherent framebuffer fetches.
*/
brw_nir_lower_fs_outputs(nir);
elk_nir_lower_fs_outputs(nir);
#endif
int null_rts = brw_nir_fs_needs_null_rt(devinfo, nir,
key->alpha_to_coverage) ? 1 : 0;