Mesa (mesa_7_5_branch): mesa: Assume depth textures have a single level unless told otherwise.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Jul 2 16:41:22 UTC 2009


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Thu Jul  2 17:24:25 2009 +0100

mesa: Assume depth textures have a single level unless told otherwise.

---

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

diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index a2211ce..0a72784 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -335,7 +335,9 @@ guess_and_alloc_texture(struct st_context *st,
     * pagetable arrangements.
     */
    if ((stObj->base.MinFilter == GL_NEAREST ||
-        stObj->base.MinFilter == GL_LINEAR) &&
+        stObj->base.MinFilter == GL_LINEAR ||
+        stImage->base._BaseFormat == GL_DEPTH_COMPONENT ||
+        stImage->base._BaseFormat == GL_DEPTH_STENCIL_EXT) &&
        stImage->level == firstLevel) {
       lastLevel = firstLevel;
    }




More information about the mesa-commit mailing list