From 1807a08e4f35b014f2a80d1e88dd74a9f096d7a5 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 27 Aug 2015 23:05:03 -0400 Subject: nir: add nir_texop_texture_samples and convert from glsl Signed-off-by: Ilia Mirkin Reviewed-by: Kenneth Graunke --- src/glsl/nir/glsl_to_nir.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/glsl/nir/glsl_to_nir.cpp') diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index ad7d7dddeaf..bf78b4253d9 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_to_nir.cpp @@ -1718,6 +1718,11 @@ nir_visitor::visit(ir_texture *ir) num_srcs = 0; break; + case ir_texture_samples: + op = nir_texop_texture_samples; + num_srcs = 0; + break; + default: unreachable("not reached"); } -- cgit v1.2.3