anv: fix segfault in anv_BindImageMemory
authorDave Airlie <airlied@redhat.com>
Wed, 23 Nov 2016 06:05:34 +0000 (16:05 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Nov 2016 06:11:03 +0000 (16:11 +1000)
commit9ce592647682b1d27c313c4f72713046fc86cbe4
treeaacca4093ff35822dcba7ff0fa352d06411ea502
parent9c13cc94518b3dfb70774695de4191a551a5a7fa
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>
src/intel/vulkan/anv_wsi.c