anv: fix fence underlying primitive checks
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 11 Dec 2019 23:58:01 +0000 (01:58 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 12 Dec 2019 10:10:48 +0000 (10:10 +0000)
commit52bc235f2adcae8a3f40c74b15c9aad9e2b5c5b9
treeed88da2e7b32e3d0b32c401ffadd50ced3bafd83
parent790bc9a17e09496d9a865aae785e6538724b3b57
anv: fix fence underlying primitive checks

We appear to have got lucky that the only type of temporary fence
payload we could have was a syncobj and that would only happen when
the type of the permanent payload was also a syncobj.

This code was broken if that assumption changed and it did in commit
f9a3d9738b12.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
src/intel/vulkan/anv_queue.c