[Mesa-dev] [RFT PATCH 1/2] nouveau: fix GL_CLAMP

Ilia Mirkin imirkin at alum.mit.edu
Fri Sep 9 00:56:58 UTC 2016


My earlier observations were that this didn't actually do anything
useful on nv10. however it seems to help with nv25-on-nv30. should try
to test it on "real" hw.
---

Note - this needs to be redone so as to avoid returning 0x5 on hw that
doesn't support it. According to rnndb, it doesn't exist on NV4/NV5.

However the immediate desire is to double-check that it doesn't break
anything on pre-NV20 hw.

 src/mesa/drivers/dri/nouveau/nouveau_gldefs.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/nouveau/nouveau_gldefs.h b/src/mesa/drivers/dri/nouveau/nouveau_gldefs.h
index 46ec14e..ad698b1 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_gldefs.h
+++ b/src/mesa/drivers/dri/nouveau/nouveau_gldefs.h
@@ -229,6 +229,7 @@ nvgl_wrap_mode(unsigned wrap)
 	case GL_MIRRORED_REPEAT:
 		return 0x2;
 	case GL_CLAMP:
+		return 0x5;
 	case GL_CLAMP_TO_EDGE:
 		return 0x3;
 	case GL_CLAMP_TO_BORDER:
-- 
2.7.3



More information about the mesa-dev mailing list