The fix for the intel X driver is here: http://gitweb.freedesktop.org/?p=xorg/driver/xf86-video-intel.git;a=commit;h=4f5500abe209b92b39ae1f2d7a1118362ac95034
But Mesa/DRI also needs to be fixed accordingly. See the following response by Keith Packard: > Any ideas? Do I need other patches, too?
Yeah, but you'll be limited to 4096 pixels -- Mesa can't go beyond that.
Here's what I tried:
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_c! index 1601f6d..c06f5da 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -138,10 +138,10 @@ GLboolean brwCreateContext( const __GLcontextModes *mesaVis, /* Advertise the full hardware capabilities. The new memory * manager should cope much better with overload situations: */ - ctx->Const.MaxTextureLevels = 12; + ctx->Const.MaxTextureLevels = 13; ctx->Const.Max3DTextureLevels = 9; ctx->Const.MaxCubeTextureLevels = 12; - ctx->Const.MaxTextureRectSize = (1<<11); + ctx->Const.MaxTextureRectSize = (1<<12); ctx->Const.MaxTextureUnits = BRW_MAX_TEX_UNIT;
/* ctx->Const.MaxNativeVertexProgramTemps = 32; */
I suspect the 3DTextureLevels and CubeTextureLevels need frobbing as well, but I didn't try to figure out what the right values might be.
The fix for the intel X driver is here: http:// gitweb. freedesktop. org/?p= xorg/driver/ xf86-video- intel.git; a=commit; h=4f5500abe209b 92b39ae1f2d7a11 18362ac95034
But Mesa/DRI also needs to be fixed accordingly. See the following response by Keith Packard:
> Any ideas? Do I need other patches, too?
Yeah, but you'll be limited to 4096 pixels -- Mesa can't go beyond that.
Here's what I tried:
diff --git a/src/mesa/ drivers/ dri/i965/ brw_context. c b/src/mesa/ drivers/ dri/i965/ brw_c! drivers/ dri/i965/ brw_context. c drivers/ dri/i965/ brw_context. c MaxTextureLevel s = 12; MaxTextureLevel s = 13; >Const. Max3DTextureLev els = 9; >Const. MaxCubeTextureL evels = 12; MaxTextureRectS ize = (1<<11); MaxTextureRectS ize = (1<<12); >Const. MaxTextureUnits = BRW_MAX_TEX_UNIT;
index 1601f6d..c06f5da 100644
--- a/src/mesa/
+++ b/src/mesa/
@@ -138,10 +138,10 @@ GLboolean brwCreateContext( const __GLcontextModes *mesaVis,
/* Advertise the full hardware capabilities. The new memory
* manager should cope much better with overload situations:
*/
- ctx->Const.
+ ctx->Const.
ctx-
ctx-
- ctx->Const.
+ ctx->Const.
ctx-
/* ctx->Const. MaxNativeVertex ProgramTemps = 32; */
I suspect the 3DTextureLevels and CubeTextureLevels need frobbing as
well, but I didn't try to figure out what the right values might be.