anv: Properly initialize device->slice_hash.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 14 Aug 2019 22:13:55 +0000 (15:13 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 15 Aug 2019 16:42:48 +0000 (09:42 -0700)
commitceeaf93c8e0ac502410da82e07aa25b15b065b9c
tree9078159e17ad7dc83a3c026d8c8975a0e5842b47
parent72354d43d405624f09182fe8dfe3bea1a35a9194
anv: Properly initialize device->slice_hash.

When subslices_delta == 0 and we take the early return,
device->slice_hash is not initialized on GEN11. It then causes a
segfault when going through anv_DestroyDevice, if compiled with
valgrind.

Fixes: 7bc022b4bbc ("anv/gen11: Emit SLICE_HASH_TABLE when pipes are
                    unbalanced.)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/genX_state.c