On Mon, 2009-06-15 at 15:34 +0800, Shuang He wrote: > According to GLX_EXT_texture_from_pixmap spec, "The storage for the GLX pixmap > will be freed when it is not current to any client and all color buffers that > are bound to a texture object have been released."
With this patch, I can easily trigger an assertion failure with compiz (e.g. by using the scale plugin), see below. (With a driver built without --enable-debug, this should be a segmentation fault instead due to de-referencing a NULL pointer). Also, I'm not sure why this is necessary - the miptrees should get released anyway as the texture objects / images are destroyed / replaced? compiz.real: intel_tex_validate.c:99: copy_image_data_to_tree: Assertion `intelImage->base.Data != ((void *)0)' failed. Program received signal SIGABRT, Aborted. [Switching to Thread 0x7f7412772750 (LWP 9628)] 0x00007f7410882065 in raise () from /lib/libc.so.6 (gdb) bt #0 0x00007f7410882065 in raise () from /lib/libc.so.6 #1 0x00007f7410885153 in abort () from /lib/libc.so.6 #2 0x00007f741087b159 in __assert_fail () from /lib/libc.so.6 #3 0x00007f740ddf1e4a in intel_finalize_mipmap_tree (intel=0x19d47e0, unit=<value optimized out>) at intel_tex_validate.c:99 #4 0x00007f740de08024 in brw_validate_textures (brw=<value optimized out>) at brw_tex.c:88 #5 0x00007f740ddfbac8 in brw_draw_prims (ctx=0x19d47e0, arrays=0x1a1a030, prim=0x1a186ac, nr_prims=1, ib=0x0, min_index=0, max_index=3) at brw_draw.c:329 #6 0x00007f740dec3dec in vbo_exec_vtx_flush (exec=0x1a18470, unmap=1 '\001') at vbo/vbo_exec_draw.c:365 #7 0x00007f740dec04ed in vbo_exec_FlushVertices_internal (ctx=<value optimized out>, unmap=156 '\234') at vbo/vbo_exec_api.c:778 #8 0x00007f740dec05f2 in vbo_exec_FlushVertices (ctx=0x259c, flags=1) at vbo/vbo_exec_api.c:800 #9 0x00007f740dea36fe in _mesa_BindTexture (target=3553, texName=<value optimized out>) at main/texobj.c:1014 #10 0x000000000040dec4 in disableTexture () #11 0x00007f7404cf7716 in ?? () from /usr/lib/compiz/libtext.so #12 0x00007f7400238bf9 in ?? () from /usr/lib/compiz/libthumbnail.so #13 0x00007f74002393db in ?? () from /usr/lib/compiz/libthumbnail.so #14 0x00007f73ffe2905f in ?? () from /usr/lib/compiz/libwobbly.so #15 0x00007f73ffc1691e in ?? () from /usr/lib/compiz/libanimation.so #16 0x00007f73ff179f4b in ?? () from /usr/lib/compiz/libcube.so #17 0x00007f73fef7399a in ?? () from /usr/lib/compiz/libshowdesktop.so #18 0x00007f73feb63994 in ?? () from /usr/lib/compiz/librotate.so #19 0x00007f73fe95a66d in ?? () from /usr/lib/compiz/libscale.so #20 0x00007f73fe54392e in ?? () from /usr/lib/compiz/libcubeaddon.so #21 0x00007f73fd875891 in ?? () from /usr/lib/compiz/libexpo.so #22 0x00007f73fe339288 in ?? () from /usr/lib/compiz/libezoom.so #23 0x00007f73fd6679b5 in ?? () from /usr/lib/compiz/libstaticswitcher.so #24 0x000000000041036d in paintScreen () #25 0x00007f74053039dc in ?? () from /usr/lib/compiz/libworkarounds.so #26 0x00007f73ff179e53 in ?? () from /usr/lib/compiz/libcube.so #27 0x00007f73fed6ced5 in ?? () from /usr/lib/compiz/libmag.so #28 0x00007f73fd879199 in ?? () from /usr/lib/compiz/libexpo.so #29 0x0000000000412156 in eventLoop () #30 0x000000000040d490 in main () -- Earthling Michel Dänzer | http://www.vmware.com Libre software enthusiast | Debian, X and DRI developer ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
