Mesa (master): i915g: add some obscure sampler formats

Daniel Vetter danvet at kemper.freedesktop.org
Fri Oct 7 05:47:46 PDT 2011


Module: Mesa
Branch: master
Commit: b8f3381f2c8afc469ac48e1a4f9c50ba2438d43b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8f3381f2c8afc469ac48e1a4f9c50ba2438d43b

Author: Daniel Vetter <daniel.vetter at ffwll.ch>
Date:   Sun Sep 25 15:54:30 2011 +0200

i915g: add some obscure sampler formats

4bit palette ftw!

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>

---

 src/gallium/drivers/i915/i915_reg.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/i915/i915_reg.h b/src/gallium/drivers/i915/i915_reg.h
index 14e786d..e48a942 100644
--- a/src/gallium/drivers/i915/i915_reg.h
+++ b/src/gallium/drivers/i915/i915_reg.h
@@ -720,9 +720,11 @@
 #define    MAPSURF_4BIT_INDEXED		   (7<<7)
 #define MS3_MT_FORMAT_MASK         (0x7 << 3)
 #define MS3_MT_FORMAT_SHIFT        3
-#define    MT_4BIT_IDX_ARGB8888	           (7<<3)       /* SURFACE_4BIT_INDEXED */
+#define    MT_4BIT_P4		           (7<<3)       /* SURFACE_4BIT_INDEXED */
 #define    MT_8BIT_I8		           (0<<3)       /* SURFACE_8BIT */
 #define    MT_8BIT_L8		           (1<<3)
+#define    MT_8BIT_A4P4		           (2<<3)
+#define    MT_8BIT_P4A4		           (3<<3)
 #define    MT_8BIT_A8		           (4<<3)
 #define    MT_8BIT_MONO8	           (5<<3)
 #define    MT_16BIT_RGB565 		   (0<<3)       /* SURFACE_16BIT */



More information about the mesa-commit mailing list