etnaviv: mask correct channel for RB swapped rendertargets
authorLucas Stach <dev@lynxeye.de>
Sun, 4 Jun 2017 19:06:32 +0000 (21:06 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 16 Jun 2017 13:26:23 +0000 (15:26 +0200)
commit8644b59b5d98cf58deaecc583f68edd8be23bfca
treeb4dcc38ef1fc09dd2c09f0aa9ae6ec6fc8c364a7
parentd6aa2ba2b293f78d9c28922ed3af9077100f3480
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 <dev@lynxeye.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_blend.c
src/gallium/drivers/etnaviv/etnaviv_blend.h
src/gallium/drivers/etnaviv/etnaviv_state.c