nir: add a pass to lower flat shading.
authorDave Airlie <airlied@redhat.com>
Thu, 24 Jan 2019 03:07:42 +0000 (13:07 +1000)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 17 Oct 2019 08:41:36 +0000 (10:41 +0200)
commitdc91a02a72cd677b132c00b1fae2aeffefa1de1c
tree3f63a418d1f96a2afee5defdc75def1960e5a0c6
parent26c6640835936a77d87030ce8e90f9b9f5be783e
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 <marek.olsak@amd.com>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_flatshade.c [new file with mode: 0644]