[Mesa-dev] "glx: Only call DRI2 invalidate when necessary" breaks window resizing in nouveau

Francisco Jerez currojerez at riseup.net
Mon May 17 08:26:27 PDT 2010


Kristian Høgsberg <krh at bitplanet.net> writes:

> 2010/5/16 Xavier Chantry <chantry.xavier at gmail.com>:
>> Patrice reported this a few days ago in nouveau channel and wiki,
>> using xorg 1.7 and probably nvfx driver.
>> I can reproduce with xorg 1.7 and nv50 with current git master.
>>
>> Window resizing (for example with glxgears or any mesa demos/*) is
>> broken, as seen in the following picture :
>> http://omploader.org/vNGM2bg
>>
>> If other gallium drivers work (at least llvmpipe seems to work), does
>> it indicate something wrong in nouveau ?
>
> Yes, nouveau needs to fall back calling dri2Invalidate in the
> glViewport() hook like other DRI2 drivers.  If the nouveau developers
> don't want to do that (I think Francisco hinted that he didn't want to
> imlpement the old hack), nouveau needs to fail to load when the
> __DRI_USE_INVALIDATE extension is not present in the extension list
> passed from the loader (effectively requiring master xorg and mesa).
>

There was no need for a glViewport hack until 2d00d16da -- I honestly
don't see what's wrong with the compat code you removed, if it didn't
play well with intel, it's because intel abuses the invalidate hook to
detect the X server swapbuffers capabilities.

> Kristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100517/79159764/attachment-0001.pgp>


More information about the mesa-dev mailing list