Mesa (gallium-0.1): softpipe: add additional surface formats in tile cache code
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Tue Aug 25 09:23:54 UTC 2009
Module: Mesa
Branch: gallium-0.1
Commit: cbd6b0b8ec2dd96b5d796457ac767610fb811cd3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbd6b0b8ec2dd96b5d796457ac767610fb811cd3
Author: Brian Paul <brianp at vmware.com>
Date: Fri Apr 3 15:43:13 2009 -0600
softpipe: add additional surface formats in tile cache code
---
src/gallium/drivers/softpipe/sp_tile_cache.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/softpipe/sp_tile_cache.c b/src/gallium/drivers/softpipe/sp_tile_cache.c
index 8c2f6d2..db6036d 100644
--- a/src/gallium/drivers/softpipe/sp_tile_cache.c
+++ b/src/gallium/drivers/softpipe/sp_tile_cache.c
@@ -581,18 +581,21 @@ sp_tile_cache_clear(struct softpipe_tile_cache *tc, uint clearValue)
switch (tc->surface->format) {
case PIPE_FORMAT_R8G8B8A8_UNORM:
+ case PIPE_FORMAT_R8G8B8X8_UNORM:
r = (clearValue >> 24) & 0xff;
g = (clearValue >> 16) & 0xff;
b = (clearValue >> 8) & 0xff;
a = (clearValue ) & 0xff;
break;
case PIPE_FORMAT_A8R8G8B8_UNORM:
+ case PIPE_FORMAT_X8R8G8B8_UNORM:
r = (clearValue >> 16) & 0xff;
g = (clearValue >> 8) & 0xff;
b = (clearValue ) & 0xff;
a = (clearValue >> 24) & 0xff;
break;
case PIPE_FORMAT_B8G8R8A8_UNORM:
+ case PIPE_FORMAT_B8G8R8X8_UNORM:
r = (clearValue >> 8) & 0xff;
g = (clearValue >> 16) & 0xff;
b = (clearValue >> 24) & 0xff;
More information about the mesa-commit
mailing list