mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
intel/fs: Don't enable dual source blend if no outputs are written
This prevents a crash in some arb_enhanced_layouts tests that would be caused by the next commit. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
48241c780a
commit
8b788069fb
1 changed files with 2 additions and 1 deletions
|
|
@ -440,7 +440,8 @@ fs_visitor::emit_fb_writes()
|
|||
inst->target = target;
|
||||
}
|
||||
|
||||
prog_data->dual_src_blend = (this->dual_src_output.file != BAD_FILE);
|
||||
prog_data->dual_src_blend = (this->dual_src_output.file != BAD_FILE &&
|
||||
this->outputs[0].file != BAD_FILE);
|
||||
assert(!prog_data->dual_src_blend || key->nr_color_regions == 1);
|
||||
|
||||
if (inst == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue