diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2008-07-18 13:48:08 -0700 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2008-08-25 06:19:53 -0400 |
commit | 20c1db2d7c110ab5c1117a57b169baa1ab070518 (patch) | |
tree | 05b82daeda9c7be805666d3c5817a1ee46cc6769 /src/radeon_textured_video.c | |
parent | a760e628134c6d7d42ec3c98118b6e5f6fcd3e7f (diff) |
Upload bicubic filter to card. This was a LOT easier than I had feared, to be honest.
Diffstat (limited to 'src/radeon_textured_video.c')
-rw-r--r-- | src/radeon_textured_video.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/radeon_textured_video.c b/src/radeon_textured_video.c index 1e4ce1de..15f1c5ce 100644 --- a/src/radeon_textured_video.c +++ b/src/radeon_textured_video.c @@ -200,7 +200,8 @@ RADEONPutImageTextured(ScrnInfoPtr pScrn, } /* Bicubic filter loading */ - if (pPriv->bicubic_memory == NULL) { + pPriv->bicubic_enabled = TRUE; + if (pPriv->bicubic_memory == NULL && pPriv->bicubic_enabled) { pPriv->bicubic_offset = RADEONAllocateMemory(pScrn, &pPriv->bicubic_memory, sizeof(bicubic_tex_128)); @@ -276,6 +277,10 @@ RADEONPutImageTextured(ScrnInfoPtr pScrn, break; } + /* Upload bicubic filter tex */ + if (pPriv->bicubic_enabled) + RADEONCopyData(pScrn, (uint8_t *)bicubic_tex_128, (uint8_t *)(info->FB + pPriv->bicubic_offset), 128, 128, 1, 128, 4); + /* update cliplist */ if (!REGION_EQUAL(pScrn->pScreen, &pPriv->clip, clipBoxes)) { REGION_COPY(pScrn->pScreen, &pPriv->clip, clipBoxes); |