i965/vec4: Return the emitted instruction in emit_lrp()
[mesa.git] / src / mesa / drivers / dri / nouveau / nouveau_context.c
index 5be5ec5bc24aab1d9a22723b6bdaaeadd74bfdfe..a049d9b8de75fb86423a267835cb3f2cf602c83f 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #include <stdbool.h>
+#include <stdio.h>
 #include "nouveau_driver.h"
 #include "nouveau_context.h"
 #include "nouveau_bufferobj.h"
@@ -189,6 +190,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;
 }