Mesa (master): st/mesa: remove redundant _mesa_is_depth_format() call

Brian Paul brianp at kemper.freedesktop.org
Fri Jun 17 19:45:18 UTC 2011


Module: Mesa
Branch: master
Commit: 15750d89b9d3592032814faf7dd885c9dd6d686b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=15750d89b9d3592032814faf7dd885c9dd6d686b

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Jun 17 13:25:31 2011 -0600

st/mesa: remove redundant _mesa_is_depth_format() call

The _mesa_is_depth_or_stencil_format() call covers all depth
format cases too.

---

 src/mesa/state_tracker/st_format.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index d11308d..99f486b 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -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;




More information about the mesa-commit mailing list