[Mesa-dev] [PATCHES] enable GLX_EXT_texture_from_pixmap in software

nobled nobled at dreamwidth.org
Sun Sep 5 12:49:15 PDT 2010


It was mentioned in commit 8d789be03430b80e0ba2fef19d56dd0b8e699ea2
that gnome-shell could run on the classic swrast driver with the
__DRItexBuffer extension added--but when I compile Mesa git and use
the swrast driver, glxinfo doesn't show GLX_EXT_texture_from_pixmap as
enabled, and Ubuntu 10.04 won't turn on compositing (ie switch from
metacity to compiz) with it. Does gnome-shell not require the GLX TFP
extension? How did it start working if that change didn't add GLX TFP?

Because it seems like GLX's software rendering path never enables the
TFP extension, or even tries to look for a __DRItexBuffer. This patch
series tries to fix that:

1. glx: Add teximage vfuncs to drisw
2. glx: Enable GLX_EXT_texture_from_pixmap in software
3. st/dri: Enable texBuffer extension on softpipe/llvmpipe*
4. (unrelated bugfix) glx: Check flush DRI extension version at runtime

...but even with all those, glxinfo still doesn't show
texture_from_pixmap with any of the software drivers loaded. (It shows
under "client glx extensions" and "server glx extensions", but it
*always* shows up there; it doesn't show in the third list of plain
old "GLX extensions", which AIUI is where it actually needs to show
up.) Maybe the bug is in glxinfo?

*The gallium patch builds on c14b4371ed58859d264b7b2581cfedc9cfd8401f
-- re: the comment in that commit; the ctx->st->teximage() call *does*
seem to be generic; software and hardware both use the same callback:
st_context_teximage() in st_manager.c.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-glx-Add-teximage-vfuncs-to-drisw.patch
Type: text/x-patch
Size: 2689 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100905/72b0debf/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-glx-Enable-GLX_EXT_texture_from_pixmap-in-software.patch
Type: text/x-patch
Size: 1513 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100905/72b0debf/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004b-st-dri-Enable-texBuffer-extension-on-softpipe-llvmp.patch
Type: text/x-patch
Size: 884 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100905/72b0debf/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-glx-Check-flush-DRI-extension-version-at-runtime.patch
Type: text/x-patch
Size: 1150 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100905/72b0debf/attachment-0003.bin>


More information about the mesa-dev mailing list