From b8f3381f2c8afc469ac48e1a4f9c50ba2438d43b Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Sun, 25 Sep 2011 15:54:30 +0200 Subject: [PATCH] i915g: add some obscure sampler formats 4bit palette ftw! Signed-off-by: Daniel Vetter --- src/gallium/drivers/i915/i915_reg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/i915/i915_reg.h b/src/gallium/drivers/i915/i915_reg.h index 14e786d0f2a..e48a942c6fe 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 */ -- 2.30.2