diff options
author | Brian Paul <[email protected]> | 2017-07-21 10:37:36 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-07-25 15:40:24 -0600 |
commit | 91735e2d4a25df0685e5f4c8f0a064f9d58c6b8e (patch) | |
tree | fe7bc1ef952fbc3067faa836287c27da54e7697d /src/gallium/drivers/svga/svga_context.h | |
parent | 71d3b69b239c2e2eb8b154229c5defc013b7c7b5 (diff) |
svga: implement MSAA alpha_to_one feature
The device doesn't directly support this feature so we implement it with
additional shader code which sets the color output(s) w component to
1.0 (or max_int or max_uint).
Fixes 16 Piglit ext_framebuffer_multisample/*alpha-to-one* tests.
v2: only support unorm/float buffers, not int/uint, per Roland.
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h index d0306c036f3..0d695a64927 100644 --- a/src/gallium/drivers/svga/svga_context.h +++ b/src/gallium/drivers/svga/svga_context.h @@ -106,6 +106,7 @@ struct svga_blend_state { unsigned need_white_fragments:1; unsigned independent_blend_enable:1; unsigned alpha_to_coverage:1; + unsigned alpha_to_one:1; unsigned blend_color_alpha:1; /**< set blend color to alpha value */ /** Per-render target state */ |