summaryrefslogtreecommitdiffstats
path: root/src/etnaviv/etna.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/etnaviv/etna.c')
-rw-r--r--src/etnaviv/etna.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etnaviv/etna.c b/src/etnaviv/etna.c
index e35d32e..b78445d 100644
--- a/src/etnaviv/etna.c
+++ b/src/etnaviv/etna.c
@@ -355,9 +355,9 @@ int etna_free(struct etna_ctx *ctx)
return ETNA_INVALID_ADDR;
/* Free kernel command queue */
etna_queue_free(ctx->queue);
-#ifdef GCABI_HAVE_CONTEXT
+#ifdef GCABI_HAS_CONTEXT
/* Free context buffer */
- etna_bo_del(ctx->conn, ctx->ctx_info, NULL);
+ etna_bo_del(ctx->conn, ctx->ctx_bo, NULL);
#endif
/* Free command buffers */
for(int x=0; x<NUM_COMMAND_BUFFERS; ++x)