mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
Fix up some incorrect pointers and clear screen
This commit is contained in:
parent
8b186e3695
commit
4ecb9f0532
1 changed files with 5 additions and 5 deletions
|
|
@ -617,13 +617,13 @@ static Bool
|
||||||
I830ClearScreen(DRIDriverContext *ctx, I830Rec *pI830, drmI830Sarea *sarea)
|
I830ClearScreen(DRIDriverContext *ctx, I830Rec *pI830, drmI830Sarea *sarea)
|
||||||
{
|
{
|
||||||
/* need to drmMap front and back buffers and zero them */
|
/* need to drmMap front and back buffers and zero them */
|
||||||
drmAddressPtr map_addr;
|
drmAddress map_addr;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = drmMap(ctx->drmFD,
|
ret = drmMap(ctx->drmFD,
|
||||||
sarea->front_handle,
|
sarea->front_handle,
|
||||||
sarea->front_size,
|
sarea->front_size,
|
||||||
map_addr);
|
&map_addr);
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
|
|
@ -640,7 +640,7 @@ I830ClearScreen(DRIDriverContext *ctx, I830Rec *pI830, drmI830Sarea *sarea)
|
||||||
ret = drmMap(ctx->drmFD,
|
ret = drmMap(ctx->drmFD,
|
||||||
sarea->back_handle,
|
sarea->back_handle,
|
||||||
sarea->back_size,
|
sarea->back_size,
|
||||||
map_addr);
|
&map_addr);
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
|
|
@ -810,14 +810,14 @@ I830ScreenInit(DRIDriverContext *ctx, I830Rec *pI830)
|
||||||
if (err == FALSE)
|
if (err == FALSE)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
I830SetRingRegs(ctx, pI830);
|
|
||||||
|
|
||||||
/* Quick hack to clear the front & back buffers. Could also use
|
/* Quick hack to clear the front & back buffers. Could also use
|
||||||
* the clear ioctl to do this, but would need to setup hw state
|
* the clear ioctl to do this, but would need to setup hw state
|
||||||
* first.
|
* first.
|
||||||
*/
|
*/
|
||||||
I830ClearScreen(ctx, pI830, pSAREAPriv);
|
I830ClearScreen(ctx, pI830, pSAREAPriv);
|
||||||
|
|
||||||
|
I830SetRingRegs(ctx, pI830);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue