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 87ce5697cdccd2e992b2b5e015370b0cf777c6d5..db3cc3b5efd9fbc0f62e466e7b0b89077234fe64 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;
 };