-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

George Sapountzis wrote:

> I made a small test to test code genration for dynamic extensions in
> http://cgit.freedesktop.org/~gsap7/mesa/log/?h=getproc-test
> 
> When using libGL + swrast_dri.so from getproc-test, the dynamic
> extensions code is not exercised and the test passes.
> 
> When using libGL from mesa 7.7 and swrast_dri.so from getproc-test,
> the extension string does contain GL_MESA_test_extension but the test
> segfaults.

There are a few places where this could break.

 - The generated dispatch stub function is wrong.
 - The dispatch offset used by the driver is wrong.
 - The dispatch remapping used by the driver is wrong.

The easiest way to check this is probably to set a breakpoint in
_mesa_init_exec_table at the line after the SET_TestExtensionMESA.  Look
at driDispatchRemapTable[TestExtensionMESA_remap_index].  Does it seem
sensible?  Look at the function stored in the dispatch table at that
offset.  Does it look sensible?

> It seems that dynamic extensions code is broken (since at least 7.7),
> unless there is something wrong with the test or my arch:
> 
> model name    : AMD Athlon(tm) XP 2200+
> flags         : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat
> pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuVYBYACgkQX1gOwKyEAw9eMwCfWcgdWnjN37FYDn6Q6nv1GXLG
Zj8AoIlciQ5+yp9RxFnKmYCdCcbYUklr
=OTOr
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to