radv/meta: Set num_components on image_store intrinsics
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 30 Aug 2018 00:47:19 +0000 (19:47 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 30 Aug 2018 13:26:14 +0000 (08:26 -0500)
commit19bdc7dd0faa5a016977b6447d610ac847b69d2b
treef80e9dfcae00a961770b81afed715e315b77cf4e
parent8c0e3f3822f294c6146e41170f0ef3e3a91770f5
radv/meta: Set num_components on image_store intrinsics

Now that image load/store intrinsics are variable-width, we need to set
num_components accordingly.  In 15d39f474b890, both glsl_to_nir and
spirv_to_nir were updated to properly set num_components but radv meta
was left behind.

Fixes: 15d39f474b890 "nir: Make image load/store intrinsics..."
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_bufimage.c
src/amd/vulkan/radv_meta_fast_clear.c
src/amd/vulkan/radv_meta_resolve_cs.c