spirv,nir: add new lod parameter to image_{load,store} intrinsics
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 6 Jan 2020 07:27:49 +0000 (08:27 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 9 Jan 2020 06:58:33 +0000 (07:58 +0100)
commit1b808d208f7ae6b7934ada37378c654991a5ca5a
tree033069ef6ba151e411a279e18550cc3bbdc28d56
parent37bfd854c71be8ace37080fbca36d0a1ef68fb8a
spirv,nir: add new lod parameter to image_{load,store} intrinsics

SPV_AMD_shader_image_load_store_lod allows to use a lod parameter
with OpImageRead, OpImageWrite and OpImageSparseRead.

According to the specification, this parameter should be a 32-bit
integer. It is initialized to 0 when no lod parameter is found
during SPIR-V->NIR translation.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-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_fmask_expand.c
src/amd/vulkan/radv_meta_resolve_cs.c
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir_intrinsics.py
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h
src/gallium/auxiliary/nir/tgsi_to_nir.c
src/mesa/state_tracker/st_pbo.c