NIR_PASS_V(nir, nir_lower_flrp, 16 | 32 | 64, false /* always_precise */);
NIR_PASS_V(nir, nir_lower_var_copies);
- NIR_PASS_V(nir, pan_lower_framebuffer, inputs->rt_formats,
- inputs->raw_fmt_mask, inputs->is_blend,
- quirks & MIDGARD_BROKEN_BLEND_LOADS);
+ if (nir->info.stage == MESA_SHADER_FRAGMENT) {
+ NIR_PASS_V(nir, pan_lower_framebuffer, inputs->rt_formats,
+ inputs->raw_fmt_mask, inputs->is_blend,
+ quirks & MIDGARD_BROKEN_BLEND_LOADS);
+ }
}
static void
uint8_t raw_fmt_mask, bool is_blend,
bool broken_ld_special)
{
- if (shader->info.stage != MESA_SHADER_FRAGMENT)
- return false;
+ assert(shader->info.stage == MESA_SHADER_FRAGMENT);
bool progress = false;