mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-14 07:30:18 +01:00
st/glx: added PIPE_FORMAT_Z24S8_UNORM code
This commit is contained in:
parent
049b4c3405
commit
f7830dc391
1 changed files with 6 additions and 1 deletions
|
|
@ -376,7 +376,8 @@ create_xmesa_buffer(Drawable d, BufferType type,
|
|||
#endif
|
||||
|
||||
if (vis->mesa_visual.stencilBits == 8) {
|
||||
if (depthFormat == PIPE_FORMAT_S8Z24_UNORM)
|
||||
if (depthFormat == PIPE_FORMAT_S8Z24_UNORM ||
|
||||
depthFormat == PIPE_FORMAT_Z24S8_UNORM)
|
||||
stencilFormat = depthFormat;
|
||||
else
|
||||
stencilFormat = PIPE_FORMAT_S8_UNORM;
|
||||
|
|
@ -388,6 +389,10 @@ create_xmesa_buffer(Drawable d, BufferType type,
|
|||
/* use 24-bit Z, undefined stencil channel */
|
||||
depthFormat = PIPE_FORMAT_X8Z24_UNORM;
|
||||
}
|
||||
else if (depthFormat == PIPE_FORMAT_Z24S8_UNORM) {
|
||||
/* use 24-bit Z, undefined stencil channel */
|
||||
depthFormat = PIPE_FORMAT_Z24X8_UNORM;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue