projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ea6fdf
)
st/mesa: remove redundant _mesa_is_depth_format() call
author
Brian Paul
<brianp@vmware.com>
Fri, 17 Jun 2011 19:25:31 +0000
(13:25 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 17 Jun 2011 19:44:59 +0000
(13:44 -0600)
The _mesa_is_depth_or_stencil_format() call covers all depth
format cases too.
src/mesa/state_tracker/st_format.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_format.c
b/src/mesa/state_tracker/st_format.c
index d11308ded7fbdc20af7d6c4c69f65a9320313c5a..99f486bba2c3d1b81a66796cdac8695676c3863d 100644
(file)
--- 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;