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

Vladimir Dergachev wrote:
> 
> 
>>  One change is that the remap table is now initialized to be full of -1
>>  values.  In addtion, all of the *_by_offset marcos misbehave in an
>> obvious
>>  way if the specified offset is -1.  SET_by_offset will do nothing,
>>  GET_by_offset will return NULL, and CALL_by_offset, since it uses
>>  GET_by_offset, will segfault.
> 
> 
> This works as I get the following backtrace with recent Mesa checkout:
> 
> #0  0x00000000 in ?? ()
> #1  0xb7ae1967 in execute_list (ctx=0x806b290, list=145) at
> main/dlist.c:6420
> #2  0xb7ae2122 in _mesa_CallList (list=1) at main/dlist.c:6749
> #3  0xb7b2ad87 in neutral_CallList (i=1) at vtxfmt_tmp.h:304
> #4  0x0804b387 in draw ()
> #5  0x0804bc1f in event_loop ()
> #6  0x0804c09e in main ()
> 
> So apparently something gets called that does not exist.
> 
> Would anyone have hints or suggestions on how I should start chasing this ?

I'm guessing that card_extensions in r300_context.c is wrong.  There are
a few extensions listed there that have NULL for their functions field.
 For example, the entry for GL_ARB_vertex_program should clearly be
GL_ARB_vertex_program_functions instead of NULL.  If there's an
_functions structure in src/mesa/drivers/dri/common/extension_helper.h,
it needs to be referenced in the dri_extension structure array.

That's how driInitExtensions and driInitSingleExtension know what
functions need to be added to the dispatch table.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFC9CdRX1gOwKyEAw8RAk3SAKCgY4I1K9r+UFmcTIQI+KpWUmIrNQCfZyHf
pPCdVVU+ZndfhYlmRGUNjWY=
=C3xR
-----END PGP SIGNATURE-----


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to