Mesa (master): etnaviv: switch magic single buffer state to "3"

Lucas Stach lynxeye at kemper.freedesktop.org
Fri Feb 23 14:35:03 UTC 2018


Module: Mesa
Branch: master
Commit: add23b59c9c1e7a162e76c885d1f8763807bc157
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=add23b59c9c1e7a162e76c885d1f8763807bc157

Author: Lucas Stach <l.stach at pengutronix.de>
Date:   Mon Feb  5 18:56:09 2018 +0100

etnaviv: switch magic single buffer state to "3"

Some of the 16bit formats misrender with missing tiles with the current
"2" state. As all the previously working formats also work with the "3"
state, just always use that one.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>

---

 src/gallium/drivers/etnaviv/etnaviv_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/etnaviv/etnaviv_state.c b/src/gallium/drivers/etnaviv/etnaviv_state.c
index e4ad0f62f1..87ba10b0dc 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_state.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_state.c
@@ -323,7 +323,7 @@ etna_set_framebuffer_state(struct pipe_context *pctx,
     * one per color buffer / depth buffer. To keep the logic simple always use
     * single buffer when this feature is available.
     */
-   cs->PE_LOGIC_OP = VIVS_PE_LOGIC_OP_SINGLE_BUFFER(ctx->specs.single_buffer ? 2 : 0);
+   cs->PE_LOGIC_OP = VIVS_PE_LOGIC_OP_SINGLE_BUFFER(ctx->specs.single_buffer ? 3 : 0);
 
    ctx->framebuffer_s = *sv; /* keep copy of original structure */
    ctx->dirty |= ETNA_DIRTY_FRAMEBUFFER | ETNA_DIRTY_DERIVE_TS;




More information about the mesa-commit mailing list