gallium/util: fix glClear with MRT by making the FS write to all cbufs

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Marek Olšák
2013-01-14 17:07:58 +01:00
parent 2cd1407d2d
commit 355d463f73
6 changed files with 42 additions and 9 deletions

View File

@@ -59,7 +59,8 @@ get_passthrough_fs(struct st_context *st)
{
if (!st->passthrough_fs) {
st->passthrough_fs =
util_make_fragment_passthrough_shader(st->pipe);
util_make_fragment_passthrough_shader(st->pipe, TGSI_SEMANTIC_COLOR,
TGSI_INTERPOLATE_PERSPECTIVE);
}
return st->passthrough_fs;