panfrost: Fix pan_blitter_get_blit_shader()

The key passed to _mesa_hash_table_search() is wrong, fix it.

Fixes: 8ba2f9f698 ("panfrost: Create a blitter library to replace the existing preload helpers")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10232>
This commit is contained in:
Boris Brezillon 2021-04-14 14:11:19 +02:00 committed by Marge Bot
parent 1c51c533bd
commit c8c6e0ff6f

View file

@ -431,7 +431,7 @@ pan_blitter_get_blit_shader(struct panfrost_device *dev,
const struct pan_blit_shader_key *key)
{
pthread_mutex_lock(&dev->blitter.shaders.lock);
struct hash_entry *he = _mesa_hash_table_search(dev->blitter.shaders.blit, &key);
struct hash_entry *he = _mesa_hash_table_search(dev->blitter.shaders.blit, key);
struct pan_blit_shader_data *shader = he ? he->data : NULL;
if (shader)