st/mesa: handling lower flatshading for NIR drivers.
authorDave Airlie <airlied@redhat.com>
Thu, 24 Jan 2019 03:12:10 +0000 (13:12 +1000)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 17 Oct 2019 08:41:36 +0000 (10:41 +0200)
commitcce3ad166a5ad67ecfeb0777d8c60ddd3b95e3f3
tree479197cd792ae200129c4c9309a9c0b7d0bc4ffc
parent731260de7ddb30638b194f1a52a62a5b94487398
st/mesa: handling lower flatshading for NIR drivers.

This uses the NIR pass to lower flatshading when the driver
requests it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_rasterizer.c
src/mesa/state_tracker/st_atom_shader.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h