[Openchrome-users] Max Texture Size
Thomas Hellström
thomas
Thu May 11 13:21:35 PDT 2006
Boris Du?ek wrote:
>Hi all,
>
>the great news is that Xgl starts with this patch.
>The bad news is that compiz complains that "compiz: Support for non power of
>two textures missing."
>The info at http://gentoo-wiki.com/HOWTO_XGL/Troubleshooting says that "The
>driver has to support either the GL_{NV,EXT,ARB}_texture_rectangle or the
>GL_ARB_texture_non_power_of_two extension.", which explains the problem (but
>why does it not fallback to software rendering?).
>
>I have started poking around in the driver sources, so I will see if I find
>some solution/workaround.
>
>Cheers,
>Boris Dusek
>
>On Monday 24 April 2006 15:40, Ivor Hewitt wrote:
>
>
>>Anyone know if the texture size fix in:-
>>
>>https://bugs.freedesktop.org/show_bug.cgi?id=3130
>>
>>ever got committed to dri? and if not why not?
>>
>>
Boris,
Take a look at
http://dri.freedesktop.org/wiki/ConfigurationForDevelopers
and then at the top of via_screen.c in the unichrome 3D driver sources.
A number of options is listed there with macros that are somewhat
explained in the driconf wiki pages.
Then install driconf and you will be able to tweak the options listed at
the top of via_screen.c using driconf. (Quite neatly I must say), but
hmm, wait. the options seem to never be queried by the driver.
So what it all boils down to is to add a boolean option to a suitable
driconf section at the top of via_screen.c, which can then be queried using
driQueryOptionb(&vmesa->optionCache, "max_texsize");
And based on the return value decide to use the hack or not.
While you're at it, the unichrome dri driver have a number of options
that are using environment variables:
> grep -i getenv *.c
returns
via_context.c: if (getenv("ALTERNATE_SCREEN"))
via_context.c: if (getenv("VIA_DEBUG"))
via_context.c: VIA_DEBUG = driParseDebugString( getenv( "VIA_DEBUG" ),
via_context.c: if (getenv("VIA_NO_RAST"))
via_context.c: vmesa->vblank_flags = (getenv("VIA_VSYNC") ?
via_context.c: if (getenv("VIA_PAGEFLIP"))
via_tex.c: if (getenv("VIA_NO_SSE"))
These should ideally also be moved to driconf option handling, which is
only a matter of finishing what others have started.
/Thmas
>_______________________________________________
>openchrome-users mailing list
>openchrome-users at openchrome.org
>http://wiki.openchrome.org/mailman/listinfo/openchrome-users
>Main page:
>http://www.openchrome.org
>Wiki:
>http://wiki.openchrome.org
>User Forum:
>http://wiki.openchrome.org/tikiwiki/tiki-view_forum.php?forumId=1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wiki.openchrome.org/pipermail/openchrome-users/attachments/20060511/3a80f49c/attachment.html
More information about the Openchrome-users
mailing list