OSDN Git Service

pp: initialize the sample mask
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 26 Aug 2011 19:45:26 +0000 (21:45 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 26 Aug 2011 19:45:26 +0000 (21:45 +0200)
We cannot rely on pipe drivers to default to non-zero.

Fixes pp being a no-op on nv50.

Reviewed-by: Lauri Kasanen <cand@gmx.com>
src/gallium/auxiliary/postprocess/pp_program.c

index 6ec8625..b92ac80 100644 (file)
@@ -133,5 +133,7 @@ pp_init_prog(struct pp_queue_t *ppq, struct pipe_screen *pscreen)
    p->surf.usage = PIPE_BIND_RENDER_TARGET;
    p->surf.format = PIPE_FORMAT_B8G8R8A8_UNORM;
 
+   p->pipe->set_sample_mask(p->pipe, ~0);
+
    return p;
 }