diff options
author | Rob Clark <[email protected]> | 2015-12-21 21:27:25 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-05-11 12:20:11 -0400 |
commit | 12c18ce4763d3982a52318365f45c4535aac0567 (patch) | |
tree | 5d9c6344d624838c5d2e523294754f4ae66dba0d /src/compiler/nir/nir.h | |
parent | b26645a00f3bb3100cff167087f6bd84af150986 (diff) |
nir: add lowering pass for glDrawPixels
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.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 474ba6341ec..364972d046b 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2385,6 +2385,19 @@ typedef struct nir_lower_wpos_ytransform_options { bool nir_lower_wpos_ytransform(nir_shader *shader, const nir_lower_wpos_ytransform_options *options); +typedef struct nir_lower_drawpixels_options { + int texcoord_state_tokens[5]; + int scale_state_tokens[5]; + int bias_state_tokens[5]; + unsigned drawpix_sampler; + unsigned pixelmap_sampler; + bool pixel_maps :1; + bool scale_and_bias :1; +} nir_lower_drawpixels_options; + +void nir_lower_drawpixels(nir_shader *shader, + const nir_lower_drawpixels_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); |