[Mesa-dev] [PATCH 2/2] glsl: add image and sampler (un)packing support to glsl to nir

Nicolai Hähnle nhaehnle at gmail.com
Mon Jan 22 13:10:07 UTC 2018


Both patches:

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>


On 19.01.2018 05:12, Timothy Arceri wrote:
> This is needed for ARB_bindless_texture support.
> ---
>   src/compiler/glsl/glsl_to_nir.cpp | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp
> index 4e3e9c4610..1a579f41cd 100644
> --- a/src/compiler/glsl/glsl_to_nir.cpp
> +++ b/src/compiler/glsl/glsl_to_nir.cpp
> @@ -1645,11 +1645,15 @@ nir_visitor::visit(ir_expression *ir)
>      case ir_unop_unpack_half_2x16:
>         result = nir_unpack_half_2x16(&b, srcs[0]);
>         break;
> +   case ir_unop_pack_sampler_2x32:
> +   case ir_unop_pack_image_2x32:
>      case ir_unop_pack_double_2x32:
>      case ir_unop_pack_int_2x32:
>      case ir_unop_pack_uint_2x32:
>         result = nir_pack_64_2x32(&b, srcs[0]);
>         break;
> +   case ir_unop_unpack_sampler_2x32:
> +   case ir_unop_unpack_image_2x32:
>      case ir_unop_unpack_double_2x32:
>      case ir_unop_unpack_int_2x32:
>      case ir_unop_unpack_uint_2x32:
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list