summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-12-21 21:54:00 -0500
committerRob Clark <[email protected]>2016-05-11 12:20:11 -0400
commit3a939d034e41755b46b51fbe9071f5d31cdf1f81 (patch)
tree4a5904cb314a46b4d3ae581ee82a495c425857de /src/compiler/nir/nir.h
parent12c18ce4763d3982a52318365f45c4535aac0567 (diff)
nir: add lowering pass for glBitmap
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Connor Abbott <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 364972d046b..4075a5f0fc2 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -2398,6 +2398,13 @@ typedef struct nir_lower_drawpixels_options {
void nir_lower_drawpixels(nir_shader *shader,
const nir_lower_drawpixels_options *options);
+typedef struct nir_lower_bitmap_options {
+ unsigned sampler;
+ bool swizzle_xxxx;
+} nir_lower_bitmap_options;
+
+void nir_lower_bitmap(nir_shader *shader, const nir_lower_bitmap_options *options);
+
void nir_lower_atomics(nir_shader *shader,
const struct gl_shader_program *shader_program);
void nir_lower_to_source_mods(nir_shader *shader);