summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/glsl_to_nir.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-08-27 23:05:03 -0400
committerIlia Mirkin <[email protected]>2015-09-10 17:38:33 -0400
commit1807a08e4f35b014f2a80d1e88dd74a9f096d7a5 (patch)
tree469f60dc891635720cc21c4f946bece136a44bf0 /src/glsl/nir/glsl_to_nir.cpp
parentf9052914e979228d28502a7f7953f98ff4731f99 (diff)
nir: add nir_texop_texture_samples and convert from glsl
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/nir/glsl_to_nir.cpp')
-rw-r--r--src/glsl/nir/glsl_to_nir.cpp5
1 files changed, 5 insertions, 0 deletions
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");
}