diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-04-16 11:10:51 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-04-17 10:25:00 -0400 |
commit | 85323a7f84381fef7fad20c7f7ec601637af9aa7 (patch) | |
tree | 7c77817d76e30d43dc20fca588d307d97b8bd3cb /src | |
parent | 5ea5df22c038fc8f00984acc760e9d8c962bf902 (diff) |
R3xx/R4xx: set tex caching for Y texture when doing planar rendering
Doesn't affect performance, but docs indicate its the right
thing to do.
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_textured_videofuncs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/radeon_textured_videofuncs.c b/src/radeon_textured_videofuncs.c index e4492046..0ac247ad 100644 --- a/src/radeon_textured_videofuncs.c +++ b/src/radeon_textured_videofuncs.c @@ -1091,7 +1091,10 @@ FUNC_NAME(R300DisplayTexturedVideo)(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) OUT_ACCEL_REG(R300_TX_FILTER0_0, txfilter); OUT_ACCEL_REG(R300_TX_FILTER1_0, 0); OUT_ACCEL_REG(R300_TX_FORMAT0_0, txformat0); - OUT_ACCEL_REG(R300_TX_FORMAT1_0, txformat1); + if (isplanar) + OUT_ACCEL_REG(R300_TX_FORMAT1_0, txformat1 | R300_TX_FORMAT_CACHE_HALF_REGION_0); + else + OUT_ACCEL_REG(R300_TX_FORMAT1_0, txformat1); OUT_ACCEL_REG(R300_TX_FORMAT2_0, txpitch); OUT_ACCEL_REG(R300_TX_OFFSET_0, txoffset); FINISH_ACCEL(); |