[Mesa-dev] [PATCH 4/6] mesa: add IsSample bitfield to gl_fragment_program

Chris Forbes chrisf at ijw.co.nz
Fri Nov 29 00:54:38 PST 2013


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 at ijw.co.nz>
---
 src/mesa/main/mtypes.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index b4b432f..4698700 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -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;
 };
 
 
-- 
1.8.4.2



More information about the mesa-dev mailing list