mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 15:30:37 +01:00
16bpp doesn't support masked clears, so fallback when they're enabled.
This commit is contained in:
parent
96d375c682
commit
38595eda39
1 changed files with 10 additions and 0 deletions
|
|
@ -242,6 +242,16 @@ static void viaClear(GLcontext *ctx, GLbitfield mask, GLboolean all,
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 16bpp doesn't support masked clears */
|
||||
if (vmesa->viaScreen->bytesPerPixel == 2 &&
|
||||
vmesa->ClearMask & 0xf0000000) {
|
||||
if (flag & VIA_FRONT)
|
||||
mask |= DD_FRONT_LEFT_BIT;
|
||||
if (flag & VIA_BACK)
|
||||
mask |= DD_BACK_LEFT_BIT;
|
||||
flag &= ~(VIA_FRONT | VIA_BACK);
|
||||
}
|
||||
|
||||
if (flag) {
|
||||
drm_clip_rect_t *boxes, *tmp_boxes = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue