mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
dri st: Don't require the PIPE_TEXTURE_USAGE_RENDER_TARGET property for depth- and stencil renderbuffers.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
This commit is contained in:
parent
550a2fe1b7
commit
0d2ac7a10b
1 changed files with 0 additions and 2 deletions
|
|
@ -243,7 +243,6 @@ dri_create_buffer(__DRIscreenPrivate * sPriv,
|
|||
if (visual->depthBits) {
|
||||
if (pscreen->is_format_supported(pscreen, PIPE_FORMAT_Z24S8_UNORM,
|
||||
PIPE_TEXTURE_2D,
|
||||
PIPE_TEXTURE_USAGE_RENDER_TARGET |
|
||||
PIPE_TEXTURE_USAGE_DEPTH_STENCIL, 0))
|
||||
depthFormat = PIPE_FORMAT_Z24S8_UNORM;
|
||||
else
|
||||
|
|
@ -254,7 +253,6 @@ dri_create_buffer(__DRIscreenPrivate * sPriv,
|
|||
if (visual->stencilBits) {
|
||||
if (pscreen->is_format_supported(pscreen, PIPE_FORMAT_Z24S8_UNORM,
|
||||
PIPE_TEXTURE_2D,
|
||||
PIPE_TEXTURE_USAGE_RENDER_TARGET |
|
||||
PIPE_TEXTURE_USAGE_DEPTH_STENCIL, 0))
|
||||
stencilFormat = PIPE_FORMAT_Z24S8_UNORM;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue