projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b31039
)
lvp: avoid accessing member of NULL ptr for global entries
author
Yiwei Zhang
<zzyiwei@chromium.org>
Fri, 12 May 2023 07:47:54 +0000
(
00:47
-0700)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 12 May 2023 19:05:23 +0000
(19:05 +0000)
Cc: mesa-stable
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22979>
src/gallium/frontends/lavapipe/lvp_device.c
patch
|
blob
|
history
diff --git
a/src/gallium/frontends/lavapipe/lvp_device.c
b/src/gallium/frontends/lavapipe/lvp_device.c
index
ed832d5
..
60d667d
100644
(file)
--- a/
src/gallium/frontends/lavapipe/lvp_device.c
+++ b/
src/gallium/frontends/lavapipe/lvp_device.c
@@
-1472,8
+1472,8
@@
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL lvp_GetInstanceProcAddr(
VkInstance _instance,
const char* pName)
{
-
LVP_FROM_HANDLE(lvp
_instance, instance, _instance);
- return vk_instance_get_proc_addr(
&instance->vk
,
+
VK_FROM_HANDLE(vk
_instance, instance, _instance);
+ return vk_instance_get_proc_addr(
instance
,
&lvp_instance_entrypoints,
pName);
}