[Mesa-dev] [PATCH 2/3] state_tracker: allow to utilize GLSL workaround for broken apps in Gallium

Alex Deucher alexdeucher at gmail.com
Wed Aug 22 09:08:32 PDT 2012


On Wed, Aug 22, 2012 at 11:54 AM, Vadim Girlin <vadimgirlin at gmail.com> wrote:
> On Wed, 2012-08-22 at 11:31 -0400, Alex Deucher wrote:
>> On Wed, Aug 22, 2012 at 11:24 AM, Vadim Girlin <vadimgirlin at gmail.com> wrote:
>> > On Wed, 2012-08-22 at 11:23 +0300, Maxim Levitsky wrote:
>> >> Currently Gallium has no way to activate the
>> >> 'force_glsl_extensions_warn' workaround that allows
>> >> buggy apps that use GLSL extensions without asking for them to work.
>> >>
>> >> Since gallium mesa state tracker is essentially split into two,
>> >> (dri (src/gallium/state_trackers/dri) and mesa (src/mesa/state_tracker))
>> >> and only former has access to driconf options while later knows nothing
>> >> about dri, I added this support by reading an environment variable.
>> >>
>> >> export force_glsl_extensions_warn=true
>> >>
>> >
>> > I just remembered that I sent some patches for passing the driconf
>> > options to the state tracker but then forgot about them completely.
>> >
>> > Feel free to reuse anything from that series if it might help:
>> >
>> > http://lists.freedesktop.org/archives/mesa-dev/2012-April/020729.html
>>
>> Series looks good to me.  Looks like Michel added his reviewed-by at
>> the time as well.
>
> Yes, it was reviewed, but then I found that it breaks swrast build due
> to missing driver descriptor, so I asked if it's OK to simply add the
> descriptor to swrast and it seems I'm still waiting for the answer... :)

Maxim's patch addressed swrast and Brian was ok with it.

>
>> If it still applies, I'd say go ahead and commit it.
>
> I'll check if it still works and if it's enough to run Unigine apps
> correctly with current mesa. IIRC it doesn't contain GLSL version hacks
> as in Maxim's patch 3, so possibly it should be included too, and maybe
> something else.

Sounds good.

Alex

>
> Vadim
>


More information about the mesa-dev mailing list