mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 02:50:16 +01:00
st/mesa: remove redundant _mesa_is_depth_format() call
The _mesa_is_depth_or_stencil_format() call covers all depth format cases too.
This commit is contained in:
parent
3ea6fdfdf1
commit
15750d89b9
1 changed files with 1 additions and 2 deletions
|
|
@ -1204,8 +1204,7 @@ st_ChooseTextureFormat_renderable(struct gl_context *ctx, GLint internalFormat,
|
|||
*/
|
||||
bindings = PIPE_BIND_SAMPLER_VIEW;
|
||||
if (renderable == GL_TRUE) {
|
||||
if (_mesa_is_depth_format(internalFormat) ||
|
||||
_mesa_is_depth_or_stencil_format(internalFormat))
|
||||
if (_mesa_is_depth_or_stencil_format(internalFormat))
|
||||
bindings |= PIPE_BIND_DEPTH_STENCIL;
|
||||
else
|
||||
bindings |= PIPE_BIND_RENDER_TARGET;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue