summaryrefslogtreecommitdiff
path: root/src/mga_video.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-03-20 19:12:50 +0000
committerAdam Jackson <ajax@nwnk.net>2006-03-20 19:12:50 +0000
commit88ece3c37c4ed529686b6cdea1bf9b6eed8fceea (patch)
treeb77f097e1d11610306339690a8eb40956a4f86dc /src/mga_video.c
parent089c7be83d6cace94a692ec46a4c3a05b32fd4f4 (diff)
Bug #5587: Refactor mga_storm.c to only build once for all color depths.
(Ian Romanick)
Diffstat (limited to 'src/mga_video.c')
-rw-r--r--src/mga_video.c11
1 files changed, 9 insertions, 2 deletions
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);