diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-05-03 22:56:27 +0200 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2010-05-04 17:35:46 -0400 |
commit | 766024dcc61c83490540910ce752f9bfe6dddba4 (patch) | |
tree | 6d9d9f95e78d13852a5540bf4bd7ce6612c873f2 /src/radeon_dri2.c | |
parent | 6aedd57f6c2f08d0151a8bd1c5893d40d3db709a (diff) |
r3xx-r5xx: fix texturing with small macrotiled pixmaps
Pixmaps smaller than a macrotile cannot be used as textures because hardware
automatically switches to macro-linear and therefore sampled pixels are
messed up. This behavior is known as MACRO_SWITCH.
The only sane workaround seems to be not using macrotiling for small pixmaps.
The function RADEONMacroSwitch has been ported from r300g and implements
MACRO_SWITCH the same way it's implemented in hardware. It's been well tested
in r300g.
This commit also fixes blit-based framebuffer reads, which are used for tiled
surfaces in r300g, when ColorTiling is enabled.
Signed-off-by: Marek Olšák <maraeo@gmail.com>
Diffstat (limited to 'src/radeon_dri2.c')
0 files changed, 0 insertions, 0 deletions