diff options
author | Francisco Jerez <[email protected]> | 2016-08-25 18:35:06 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2016-08-30 16:54:19 -0700 |
commit | 6df215d97eab6e18a8c70c9966014f6ab2bbc20a (patch) | |
tree | 62dbf529ccb06a7b918b2913136d657d015d52cb /src/mesa/drivers/dri | |
parent | fd04d048aec8f850d77f6908c0d13f88195df0da (diff) |
i965/fs: Assert that the number of color targets is one when dual-source blend is enabled.
Requested by Anuj during review of
4a87e4ade778e56d43333c65a58752b15a00ce69, adding as follow-up since it
led to assertion failures due to various GLSL bugs that should be
fixed now.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index cfb5bb65e26..48b5f406542 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -487,6 +487,7 @@ fs_visitor::emit_fb_writes() } prog_data->dual_src_blend = (this->dual_src_output.file != BAD_FILE); + assert(!prog_data->dual_src_blend || key->nr_color_regions == 1); if (inst == NULL) { /* Even if there's no color buffers enabled, we still need to send |