mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
radeon/dri2: if the depth buffer is 16-bit force cpp == 2
This is because the DDX always allocates using the drawable sizes. which gives me twice the depth buffer I asked for, dumb.
This commit is contained in:
parent
2f3be8ab14
commit
d81a48757a
1 changed files with 4 additions and 1 deletions
|
|
@ -508,8 +508,11 @@ radeon_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable)
|
|||
}
|
||||
}
|
||||
|
||||
if (buffers[i].attachment == __DRI_BUFFER_DEPTH)
|
||||
if (buffers[i].attachment == __DRI_BUFFER_DEPTH) {
|
||||
if (draw->base.Visual.depthBits == 16)
|
||||
rb->cpp = 2;
|
||||
depth_bo = bo;
|
||||
}
|
||||
|
||||
radeon_renderbuffer_set_bo(rb, bo);
|
||||
radeon_bo_unref(bo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue