diff options
author | Brian Paul <[email protected]> | 2009-04-03 15:43:13 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-04-03 15:43:13 -0600 |
commit | 5d3b1494b699184ba9363ee199490104048e9a2c (patch) | |
tree | 13dbfd848e01607a581da2b7f0495644897030f5 /src/gallium/drivers | |
parent | 80197a0c1bec48e3731bca975ec451d96f35f62a (diff) |
softpipe: add additional surface formats in tile cache code
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | 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 69292753f13..fd1097f41c9 100644 --- a/src/gallium/drivers/softpipe/sp_tile_cache.c +++ b/src/gallium/drivers/softpipe/sp_tile_cache.c @@ -608,18 +608,21 @@ sp_tile_cache_clear(struct softpipe_tile_cache *tc, uint clearValue) switch (tc->transfer->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; |