summaryrefslogtreecommitdiff
path: root/src/gallium/tests/trivial
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2013-01-14 17:07:58 +0100
committerMarek Olšák <maraeo@gmail.com>2013-01-15 16:47:18 +0100
commit355d463f73976a5b091371690e5a914511b0b938 (patch)
tree21873711c5ec7f39aee45e7b752388ecbc666969 /src/gallium/tests/trivial
parent2cd1407d2d376041a5334d79de1ac43a71dcc3cf (diff)
gallium/util: fix glClear with MRT by making the FS write to all cbufs
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/tests/trivial')
-rw-r--r--src/gallium/tests/trivial/tri.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/tests/trivial/tri.c b/src/gallium/tests/trivial/tri.c
index ad88b869c8d..9acf2e1628a 100644
--- a/src/gallium/tests/trivial/tri.c
+++ b/src/gallium/tests/trivial/tri.c
@@ -216,7 +216,8 @@ static void init_prog(struct program *p)
}
/* fragment shader */
- p->fs = util_make_fragment_passthrough_shader(p->pipe);
+ p->fs = util_make_fragment_passthrough_shader(p->pipe,
+ TGSI_SEMANTIC_COLOR, TGSI_INTERPOLATE_PERSPECTIVE);
}
static void close_prog(struct program *p)