summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_tex_tile_cache.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-09-27 15:05:29 -0600
committerBrian Paul <brianp@vmware.com>2010-09-27 15:06:23 -0600
commitde2dfce0d97aca1b6242eb4db5d6e4b78301bb49 (patch)
treeae1913f54ec024e41b8b837956169f6646a7c205 /src/gallium/drivers/softpipe/sp_tex_tile_cache.h
parent3446af01798bd4bfcdb68f984a3ecd8f7ff9a4a4 (diff)
softpipe: fix swizzling of texture border color
We ask the texture tile cache to swizzle the color for us since that's where the view/swizzling info is available.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_tex_tile_cache.h')
-rw-r--r--src/gallium/drivers/softpipe/sp_tex_tile_cache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_tile_cache.h b/src/gallium/drivers/softpipe/sp_tex_tile_cache.h
index 0794ffa0c5..05f25133da 100644
--- a/src/gallium/drivers/softpipe/sp_tex_tile_cache.h
+++ b/src/gallium/drivers/softpipe/sp_tex_tile_cache.h
@@ -90,6 +90,8 @@ struct softpipe_tex_tile_cache
unsigned format;
struct softpipe_tex_cached_tile *last_tile; /**< most recently retrieved tile */
+
+ float swz_border_color[4]; /**< swizzled border color */
};
@@ -154,7 +156,9 @@ sp_get_cached_tile_tex(struct softpipe_tex_tile_cache *tc,
}
-
+const float *
+sp_tex_tile_cache_border_color(struct softpipe_tex_tile_cache *tc,
+ const float border_color[4]);
#endif /* SP_TEX_TILE_CACHE_H */