mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-03 17:30:20 +01:00
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>
This commit is contained in:
parent
a0531e76f6
commit
99d3f8253c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue