diff options
author | Dave Airlie <airlied@redhat.com> | 2016-11-23 16:05:34 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-11-23 16:11:03 +1000 |
commit | 9ce592647682b1d27c313c4f72713046fc86cbe4 (patch) | |
tree | aacca4093ff35822dcba7ff0fa352d06411ea502 | |
parent | 9c13cc94518b3dfb70774695de4191a551a5a7fa (diff) |
anv: fix segfault in anv_BindImageMemory
Since bind image memory started memsetting surfaces, the
device node can't be NULL, since we lookup device->info.has_llc.
Not sure why it ever was NULL before.
Fixes some things on my Ivybridge.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/intel/vulkan/anv_wsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c index c504658c52..669eacc93c 100644 --- a/src/intel/vulkan/anv_wsi.c +++ b/src/intel/vulkan/anv_wsi.c @@ -200,7 +200,7 @@ x11_anv_wsi_image_create(VkDevice device_h, memory = anv_device_memory_from_handle(memory_h); memory->bo.is_winsys_bo = true; - anv_BindImageMemory(VK_NULL_HANDLE, image_h, memory_h, 0); + anv_BindImageMemory(device_h, image_h, memory_h, 0); struct anv_surface *surface = &image->color_surface; assert(surface->isl.tiling == ISL_TILING_X); |