X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fetnaviv%2Fetnaviv_state.c;h=fc3d9f108faca88297a9c4aeb8a028115ad1d113;hb=ec43605189907fa327a4a7f457aa3c822cfdea5d;hp=fb7bb0f4c50d88bed181309dab7fdcd91d2a836e;hpb=8644b59b5d98cf58deaecc583f68edd8be23bfca;p=mesa.git diff --git a/src/gallium/drivers/etnaviv/etnaviv_state.c b/src/gallium/drivers/etnaviv/etnaviv_state.c index fb7bb0f4c50..fc3d9f108fa 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_state.c +++ b/src/gallium/drivers/etnaviv/etnaviv_state.c @@ -42,20 +42,6 @@ #include "util/u_math.h" #include "util/u_memory.h" -static void -etna_set_blend_color(struct pipe_context *pctx, const struct pipe_blend_color *bc) -{ - struct etna_context *ctx = etna_context(pctx); - struct compiled_blend_color *cs = &ctx->blend_color; - - cs->PE_ALPHA_BLEND_COLOR = - VIVS_PE_ALPHA_BLEND_COLOR_R(etna_cfloat_to_uint8(bc->color[0])) | - VIVS_PE_ALPHA_BLEND_COLOR_G(etna_cfloat_to_uint8(bc->color[1])) | - VIVS_PE_ALPHA_BLEND_COLOR_B(etna_cfloat_to_uint8(bc->color[2])) | - VIVS_PE_ALPHA_BLEND_COLOR_A(etna_cfloat_to_uint8(bc->color[3])); - ctx->dirty |= ETNA_DIRTY_BLEND_COLOR; -} - static void etna_set_stencil_ref(struct pipe_context *pctx, const struct pipe_stencil_ref *sr) { @@ -600,6 +586,9 @@ static const struct etna_state_updater etna_state_updates[] = { }, { etna_update_blend, ETNA_DIRTY_BLEND | ETNA_DIRTY_FRAMEBUFFER + }, + { + etna_update_blend_color, ETNA_DIRTY_BLEND_COLOR | ETNA_DIRTY_FRAMEBUFFER, } };