mesa: add IsSample bitfield to gl_fragment_program
authorChris Forbes <chrisf@ijw.co.nz>
Fri, 29 Nov 2013 08:30:00 +0000 (21:30 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 7 Dec 2013 04:15:01 +0000 (17:15 +1300)
Drivers will need to look at this to decide if they need to do
per-sample fragment shader dispatch.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/main/mtypes.h

index 87ce569..db3cc3b 100644 (file)
@@ -2132,6 +2132,12 @@ struct gl_fragment_program
     * uses centroid interpolation, 0 otherwise.  Unused inputs are 0.
     */
    GLbitfield64 IsCentroid;
+
+   /**
+    * Bitfield indicating, for each fragment shader input, 1 if that input
+    * uses sample interpolation, 0 otherwise.  Unused inputs are 0.
+    */
+   GLbitfield64 IsSample;
 };