From 5d3b1494b699184ba9363ee199490104048e9a2c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 3 Apr 2009 15:43:13 -0600 Subject: softpipe: add additional surface formats in tile cache code --- src/gallium/drivers/softpipe/sp_tile_cache.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/softpipe/sp_tile_cache.c') 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; -- cgit v1.2.3