compiler/types: Add a texture type
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 15 Oct 2021 18:56:57 +0000 (13:56 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sat, 16 Oct 2021 05:49:34 +0000 (05:49 +0000)
commit3ace6b968b3254cb83c5e6ffef9864d300265339
tree9754d1047b057f45452ec204e418fa72c833c685
parent7558c9cb07ee186dac374c279520385ae7c036c3
compiler/types: Add a texture type

This is separate from images and samplers.  It's a texture (not a
storage image) without a sampler.  We also add C-visible helpers to
convert between sampler and image types.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13389>
14 files changed:
src/compiler/builtin_type_macros.h
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/gl_nir_link_uniform_initializers.c
src/compiler/glsl/ir_clone.cpp
src/compiler/glsl/link_uniform_initializers.cpp
src/compiler/glsl/tests/uniform_initializer_utils.cpp
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h
src/compiler/nir/nir.h
src/compiler/nir_types.cpp
src/compiler/nir_types.h
src/intel/compiler/brw_shader.cpp
src/intel/compiler/brw_vec4_visitor.cpp
src/mesa/program/ir_to_mesa.cpp