radeonsi/nir: add FRAG_RESULT_COLOR to scan pass
Fixes a number of draw buffers piglit tests. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -517,6 +517,12 @@ void si_nir_scan_shader(const struct nir_shader *nir,
|
||||
info->reads_pervertex_outputs = true;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned loc = variable->data.location;
|
||||
if (loc == FRAG_RESULT_COLOR &&
|
||||
nir->info.outputs_written & (1ull << loc)) {
|
||||
info->properties[TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS] = true;
|
||||
}
|
||||
}
|
||||
|
||||
info->num_outputs = num_outputs;
|
||||
|
||||
Reference in New Issue
Block a user