st/glsl: support clamping color outputs in compat for gs/tes
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 25 Jun 2019 10:53:15 +0000 (20:53 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 26 Jun 2019 00:36:48 +0000 (00:36 +0000)
commitd19fe5e67a3945582448748c72b10fd5029d2ed5
treede982ef463558b0423501dbe9fc9d904b917e0f9
parentf5f31612d3392cb9ea015b157c4d564ac549a2f5
st/glsl: support clamping color outputs in compat for gs/tes

This support requires the driver to be a NIR driver as we use the
NIR lowering pass to do the clamping.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/state_tracker/st_atom_shader.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h