summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2014-07-30 12:04:49 -0700
committerJason Ekstrand <[email protected]>2015-01-15 07:18:58 -0800
commit8cdcfce5cea1a0dd761bdb82a03433f06c83f36b (patch)
tree208065e7e4889bd33b5d25318d4e123cc22b5f4b /src/glsl/nir/nir.h
parent370e875b32ebc7b2989fbc590b29e2d8dcb74913 (diff)
nir: add a pass to lower sampler instructions
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index ca4c43c5e47..0595b221442 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -32,6 +32,7 @@
#include "../list.h"
#include "GL/gl.h" /* GLenum */
#include "util/ralloc.h"
+#include "main/mtypes.h"
#include "nir_types.h"
#include <stdio.h>
@@ -1254,6 +1255,10 @@ void nir_lower_variables_scalar(nir_shader *shader, bool lower_globals,
void nir_remove_dead_variables(nir_shader *shader);
+void nir_lower_samplers(nir_shader *shader,
+ struct gl_shader_program *shader_program,
+ struct gl_program *prog);
+
#ifdef __cplusplus
} /* extern "C" */
#endif