summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2012-04-15 22:14:58 +1000
committerBen Skeggs <[email protected]>2012-04-15 22:18:02 +1000
commitd37f90f131ff18f0902e79853b2dbdfd494baa17 (patch)
tree1b007a46ece63955e33bcf9dbc4417f2f213b051
parent29128e5ee20b198ebedf0ff979d96c78ad264b8f (diff)
nv30: init sample_mask to some default value at context creation time
Fixes demos/lodbias.
-rw-r--r--src/gallium/drivers/nv30/nv30_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_context.c b/src/gallium/drivers/nv30/nv30_context.c
index 258ea7278f4..b16cb237873 100644
--- a/src/gallium/drivers/nv30/nv30_context.c
+++ b/src/gallium/drivers/nv30/nv30_context.c
@@ -158,6 +158,7 @@ nv30_context_create(struct pipe_screen *pscreen, void *priv)
nv30->use_nv4x = (screen->eng3d->oclass >= NV40_3D_CLASS) ? ~0 : 0;
nv30->render_mode = HW;
+ nv30->sample_mask = 0xffff;
nv30_vbo_init(pipe);
nv30_query_init(pipe);
nv30_state_init(pipe);