From 20c1db2d7c110ab5c1117a57b169baa1ab070518 Mon Sep 17 00:00:00 2001 From: Corbin Simpson Date: Fri, 18 Jul 2008 13:48:08 -0700 Subject: Upload bicubic filter to card. This was a LOT easier than I had feared, to be honest. --- src/radeon_textured_video.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/radeon_textured_video.c') 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); -- cgit v1.2.3