Module: Mesa
Branch: 10.3
Commit: fb20a5aa987dbd8f9c150e5ded01f0507dff0116
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb20a5aa987dbd8f9c150e5ded01f0507dff0116

Author: Ilia Mirkin <imir...@alum.mit.edu>
Date:   Sun Oct  5 12:35:51 2014 -0400

nouveau: 3d textures are unsupported, limit 3d levels to 1

Ideally there would be a swrast fallback, but the driver isn't ready for
that. This should avoid crashes if someone tries to use 3d textures
though.

Signed-off-by: Ilia Mirkin <imir...@alum.mit.edu>
Reviewed-by: Francisco Jerez <curroje...@riseup.net>
Cc: mesa-sta...@lists.freedesktop.org
(cherry picked from commit 5524af81365d51757ef68a8e62dbd426d0b07184)

---

 src/mesa/drivers/dri/nouveau/nouveau_context.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c 
b/src/mesa/drivers/dri/nouveau/nouveau_context.c
index f8c8dc3..5886a94 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_context.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c
@@ -189,6 +189,9 @@ nouveau_context_init(struct gl_context *ctx, gl_api api,
        ctx->Extensions.NV_texture_env_combine4 = true;
        ctx->Const.MaxColorAttachments = 1;
 
+       /* This effectively disables 3D textures */
+       ctx->Const.Max3DTextureLevels = 1;
+
        return GL_TRUE;
 }
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to