http://bugs.freedesktop.org/show_bug.cgi?id=18445
--- Comment #7 from Eero Pajarre <[EMAIL PROTECTED]> 2008-11-11 11:20:35 PST
---
(In reply to comment #5)
> Unfortunately, changing reply_is_always_array from GL_TRUE to GL_FALSE doesn't
> give the right results either. I tried that yesterday.
>
> If you write a test program that calls glAreTexturesResident() with n=3, then
> set a breakpoint in __glXReadReply() you'll see that bytes=1 and extra=3.
>
> That's because reply looks like this:
>
> {type = 1 '\001', unused = 0 '\0', sequenceNumber = 43, length = 1, retval =
> 0,
> size = 1, pad3 = 16, pad4 = 0, pad5 = 0, pad6 = 0} and size=1. So bytes =
> 1*1.
>
I am getting even more lost..
(gdb) up
#1 0xb7eac675 in __indirect_glAreTexturesResident (n=3, textures=0xbfff5dfc,
residences=0xbfff5e00 "") at indirect.c:5112
(gdb) down
#0 __glXReadReply (dpy=0xddb3bd8, size=1, dest=0xbfff5e00,
reply_is_always_array=0 '\0') at indirect.c:81
(gdb) p bytes
$7 = 3
(gdb) p extra
$8 = 1
(gdb) p reply
$9 = {type = 1 '\001', unused = 0 '\0', sequenceNumber = 47906, length = 1,
retval = 0, size = 3, pad3 = 143228600, pad4 = 0, pad5 = 0, pad6 = 0}
This is on Mesa-7.2 released code, with the reply_is_always_array change
Mesa built for linux-dri-debug
Eero
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev