mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
r300: hw clear buffer 0 hopefully
This commit is contained in:
parent
ffde891a03
commit
fbda2ad445
1 changed files with 11 additions and 0 deletions
|
|
@ -583,6 +583,11 @@ static void r300Clear(GLcontext * ctx, GLbitfield mask)
|
|||
mask &= ~BUFFER_BIT_STENCIL;
|
||||
}
|
||||
|
||||
if (mask & BUFFER_BIT_COLOR0) {
|
||||
flags |= BUFFER_BIT_COLOR0;
|
||||
mask &= ~BUFFER_BIT_COLOR0;
|
||||
}
|
||||
|
||||
if (mask) {
|
||||
if (RADEON_DEBUG & DEBUG_FALLBACKS)
|
||||
fprintf(stderr, "%s: swrast clear, mask: %x\n",
|
||||
|
|
@ -596,6 +601,12 @@ static void r300Clear(GLcontext * ctx, GLbitfield mask)
|
|||
r300EmitClearState(ctx);
|
||||
rrbd = (void *)rfb->base.Attachment[BUFFER_DEPTH].Renderbuffer;
|
||||
|
||||
if (flags & BUFFER_BIT_COLOR0) {
|
||||
rrb = (void *)rfb->base.Attachment[BUFFER_COLOR0].Renderbuffer;
|
||||
r300ClearBuffer(r300, CLEARBUFFER_COLOR, rrb, NULL);
|
||||
bits = 0;
|
||||
}
|
||||
|
||||
if (flags & BUFFER_BIT_FRONT_LEFT) {
|
||||
rrb = (void *)rfb->base.Attachment[BUFFER_FRONT_LEFT].Renderbuffer;
|
||||
r300ClearBuffer(r300, bits | CLEARBUFFER_COLOR, rrb, rrbd);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue