summaryrefslogtreecommitdiff
path: root/etnaviv
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2017-08-21 14:41:11 +0200
committerEric Engestrom <eric.engestrom@imgtec.com>2017-08-21 14:04:05 +0100
commit99d3f8253cff617af4662c48ba737bf6e10e146e (patch)
tree115fa320efcc2c37a2b4c78ad020dc4d35994421 /etnaviv
parenta0531e76f68e5f69cdc149d7cbff4ba299352dfe (diff)
etnaviv: fix etna_bo_from_name
Look up BOs from the name table using the name parameter instead of req.handle (which at this point is always zero). Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'etnaviv')
-rw-r--r--etnaviv/etnaviv_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/etnaviv/etnaviv_bo.c b/etnaviv/etnaviv_bo.c
index 4ad0434e..4fe877f1 100644
--- a/etnaviv/etnaviv_bo.c
+++ b/etnaviv/etnaviv_bo.c
@@ -173,7 +173,7 @@ struct etna_bo *etna_bo_from_name(struct etna_device *dev, uint32_t name)
pthread_mutex_lock(&table_lock);
/* check name table first, to see if bo is already open: */
- bo = lookup_bo(dev->name_table, req.handle);
+ bo = lookup_bo(dev->name_table, name);
if (bo)
goto out_unlock;