zink: translate gl_FragColor to gl_FragData before ntv to fix multi-rt output
[mesa.git] / src / gallium / drivers / zink / zink_compiler.c
index 9761b8e18058d53f3890ab6a9b600bf9bb403f25..65d4a2e33901aff12274925640e9479099e16825 100644 (file)
@@ -191,6 +191,7 @@ zink_compile_nir(struct zink_screen *screen, struct nir_shader *nir,
    optimize_nir(nir);
    NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_function_temp, NULL);
    NIR_PASS_V(nir, lower_discard_if);
+   NIR_PASS_V(nir, nir_lower_fragcolor);
    NIR_PASS_V(nir, nir_convert_from_ssa, true);
 
    if (zink_debug & ZINK_DEBUG_NIR) {