zink: fully zero surface creation struct
gotta get those holes for caching cc: mesa-stable Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13410>
This commit is contained in:
committed by
Marge Bot
parent
a2789fde0c
commit
e66558985a
@@ -37,7 +37,9 @@ create_ivci(struct zink_screen *screen,
|
||||
const struct pipe_surface *templ,
|
||||
enum pipe_texture_target target)
|
||||
{
|
||||
VkImageViewCreateInfo ivci = {0};
|
||||
VkImageViewCreateInfo ivci;
|
||||
/* zero holes since this is hashed */
|
||||
memset(&ivci, 0, sizeof(VkImageViewCreateInfo));
|
||||
ivci.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
|
||||
ivci.image = res->obj->image;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user