svga: implement MSAA alpha_to_one feature

Graphics / Mesa 3D Graphics Library / Mesa - Brian Paul [vmware.com] - 25 July 2017 17:40 EDT

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.

91735e2d svga: implement MSAA alpha_to_one feature
src/gallium/drivers/svga/svga_context.h | 1 +
src/gallium/drivers/svga/svga_pipe_blend.c | 1 +
src/gallium/drivers/svga/svga_shader.h | 1 +
src/gallium/drivers/svga/svga_state_fs.c | 3 ++
src/gallium/drivers/svga/svga_tgsi_vgpu10.c | 52 ++++++++++++++++++++++++++++-
5 files changed, 57 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share