postprocess: Check for depth buffer in pp_jimenezmlaa
authorPark, Jeongmin <pjm0616@gmail.com>
Sat, 7 Feb 2015 08:53:47 +0000 (17:53 +0900)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 7 Feb 2015 11:12:00 +0000 (12:12 +0100)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88962
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/postprocess/pp_mlaa.c

index 9827b8c974951558cddf79079402197479e4da7e..147d14de95dd25bcf51e8ce1b2247f18998372b8 100644 (file)
@@ -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);
 }