nouveau: always enable at least one RC
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 27 Aug 2016 23:51:29 +0000 (19:51 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 30 Aug 2016 04:21:42 +0000 (00:21 -0400)
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 <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/nouveau/nv20_state_frag.c

index 492ecdc42fa33893393732afc75513714a4552b3..2c5c2dbe89e9353b376bd7140667a9e003c5191f 100644 (file)
@@ -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));
 }