summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers
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/state_trackers
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/state_trackers')
-rw-r--r--src/gallium/state_trackers/vega/renderer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vega/renderer.c b/src/gallium/state_trackers/vega/renderer.c
index 11d3b5a0779..61e31053234 100644
--- a/src/gallium/state_trackers/vega/renderer.c
+++ b/src/gallium/state_trackers/vega/renderer.c
@@ -308,7 +308,8 @@ static void renderer_set_fs(struct renderer *r, RendererFs id)
switch (id) {
case RENDERER_FS_COLOR:
- fs = util_make_fragment_passthrough_shader(r->pipe);
+ fs = util_make_fragment_passthrough_shader(r->pipe,
+ TGSI_SEMANTIC_COLOR, TGSI_INTERPOLATE_PERSPECTIVE);
break;
case RENDERER_FS_TEXTURE:
fs = util_make_fragment_tex_shader(r->pipe,