Mesa (mesa_7_5_branch): dri st: Don' t require the PIPE_TEXTURE_USAGE_RENDER_TARGET property for depth- and stencil renderbuffers .

Thomas Hellstrom thomash at kemper.freedesktop.org
Mon Jun 15 10:11:15 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: db22b35d213d58d188252f45d94fa353e638acee
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db22b35d213d58d188252f45d94fa353e638acee

Author: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
Date:   Thu Jun 11 00:54:06 2009 +0200

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>

---

 src/gallium/state_trackers/dri/dri_drawable.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/dri/dri_drawable.c b/src/gallium/state_trackers/dri/dri_drawable.c
index 15a2088..5846390 100644
--- a/src/gallium/state_trackers/dri/dri_drawable.c
+++ b/src/gallium/state_trackers/dri/dri_drawable.c
@@ -231,7 +231,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
@@ -242,7 +241,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




More information about the mesa-commit mailing list