aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_context.h
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2019-02-28 07:26:38 +0100
committerChristian Gmeiner <[email protected]>2019-03-01 08:02:17 +0100
commitd8177f623314a025911cc125783c9d63a0cc803e (patch)
treeb166c604ae4ff34964d83b26b22f1ae71dcb24f6 /src/gallium/drivers/etnaviv/etnaviv_context.h
parent5bb4e6956dcd8e0a6916207cc02af3fe5f631e44 (diff)
etnaviv: keep track of mapped bo address
Saves us from calling etna_bo_map(..) and saves us from doing the same offset calcs for map() and unmap() operations. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Lucas Stach <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_context.h')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.h b/src/gallium/drivers/etnaviv/etnaviv_context.h
index 6ad9f3431e1..45b3954c7cb 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_context.h
+++ b/src/gallium/drivers/etnaviv/etnaviv_context.h
@@ -70,6 +70,7 @@ struct etna_transfer {
struct pipe_transfer base;
struct pipe_resource *rsc;
void *staging;
+ void *mapped;
};
struct etna_vertexbuf_state {