aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-08-27 19:51:29 -0400
committerIlia Mirkin <[email protected]>2016-08-30 00:21:42 -0400
commit357d8261f1e9fd93105dd704c94828582dc02043 (patch)
tree9c4e8114d8531b50174b166a8fd5acdc90e1eb72 /src/mesa
parent91681302d0308a70aece883c3b56a18f9a44041f (diff)
nouveau: always enable at least one RC
Experimentally, this is required for glxgears and others to display the proper colors. This is also what the code used to do before the referenced commit. Fixes: c703658b396 (mesa: Drop _EnabledUnits.) Signed-off-by: Ilia Mirkin <[email protected]> Cc: [email protected]
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv20_state_frag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv20_state_frag.c b/src/mesa/drivers/dri/nouveau/nv20_state_frag.c
index 492ecdc42fa..2c5c2dbe89e 100644
--- a/src/mesa/drivers/dri/nouveau/nv20_state_frag.c
+++ b/src/mesa/drivers/dri/nouveau/nv20_state_frag.c
@@ -67,5 +67,5 @@ nv20_emit_frag(struct gl_context *ctx, int emit)
PUSH_DATA (push, in >> 32);
BEGIN_NV04(push, NV20_3D(RC_ENABLE), 1);
- PUSH_DATA (push, n);
+ PUSH_DATA (push, MAX2(1, n));
}