aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_screen.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-02-20 21:33:53 +0100
committerMarek Olšák <[email protected]>2010-02-21 14:24:12 +0100
commit5c14fd1743701776d128c2c1d25244f4de371ebe (patch)
treed43052624676685875adcf2fa7df0af9706ef478 /src/gallium/drivers/r300/r300_screen.c
parent2a30c268bdddf02300913c79ffbbb779c5399815 (diff)
r300g: make r300_translate_texformat private
Unlikely to increase performance from inlining. And partially expose it through r300_is_sampler_format_supported.
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r--src/gallium/drivers/r300/r300_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index 5fa1ea0850e..0b3b96def79 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -222,7 +222,7 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
/* Check sampler format support. */
if ((usage & PIPE_TEXTURE_USAGE_SAMPLER) &&
(is_r500 || !is_z24) && /* Z24 cannot be sampled from on non-r5xx. */
- r300_translate_texformat(format) != ~0) {
+ r300_is_sampler_format_supported(format)) {
retval |= PIPE_TEXTURE_USAGE_SAMPLER;
}