summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-06-27 23:00:16 -0700
committerStéphane Marchesin <[email protected]>2011-06-28 00:59:40 -0700
commit77896b256a5e311ad68a588471dba63f405899a5 (patch)
treed3005b6e8fb1e2ae80b6a60e15ab3f0eb4b39617 /src/gallium/drivers
parent6f62a25448b765867ca9f424870abf5108d3a96d (diff)
i915g: When emulating LUMINANCE8 and INTENSITY8 texutres, route alpha properly.
That fixes some formats in fbo-alphatest-formats.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/i915/i915_state_emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915/i915_state_emit.c b/src/gallium/drivers/i915/i915_state_emit.c
index 55399a9cdc8..257a8347bbe 100644
--- a/src/gallium/drivers/i915/i915_state_emit.c
+++ b/src/gallium/drivers/i915/i915_state_emit.c
@@ -349,8 +349,8 @@ static const struct
uint hw_swizzle;
} fixup_formats[] = {
{ PIPE_FORMAT_R8G8B8A8_UNORM, 0x21030000 /* BGRA */},
- { PIPE_FORMAT_L8_UNORM, 0x00000000 /* RRRR */},
- { PIPE_FORMAT_I8_UNORM, 0x00000000 /* RRRR */},
+ { PIPE_FORMAT_L8_UNORM, 0x00030000 /* RRRR */},
+ { PIPE_FORMAT_I8_UNORM, 0x00030000 /* RRRR */},
{ PIPE_FORMAT_A8_UNORM, 0x33330000 /* AAAA */},
{ PIPE_FORMAT_NONE, 0x00000000},
};