diff options
author | Lucas Stach <[email protected]> | 2017-06-04 21:06:32 +0200 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2017-06-16 15:26:23 +0200 |
commit | 8644b59b5d98cf58deaecc583f68edd8be23bfca (patch) | |
tree | b4dcc38ef1fc09dd2c09f0aa9ae6ec6fc8c364a7 /src/gallium/drivers/etnaviv/etnaviv_blend.h | |
parent | d6aa2ba2b293f78d9c28922ed3af9077100f3480 (diff) |
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: [email protected]
Signed-off-by: Lucas Stach <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_blend.h')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_blend.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_blend.h b/src/gallium/drivers/etnaviv/etnaviv_blend.h index 54e7bab0f8a..e26864d409f 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_blend.h +++ b/src/gallium/drivers/etnaviv/etnaviv_blend.h @@ -30,9 +30,13 @@ #include "pipe/p_context.h" #include "pipe/p_state.h" +struct etna_context; + struct etna_blend_state { struct pipe_blend_state base; + bool enable; + uint32_t PE_ALPHA_CONFIG; uint32_t PE_COLOR_FORMAT; uint32_t PE_LOGIC_OP; @@ -49,4 +53,7 @@ void * etna_blend_state_create(struct pipe_context *pctx, const struct pipe_blend_state *so); +bool +etna_update_blend(struct etna_context *ctx); + #endif |