diff options
author | Marek Olšák <[email protected]> | 2018-01-31 04:37:00 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-02-09 15:52:22 +0100 |
commit | 76085f2048d426ae5fd35b26bae2141c6cfeba28 (patch) | |
tree | bc95eb06a201b71bc1ee86c0bd0ecfbcb88de7cd /src/mesa/state_tracker/st_context.h | |
parent | c446dd7927477e68e9a961acb1727ff53fb7ea4f (diff) |
st/mesa: generate blend state according to the number of enabled color buffers
Non-MRT cases always translate blend state for 1 color buffer only.
MRT cases only check and translate blend state for enabled color buffers.
This also avoids an assertion failure in translate_blend for:
dEQP-GLES31.functional.draw_buffers_indexed.overwrite_common.common_advanced_blend_eq_buffer_blend_eq
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r-- | src/mesa/state_tracker/st_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index 660c993fe22..9f2480e5dac 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracker/st_context.h @@ -164,6 +164,7 @@ struct st_context unsigned fb_height; unsigned fb_num_samples; unsigned fb_num_layers; + unsigned fb_num_cb; unsigned num_viewports; struct pipe_scissor_state scissor[PIPE_MAX_VIEWPORTS]; struct pipe_viewport_state viewport[PIPE_MAX_VIEWPORTS]; |