Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=3378          
     
           Summary: _glapi_add_entrypoint does not generate offset for
                    drivers
           Product: DRI
           Version: DRI CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libGL
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
 BugsThisDependsOn: 3377


_glapi_add_entrypoint accepts an offset of ~0 for two reaons.  The primary
reason is so that glXGetProcAddress can always return a non-NULL value.  If an
unknown function is requested, a dummy stub will be generated and returned to
the application.  The intention being that a loaded driver will later fill-in
the offset to complete the function.

The other reason is so that drivers can extend the GL API with functions that do
not have statically assigned offsets.  For example, an IHV could add a new,
perhaps experimental, extension.  It would register its functions by calling
'_glapi_add_entrypoint("glNewFunctionIHV", ~0)' and get the actual offset by
calling '_glapi_get_proc_offset("glNewFunctionIHV")'.  This second usage
requires that libGL assign an offset.  Currently, there is NO code to do this. 
If a loaded driver calls _glapi_add_entrypoint with an offset of ~0, the offset
will remain ~0!          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to