2048 size limit on virtual displays

Keith Packard keithp at keithp.com
Sun Apr 27 23:02:04 PDT 2008


On Sat, 2008-04-26 at 17:47 +0200, Mika Fischer wrote:

> 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.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20080427/d883ea8d/attachment.pgp>


More information about the xorg mailing list