diff options
author | Marek Olšák <[email protected]> | 2015-03-09 20:04:04 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-03-09 20:58:32 +0100 |
commit | 74a757f92f7377f59c0feb7f84c7518f9a167631 (patch) | |
tree | 13eef7ec91e6898301619e91cc1d8c441fa322b2 /src/gallium/drivers/r300/r300_fs.c | |
parent | f710b99071fe4e3c2ee88cdcb6bb5c10298e014e (diff) |
r300g: fix RGTC1 and LATC1 SNORM formats
Cc: 10.5 10.4 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_fs.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c index c00f55f5d90..79eee73e236 100644 --- a/src/gallium/drivers/r300/r300_fs.c +++ b/src/gallium/drivers/r300/r300_fs.c @@ -170,24 +170,10 @@ static void get_external_state( } state->unit[i].non_normalized_coords = !s->state.normalized_coords; - state->unit[i].convert_unorm_to_snorm = - v->base.format == PIPE_FORMAT_RGTC1_SNORM || - v->base.format == PIPE_FORMAT_LATC1_SNORM; + state->unit[i].convert_unorm_to_snorm = 0; /* Pass texture swizzling to the compiler, some lowering passes need it. */ - if (v->base.format == PIPE_FORMAT_RGTC1_SNORM || - v->base.format == PIPE_FORMAT_LATC1_SNORM) { - unsigned char swizzle[4]; - - util_format_compose_swizzles( - util_format_description(v->base.format)->swizzle, - v->swizzle, - swizzle); - - state->unit[i].texture_swizzle = - RC_MAKE_SWIZZLE(swizzle[0], swizzle[1], - swizzle[2], swizzle[3]); - } else if (state->unit[i].compare_mode_enabled) { + if (state->unit[i].compare_mode_enabled) { state->unit[i].texture_swizzle = RC_MAKE_SWIZZLE(v->swizzle[0], v->swizzle[1], v->swizzle[2], v->swizzle[3]); |