diff options
author | Philipp Zabel | 2017-08-21 07:41:11 -0500 |
---|---|---|
committer | Eric Engestrom | 2017-08-21 08:04:05 -0500 |
commit | 99d3f8253cff617af4662c48ba737bf6e10e146e (patch) | |
tree | 115fa320efcc2c37a2b4c78ad020dc4d35994421 /etnaviv/etnaviv_bo.c | |
parent | a0531e76f68e5f69cdc149d7cbff4ba299352dfe (diff) | |
download | external-libgbm-99d3f8253cff617af4662c48ba737bf6e10e146e.tar.gz external-libgbm-99d3f8253cff617af4662c48ba737bf6e10e146e.tar.xz external-libgbm-99d3f8253cff617af4662c48ba737bf6e10e146e.zip |
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/etnaviv_bo.c')
-rw-r--r-- | etnaviv/etnaviv_bo.c | 2 |
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) | |||
173 | pthread_mutex_lock(&table_lock); | 173 | pthread_mutex_lock(&table_lock); |
174 | 174 | ||
175 | /* check name table first, to see if bo is already open: */ | 175 | /* check name table first, to see if bo is already open: */ |
176 | bo = lookup_bo(dev->name_table, req.handle); | 176 | bo = lookup_bo(dev->name_table, name); |
177 | if (bo) | 177 | if (bo) |
178 | goto out_unlock; | 178 | goto out_unlock; |
179 | 179 | ||