anv: Support pushing shader constants
authorJason Ekstrand <jason@jlekstrand.net>
Sun, 2 May 2021 22:55:15 +0000 (17:55 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 19 May 2021 14:38:13 +0000 (14:38 +0000)
commitc01354d5c4433452164e70a54e7bbfabf2443b50
tree94821bb4bd7215518a841ddb1d9d7c5356bd9b02
parent24b3e71fa9038972292e10d236b8c27ec2fcef4f
anv: Support pushing shader constants

Usually, nir_opt_constant_folding will get rid of any load_constant
intrinsics which might possibly be pushed but there are rare cases where
we can still end up with them.  Better to handle them.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10571>
src/intel/vulkan/genX_cmd_buffer.c