mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
845f2a7350
commit
3b817fde88
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue