intel/compiler: add a new pass to lower shading rate into HW format
Rework: * Jason: Modernize brw_nir_lower_shading_rate_output: 1. Use nir_shader_instructions_pass() 2. Use *_imm builder helpers. 3. Use nir_intrinsic_base() instead of ->const_index[0] v2: Also lower loads (Caio) v3: Update stage check to trigger lowering (Caio) v4: Assert on != MESH (Caio) v5: Fixup instruction insertion (Caio) Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13739>
This commit is contained in:

committed by
Marge Bot

parent
e227bb9fd5
commit
cebf284ac1
@@ -1110,6 +1110,9 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler,
|
||||
OPT(nir_lower_idiv, &options);
|
||||
}
|
||||
|
||||
if (gl_shader_stage_can_set_fragment_shading_rate(nir->info.stage))
|
||||
brw_nir_lower_shading_rate_output(nir);
|
||||
|
||||
brw_nir_optimize(nir, compiler, is_scalar, false);
|
||||
|
||||
if (is_scalar && nir_shader_has_local_variables(nir)) {
|
||||
|
Reference in New Issue
Block a user