Zero out the ENGPACKET allocated on the stack, to avoid sending uninitialized

values to reserved fields on the card, resulting in all-black output and
sometimes hangs.

Submitted by:	Thomas Winischhofer
This commit is contained in:
Eric Anholt 2005-06-26 21:02:58 +00:00
parent 845f2a7350
commit 3b817fde88

View file

@ -316,6 +316,8 @@ static void sisCopyBuffer( __DRIdrawablePrivate *dPriv )
int i;
ENGPACKET stEngPacket;
memset(&stEngPacket, 0, sizeof(ENGPACKET));
while ((*smesa->FrameCountPtr) - MMIO_READ(0x8a2c) > SIS_MAX_FRAME_LENGTH)
;