From 8644b59b5d98cf58deaecc583f68edd8be23bfca Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Sun, 4 Jun 2017 21:06:32 +0200 Subject: etnaviv: mask correct channel for RB swapped rendertargets Now that we support RB swapped targets by using a shader variant, we must derive the color mask from both the blend state and the bound framebuffer. Fixes piglit: fbo-colormask-formats Fixes: 7f62ffb68ad ("etnaviv: add support for rb swap") Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_state.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/drivers/etnaviv/etnaviv_state.c') diff --git a/src/gallium/drivers/etnaviv/etnaviv_state.c b/src/gallium/drivers/etnaviv/etnaviv_state.c index cd9f974112d..fb7bb0f4c50 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_state.c +++ b/src/gallium/drivers/etnaviv/etnaviv_state.c @@ -29,6 +29,7 @@ #include "hw/common.xml.h" +#include "etnaviv_blend.h" #include "etnaviv_clear_blit.h" #include "etnaviv_context.h" #include "etnaviv_format.h" @@ -596,6 +597,9 @@ static const struct etna_state_updater etna_state_updates[] = { }, { etna_shader_link, ETNA_DIRTY_SHADER, + }, + { + etna_update_blend, ETNA_DIRTY_BLEND | ETNA_DIRTY_FRAMEBUFFER } }; -- cgit v1.2.3