Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created September 28, 2019 16:24
Show Gist options
  • Select an option

  • Save anarsoul/980636fb5f6ba8bcbb30baad7de7cb2a to your computer and use it in GitHub Desktop.

Select an option

Save anarsoul/980636fb5f6ba8bcbb30baad7de7cb2a to your computer and use it in GitHub Desktop.
diff --git a/src/gallium/drivers/lima/lima_texture.c b/src/gallium/drivers/lima/lima_texture.c
index a259a1c7b7a..d16ea147d55 100644
--- a/src/gallium/drivers/lima/lima_texture.c
+++ b/src/gallium/drivers/lima/lima_texture.c
@@ -95,6 +95,7 @@ lima_texture_desc_set_res(struct lima_context *ctx, lima_tex_desc *desc,
layout = 0;
}
+ lima_bo_wait(lima_res->bo, LIMA_GEM_WAIT_READ, PIPE_TIMEOUT_INFINITE);
lima_submit_add_bo(ctx->pp_submit, lima_res->bo, LIMA_SUBMIT_BO_READ);
uint32_t base_va = lima_res->bo->va;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment