From: Patrice Mandin Date: Sun, 4 Feb 2007 12:10:23 +0000 (+0100) Subject: nouveau: nv10: add init for unknown 0x120 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=296eeb882fa9fd7528f33ed307f87171dff7ee1c;p=mesa.git nouveau: nv10: add init for unknown 0x120 --- diff --git a/src/mesa/drivers/dri/nouveau/nv10_state.c b/src/mesa/drivers/dri/nouveau/nv10_state.c index 88c1d7d9e1d..8fbc76c308f 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_state.c +++ b/src/mesa/drivers/dri/nouveau/nv10_state.c @@ -659,6 +659,14 @@ static GLboolean nv10InitCard(nouveauContextPtr nmesa) BEGIN_RING_SIZE(NvSub3D, 0x03f4, 1); OUT_RING(0); + /* not for nv10, only for >= nv11 */ + if ((nmesa->screen->card->id>>4) >= 0x11) { + BEGIN_RING_SIZE(NvSub3D, 0x120, 3); + OUT_RING(0); + OUT_RING(1); + OUT_RING(2); + } + return GL_TRUE; }