diff options
author | Dave Airlie <[email protected]> | 2019-01-24 13:07:42 +1000 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-17 10:41:36 +0200 |
commit | dc91a02a72cd677b132c00b1fae2aeffefa1de1c (patch) | |
tree | 3f63a418d1f96a2afee5defdc75def1960e5a0c6 /src/compiler/nir/nir.h | |
parent | 26c6640835936a77d87030ce8e90f9b9f5be783e (diff) |
nir: add a pass to lower flat shading.
This takes any color or backcolor that has unspecified
shading and converts it to flat shading.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 960184b7f3c..fd7f3635cbe 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -3916,6 +3916,8 @@ void nir_lower_two_sided_color(nir_shader *shader); bool nir_lower_clamp_color_outputs(nir_shader *shader); +bool nir_lower_flatshade(nir_shader *shader); + void nir_lower_passthrough_edgeflags(nir_shader *shader); bool nir_lower_patch_vertices(nir_shader *nir, unsigned static_count, const gl_state_index16 *uniform_state_tokens); |