mesa/st: add per sample shading state to fp key and set interpolation
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 5 Jul 2014 03:01:39 +0000 (23:01 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 9 Jul 2014 23:26:32 +0000 (19:26 -0400)
commit6b92a06ea32492d2ff968038672d104b711b66f0
treeef5a3bf1aef9374970b2c33f964f00f91140b0d1
parent4c97ed4411e3653a082875b79587fb308c284a99
mesa/st: add per sample shading state to fp key and set interpolation

This enables a gallium driver not to care about the semantics of
ARB_sample_shading vs ARB_gpu_shader5 sample attributes. When
ARB_sample_shading-style sample shading is enabled, all of the fp inputs
are marked for interpolation at the sample location.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_shader.c
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h