Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created September 16, 2019 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anarsoul/a48f348b7e2275379be324a5232c6db0 to your computer and use it in GitHub Desktop.
Save anarsoul/a48f348b7e2275379be324a5232c6db0 to your computer and use it in GitHub Desktop.
diff --git a/src/gallium/drivers/lima/lima_draw.c b/src/gallium/drivers/lima/lima_draw.c
index 3b8f7526f32..d59d8ad8143 100644
--- a/src/gallium/drivers/lima/lima_draw.c
+++ b/src/gallium/drivers/lima/lima_draw.c
@@ -1154,6 +1154,9 @@ lima_pack_render_state(struct lima_context *ctx, const struct pipe_draw_info *in
render->aux0 = 0x00000300 | (ctx->vs->varying_stride >> 3);
render->aux1 = 0x00003000;
+ /* Disable early Z - should be done when alpha blend is enabled */
+ render->aux0 &= ~0x200;
+
if (ctx->tex_stateobj.num_samplers) {
render->textures_address =
lima_ctx_buff_va(ctx, lima_ctx_buff_pp_tex_desc, LIMA_CTX_BUFF_SUBMIT_PP);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment