anv: Enable KHR_shader_integer_dot_product
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Jun 2021 02:49:32 +0000 (19:49 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 31 Aug 2021 19:57:21 +0000 (19:57 +0000)
commitf2c69f8306652b58701883d400c6f988eb79de0c
tree0ae48e0537d541c7bae15ee262b86368b2e493a0
parent24b8fc38c3f01fbed0b8aba7eeb6b00c3a43cb85
anv: Enable KHR_shader_integer_dot_product

For now, only mark the 4x8BitPacked variants as accelerated.

Applications are unlikely to use the "add with saturate" opcodes from
VK_INTEL_shader_integer_functions2, so, technically, all of the
AccumulatingSaturating variants "[provide] a performance advantage over
user-provided code composed from elementary instructions..." on all
Intel platforms.  If we encounter an application that cares, we can do
things differently then.  Ditto for the non-packed 8Bit, 4-element
vector variants.

v2: Don't memset props as this also zeros sType and pNext.  Noticed by
Georg Lehmann in !12617.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12624>
src/intel/vulkan/anv_device.c