Mesa (master): nouveau: always enable at least one RC

Ilia Mirkin imirkin at kemper.freedesktop.org
Tue Aug 30 04:46:55 UTC 2016


Module: Mesa
Branch: master
Commit: 357d8261f1e9fd93105dd704c94828582dc02043
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=357d8261f1e9fd93105dd704c94828582dc02043

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sat Aug 27 19:51:29 2016 -0400

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 <imirkin at alum.mit.edu>
Cc: mesa-stable at lists.freedesktop.org

---

 src/mesa/drivers/dri/nouveau/nv20_state_frag.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/nouveau/nv20_state_frag.c b/src/mesa/drivers/dri/nouveau/nv20_state_frag.c
index 492ecdc..2c5c2db 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));
 }




More information about the mesa-commit mailing list