anv: fix crash when application does not provide push constants
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 2 May 2019 14:08:42 +0000 (15:08 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 3 May 2019 09:21:40 +0000 (10:21 +0100)
commit80dc78407d0d1e03ceddf8889b217e8fd113568d
tree6d2b91be3ea5ad7287a3d35e8c964aff3242c4c1
parente68d7bec677f61645dc41226df5cfa9b56b01b56
anv: fix crash when application does not provide push constants

Found while running Talos Principle.

As far as I can tell running a draw call with a pipeline having push
constants without the application having called vkCmdPushConstants
gives undefined push constant values.

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