diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-10-28 08:42:55 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-10-28 08:42:55 +0100 |
commit | 2765fa2376327c4c8b2f0388cd8e15e4e91a449e (patch) | |
tree | 82d74182024b2a235fbcabb972159b2dc4d4bca6 /src | |
parent | dc04048e1e25a695983bfc5237e7df4fc036f863 (diff) |
etnaviv: fix build problem with GCABI=v2
GCABI_CONTEXT_HAS_PHYSICAL was still using the old ctx_info structure
which doesn't exist anymore.
Diffstat (limited to 'src')
-rw-r--r-- | src/etnaviv/etna.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etnaviv/etna.c b/src/etnaviv/etna.c index db7dcbb..e35d32e 100644 --- a/src/etnaviv/etna.c +++ b/src/etnaviv/etna.c @@ -126,8 +126,8 @@ static int gpu_context_clear(struct etna_ctx *ctx) GCCTX(ctx)->bufferSize = BEGIN_COMMIT_CLEARANCE; GCCTX(ctx)->logical = etna_bo_map(ctx->ctx_bo); #ifdef GCABI_CONTEXT_HAS_PHYSICAL - GCCTX(ctx)->bytes = ctx->ctx_info.bytes; /* actual size of buffer */ - GCCTX(ctx)->physical = HANDLE_TO_VIV(ctx->ctx_info.physical); + GCCTX(ctx)->bytes = etna_bo_size(ctx->ctx_bo); /* actual size of buffer */ + GCCTX(ctx)->physical = HANDLE_TO_VIV(etna_bo_gpu_address(ctx->ctx_bo)); #endif /* When context is empty, initial pipe should default to entry pipe so that * no pipe switch is needed within the context and the kernel does the |