nir: add a pass to lower flat shading

Graphics / Mesa 3D Graphics Library / Mesa - Dave Airlie [redhat.com] - 17 October 2019 08:41 EDT

This takes any color or backcolor that has unspecified shading and converts it to flat shading.

dc91a02a72c nir: add a pass to lower flat shading.
src/compiler/Makefile.sources | 1 +
src/compiler/nir/meson.build | 1 +
src/compiler/nir/nir.h | 2 ++
src/compiler/nir/nir_lower_flatshade.c | 50 ++++++++++++++++++++++++++++++++++
4 files changed, 54 insertions(+)

Upstream: cgit.freedesktop.org


  • Share