Mesa (master): panfrost: Fix pan_blitter_get_blit_shader()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 14 14:04:37 UTC 2021
Module: Mesa
Branch: master
Commit: c8c6e0ff6fa6738c60d8797500515a89249d54d9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8c6e0ff6fa6738c60d8797500515a89249d54d9
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Wed Apr 14 14:11:19 2021 +0200
panfrost: Fix pan_blitter_get_blit_shader()
The key passed to _mesa_hash_table_search() is wrong, fix it.
Fixes: 8ba2f9f69858 ("panfrost: Create a blitter library to replace the existing preload helpers")
Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10232>
---
src/panfrost/lib/pan_blitter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/panfrost/lib/pan_blitter.c b/src/panfrost/lib/pan_blitter.c
index fdf512230a8..ff75ecccd76 100644
--- a/src/panfrost/lib/pan_blitter.c
+++ b/src/panfrost/lib/pan_blitter.c
@@ -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)
More information about the mesa-commit
mailing list