From 88ece3c37c4ed529686b6cdea1bf9b6eed8fceea Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 20 Mar 2006 19:12:50 +0000 Subject: Bug #5587: Refactor mga_storm.c to only build once for all color depths. (Ian Romanick) --- src/mga_video.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/mga_video.c') diff --git a/src/mga_video.c b/src/mga_video.c index bba12a7..3617ef8 100644 --- a/src/mga_video.c +++ b/src/mga_video.c @@ -650,6 +650,14 @@ MGADisplayVideoOverlay( } + +/** + * \todo + * Starting with at least the G200, the chip can handle non-mipmapped + * non-power-of-two textures. However, the code in this routine forces the + * texture dimensions to be powers of two. That should simplify the code and + * may improve performance slightly. + */ static void MGADisplayVideoTexture( ScrnInfoPtr pScrn, @@ -694,9 +702,8 @@ MGADisplayVideoTexture( CHECK_DMA_QUIESCENT(pMga, pScrn); if(pMga->Overlay8Plus24) { - i = 0x00ffffff; WAITFIFO(1); - SET_PLANEMASK(i); + SET_PLANEMASK_REPLICATED( 0x00ffffff, 0xffffffff, 32 ); } WAITFIFO(15); -- cgit v1.2.3