From 1c356ac95b6df0962dbd15311ff7e0ea172e1aea Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 11 Apr 2010 01:13:11 +0200 Subject: r300g: cleanup handling of sampler views The evolution of TX_FORMAT bits is as follows: * When a texture is created, set bits independent of pipe_format. * When a sampler view is created, add format-specific bits. * When sampler states and views are getting merged, add min/max LOD. --- src/gallium/drivers/r300/r300_texture.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r300/r300_texture.h') diff --git a/src/gallium/drivers/r300/r300_texture.h b/src/gallium/drivers/r300/r300_texture.h index a545a0f221..7b8b40551d 100644 --- a/src/gallium/drivers/r300/r300_texture.h +++ b/src/gallium/drivers/r300/r300_texture.h @@ -25,10 +25,13 @@ #include "util/u_format.h" -#include "r300_reg.h" - struct r300_texture; +uint32_t r300_translate_texformat(enum pipe_format format, + const unsigned char *swizzle); + +uint32_t r500_tx_format_msb_bit(enum pipe_format format); + unsigned r300_texture_get_stride(struct r300_screen* screen, struct r300_texture* tex, unsigned level); -- cgit v1.2.3