Mesa (master): mesa: add IsSample bitfield to gl_fragment_program
Chris Forbes
chrisf at kemper.freedesktop.org
Sat Dec 7 04:21:28 UTC 2013
Module: Mesa
Branch: master
Commit: 6429cc05ca953dff2a49a44e9a1478fc6e4ccfa1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6429cc05ca953dff2a49a44e9a1478fc6e4ccfa1
Author: Chris Forbes <chrisf at ijw.co.nz>
Date: Fri Nov 29 21:30:00 2013 +1300
mesa: add IsSample bitfield to gl_fragment_program
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>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
---
src/mesa/main/mtypes.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 87ce569..db3cc3b 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;
};
More information about the mesa-commit
mailing list