Mesa (master): postprocess: Check for depth buffer in pp_jimenezmlaa

Marek Olšák mareko at kemper.freedesktop.org
Sat Feb 7 11:16:44 UTC 2015


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

Author: Park, Jeongmin <pjm0616 at gmail.com>
Date:   Sat Feb  7 17:53:47 2015 +0900

postprocess: Check for depth buffer in pp_jimenezmlaa

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88962
Signed-off-by: Marek Olšák <marek.olsak at amd.com>

---

 src/gallium/auxiliary/postprocess/pp_mlaa.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/auxiliary/postprocess/pp_mlaa.c b/src/gallium/auxiliary/postprocess/pp_mlaa.c
index 9827b8c..147d14d 100644
--- a/src/gallium/auxiliary/postprocess/pp_mlaa.c
+++ b/src/gallium/auxiliary/postprocess/pp_mlaa.c
@@ -329,6 +329,9 @@ void
 pp_jimenezmlaa(struct pp_queue_t *ppq, struct pipe_resource *in,
                struct pipe_resource *out, unsigned int n)
 {
+   if (!ppq->depth) {
+      return;
+   }
    pp_jimenezmlaa_run(ppq, in, out, n, false);
 }
 




More information about the mesa-commit mailing list