summaryrefslogtreecommitdiffstats
path: root/src/glx/x11
Commit message (Collapse)AuthorAgeFilesLines
* /dri/msgAdam Jackson2005-08-265-16/+16
|
* Fix the scripts for the cygwin & mingw changesAlan Hourihane2005-08-262-18/+8
|
* update for mingwAlan Hourihane2005-08-252-2/+2
|
* Fix Windows build problems.Alan Hourihane2005-08-242-1/+14
| | | | | GCC's visibility attribute is for ELF systems, so undef INTERNAL GCC's fastcall attribute interferes with __stdcall so undef FASTCALL
* Convert libGL and DRI drivers to require libdrm.Adam Jackson2005-08-191-6/+1
| | | | | | libdrm can be had from: http://people.freedesktop.org/~ajax/libdrm/
* Fix a realloc problem with indirect vertex arrays. The actual head pointerIan Romanick2005-08-192-3/+6
| | | | wasn't tracked and used for the realloc, so it tended to explode.
* Remove the logic that determines at compile time whether or not HAVE_ALIASIan Romanick2005-08-111-7/+0
| | | | | | | | should be defined. It was flawed on some platforms (e.g., Darwin & mingw). Instead, rely on the build system to define it on the compiler command line. This also reverts ajax's hand-edit to indirect_size.c. I'll fix that on the X.org side of things later today.
* Makefile cleanups suggested by George Fufutos (bugzilla #3899).Ian Romanick2005-08-111-17/+1
|
* fix X #includes so they're relative to X11/ directory (bug 4047)Brian Paul2005-08-116-11/+11
|
* Remove _glapi_check_multithread from the interface exported by the loader toIan Romanick2005-08-101-2/+3
| | | | | | | | | | | | | | | | | the driver. The loader now takes care of this for the driver. Remove _glapi_DispatchTSD and give _glapi_Dispatch its semantic (i.e., having a NULL value means that the application is multithreaded and _glapi_get_dispatch must be called). Gut all of the dispatch override code. This removes _glapi_RealDispatch, _glapi_tls_RealDispatch, _glapi_begin_dispatch_override, _glapi_end_dispatch_override, and _glapi_get_override_dispatch. Remove _glapi_get_proc_address, _glapi_get_proc_name, _glapi_get_version, and _glapi_check_table from the loader / driver interface. Reviewed by: Brian Paul
* Fixes bugzilla #1730.Ian Romanick2005-08-051-1/+2
| | | | | | Make sure that all the values used in the clean-up code are initialized at some point. It is still unclear to me as to why GCC does not complain. I suspect the problem may be due to the depth of if-statement nesting.
* In order to create the set of available extensions, we have to know ifIan Romanick2005-08-051-1/+1
| | | | | | | | | | | | direct-rendering is possible on a given screen. It is not possible to determine this by just looking at driDisplay.private in the display structure. However, it is possible to determine this by looking at driScreen.private in the screen structure. This field is only non-NULL if a DRI driver has been successfully loaded and bootstrapped. Once we get to that point, we know that direct-rendering is at least theoretically possible. This fixes bugzilla #2875.
* Convert all instances of XTHREADS to USE_XTHREADS. This fixes one ofIan Romanick2005-08-032-6/+6
| | | | | serveral things that are broken when building on a system with X.org 7.0rc0 installed.
* Fix build problems related to finding Xthreads.h.Ian Romanick2005-08-012-6/+1
|
* Remove unused structures and data fields. These had been left in becauseIan Romanick2005-07-291-49/+1
| | | | | | DRI drivers using the "old" interface relied on certain fields being at certain offsets. Removing the structures would break that. Now that the old interface is no longer supported, the dead data can finally die.
* Add a new config called linux-indirect. This build the GLX libGL just likeIan Romanick2005-07-291-2/+1
| | | | | | linux-dri, but it disables support for direct-rendering in it. This config mainly exists so that I can verify that changes to libGL haven't broken builds on non-DRI platforms.
* Major rip-up of internal function insertion interface. The oldmesa_6_3_1Ian Romanick2005-07-282-3/+3
| | | | | | | | | | | | | | | | | | | | | | _glapi_add_entrypoint has been replaced by a new routine called _glapi_add_dispatch. This new routine dynamically assignes dispatch offsets to functions added. This allows IHVs to add support for extension functions that do not have assigned dispatch offsets. It also means that a driver has no idea what offset will be assigned to a function. The vast majority of the changes in this commit account for that. An additional table, driDispatchRemapTable, is added. Functions not in the Linux OpenGL ABI (i.e., anything not in GL 1.2 + ARB_multitexture) has a fixed offset in this new table. The entry in this table specifies the offset in of the function in the real dispatch table. The internal interface was also bumped from version 20050725 to 20050727. This has been tested with various programs in progs/demos on: radeon (Radeon Mobility M6) r128 (Rage 128 Pro) mga (G400)
* Remove the last remnants of GLX_BUILT_IN_XMESA. This allows the removal ofIan Romanick2005-07-265-180/+120
| | | | the evil, ugly GLX_PREFIX macro as well.
* No, really, get rid of all the remaining references to DRI_USE_NEW_INTERFACE.Ian Romanick2005-07-261-0/+4
| | | | | A couple other remnants of the old interfaces hit the dust too. Thanks Jon. :)
* Quote $(CC) and $(CXX) so that 'CC=ccache gcc' and 'CXX=ccache g++' willIan Romanick2005-07-261-1/+1
| | | | work again.
* Fixes the glXGetProcAddress portion of the interface. Most of the functionsIan Romanick2005-07-264-30/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that are currently obtained via glXGetProcAddress and all of the XF86DRI functions are replaced with a funciton table. This table will be passed to __driCreateNewScreen. One of the functions in the table is getProcAddress. This allows some loaders to expose functionality not in all loaders. This will be immediatly used for glxEnableExtension (formerly known to drivers as __glXScrEnableExtension). libGL (and in the future libglx) expose this function so that drivers can enable GLX extensions. libEGL should exposed eglEnableExtension to enable EGL extensions. The same function cannot be used for both because the extensions have different names and (possibly) different semantics. Drivers can optionally use one, both, or neither. The key parts are in the __DRIinterfaceMethodsRec structure in dri_interface.h. A pointer to one of these structures is passed into __driCreateNewScreen. Because of this, the version of the API is bumped to 20050725. Since the previous version(s) were never in a release, their existance is erased. I was actually a little surprised by how much code this cuts from the drivers. A lot of glXGetProcAddress calls disappear, and a lot of version checks go with them. Nice. The one thing I'm not sure of is removing __glXInitialize. For some reason that function was in the glXGetProcAddress table, but *nothing* in the Mesa tree used it. Did something with DRI conf. use this function? It seems odd...
* Added -linker option to mklib, used to specify a particular program forBrian Paul2005-07-251-1/+2
| | | | | linking, if relevant. Updated Makefiles to use -linker option instead of setting CC, CXX env vars.
* Gut a few more dead bits. Replace uses of the CreateNewScreenFunc typedefIan Romanick2005-07-243-14/+6
| | | | | | | (from glxclient.h) with PFNCREATENEWSCREEN (from dri_interface.h). Remove the prototype for __driCreateScreen and fix the prototype for __driCreateNewScreen (append the API version) in dri_interface.h.
* All elements of pre-DRI_NEW_INTERFACE_ONLY are removed. This allowsIan Romanick2005-07-246-373/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1,402 lines of code to be removed from Mesa (drivers and libGL). The big winner is dri_util.c. Primary changes are: 1. Remove all "deprecated" entry-points from the various structures in dri_interface.h. 2. Rename the remaining fields to removed "version numbers." So, bindContext3 becomes bindContext. Functions with "New" in the name (e.g., CreateNewContext) were *not* changed, but that is an option. Having "New" in the name is less annoying to me than having "3" in the name. 3. Remove all compatibility code that handles cases where the driver or the loader is too old to support the latest interfaces. 4. Append the API version to the __driCreateNewScreen function name. This is currently done by hand. In the future (i.e., the next time we make an incompatible change to the interface) we'll want to come up with a better way to do this. This prevents old loaders from being able to load new (incompatible) drivers. 5. Bump the API version to 20050722. All drivers (by way of dri_util.c) require this version. 6. All drivers are *required* to expose GLX_SGIX_fbconfig and GLX_OML_swap_method (or the moral equivalents). Support for these functions in implicit in the use of the "new" interface. 7. Some cases still exist that need to be compiled differently in a loader or core Mesa versus in a driver. These are identified by the define IN_DRI_DRIVER.
* Add two aliases for some PointParameters entrypoints for libglx compatibility.Adam Jackson2005-07-231-0/+2
| | | | | | | | | Doing this here rather than on the GLX side since the X monolith hasn't had Mesa 6.3 imported yet. idr, I know this is touching a generated file, but I haven't figured out what needs changing in the generator scripts to make this change happen. If you could add that I'd appreciate it.
* Add support for assembly (static) dispatch functions on x86-64. ThisIan Romanick2005-07-021-0/+1
| | | | | | is basically patch #2939 from X.org bugzilla #3379. This does *not* fix the bug as it does not dynamically generate stubs at run-time. It just gets things one step closer.
* Fix non-x86 specific builds. The changes from glTexImage3DEXT toIan Romanick2005-06-242-16/+16
| | | | | | | | | | | | | | | glTexImage3D that caused me so many problems during the re-development of the API scripts reared its ugly head again. This has been fixed by tracking the parameter string for each entry-point individually. This has the annoying side-effect that the names of the parameters in all aliases of a function must be the same or gl_apitemp.py will generate bad code. :( The changes in src/mesa/glapi/{gl_API.xml,glapitable.h} and src/glx/x11/* are caused by fixing the parameter names in various function aliases that didn't match. Reported by: Eric Anholt, Jacob Jansen
* Fixed the XCB implementation when always_array is true, thanks to Ian ↵Jeremy Kolb2005-06-241-4/+4
| | | | Romanick for pointing it out. Please review.
* Mark GenQueriesARB at 'always_array="true"'. This eliminates the needIan Romanick2005-06-221-2/+2
| | | | to special-case the handling of that function in glX_proto_send.py.
* Fixed a bug where GenQueriesARB was generating the wrong code for XCB and ↵Jeremy Kolb2005-06-222-13/+10
| | | | wouldn't compile. Not sure how that slipped through before but it should work now.
* Mammoth update to the Python code generator scripts that live inIan Romanick2005-06-214-293/+581
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/mesa/glapi. Basically, the scripts that did simple things (like gl_offsets.py) were simple, and the scripts that did more complicated things (like glX_proto_send.py) were getting progressively more and more out of control. So, I re-write the foundation classes on which everything is based. One problem with the existing code is that the division between the GL API database representation and the way the output code is generated was either blury or nonexistant. The new code somewhat follows the Model-View-Controller pattern, minus the Controller. There is a distinct set of classes that model the API data, and there is a distinct set of classes that generate code from that data. One big change is in the class that represents GL functions (was glFunction, is now gl_function). There used to be an instance of this calls for each function and for each alias to that function. For example, there was an instance for PointParameterivSGIS, PointParameterivEXT, PointParameterivARB, and PointParameteriv. In the new code, there is one instance. Each instance has a list of entrypoint names for the function. In the next revision, this will allow a couple useful things. The script will be able to verify that the parameters, return type, and GLX protocol for a function and all it's aliases match. It will also allow aliases to be represented in the XML more compactly. Instead of repeating all the information, an alias can be listed as: <function name="PointParameterivARB" alias="PointParameterivEXT"/> Because the data representation was changed, the order that the alias functions are processed by the scripts also changed. This accounts for at least 2,700 of the ~3,600 lines of diffs in the generated code. Most of the remaining ~900 lines of diffs are the result of bugs *fixed* by the new scripts. The old scripts also generated code with some bugs in it. These bugs were discovered while the new code was being written. These changes were discussed on the mesa3d-dev mailing list back at the end of May: http://marc.theaimsgroup.com/?t=111714569000004&r=1&w=2 Xorg bug: 3197, 3208
* ran "make" after update to glX_proto_send.py.Jeremy Kolb2005-06-201-68/+68
|
* use shared-coreDave Airlie2005-05-281-1/+1
|
* Make a couple minor corrections to gl_API.xml. Fixes the name of anIan Romanick2005-05-261-1/+1
| | | | | | | | extension that was missing the GL_ part and uses the core GL type names for vertex buffer object functions instead of the ARB names. Also commits the resulting changes to the generated code. Some how, the #if sequence disappeared in the 1.52 version of glapi_x86.S.
* Commit the changes propagated from Jeremy Kolb's changes to the PythonIan Romanick2005-05-251-0/+486
| | | | scripts in src/mesa/glapi.
* Patches for XCB (Jeremy Kolb)Brian Paul2005-05-071-2/+21
|
* Add support for pthreads and TLS to libGL for __glXLock / __glXUnlock andIan Romanick2005-04-182-9/+104
| | | | | | for tracking the current GLX context. This fixes bug #3024.
* Send GL_PACK_INVERT_MESA state to the server. This fixes bug #2538.Ian Romanick2005-04-181-10/+47
|
* Add missing includes of indirect.h.Ian Romanick2005-04-146-0/+6
|
* Add TLS support to libGL and, by virtue of using glthread.h and GL_CALL, allIan Romanick2005-04-131-0/+9
| | | | | | | DRI drivers. A TLS enabled libGL can load a TLS or a non-TLS DRI driver, but a TLS DRI driver requires a TLS enabled libGL. This fixes bug #1822.
* Use the same dispatch.c source file for "normal" Mesa builds and DRIIan Romanick2005-04-072-74/+3
| | | | libGL builds.
* Follow the GLX_SGIX_fbconfig spec and return the complete list ofIan Romanick2005-04-071-1/+1
| | | | available fbconfigs if attrList is NULL. This fixes bug #2917.
* Minor vertex array support tweaks. These are in preparation for theIan Romanick2005-03-172-21/+22
| | | | | | (eventual) addition of support for ARB_vertex_buffer_object. Elminitate the need for array_state_vector::large_header. Make some very minor tweaks to the handling of the indices pointer in emit_DrawElements_old.
* Minor vertex array support tweaks. Most of these are in preparation for theIan Romanick2005-03-173-303/+349
| | | | | | | | | | | | | | | | (eventual) addition of support for ARB_vertex_buffer_object. Move all the private vertex array data structures out of indirect_vertex_array.c and into indirect_va_private.h. Rename array_state_vector::enabled_array_count to array_state_vector::enabled_client_array_count. Make sure that both the GL extension string and the server GL version are available when __glXInitVertexState is called. Make sure that array_state::normalized is set correctly in the array's gl*Pointer function.
* Fix the handling of zero-sized output parameters (i.e., those with typeIan Romanick2005-03-173-1/+16
| | | | | | | | 'GLvoid *'). This fixes the GLX protocol for glGetProgramStringARB. This fixes bugzilla #2747. Remove the 'ignore="true"' from glVertexAttrib4bvARB. This fixes bugzilla #2746.
* Hard-code the client-side maximum GL version. It turns out that there areIan Romanick2005-03-171-24/+2
| | | | | | | some flaws in the calculation code when the highest version listed in known_gl_extensions is supported. This code would also have some problems with some of the new features (that don't have an associated extension) on GL 2.0.
* Add support for ARB_draw_buffers and ARB_occlusion_query. The GLX protocolIan Romanick2005-03-115-1/+183
| | | | | | | | | | | for these extensions (as well as ARB_vertex_program and ARB_matrix_palette) was just approved by the ARB on 8-Mar-2005. Now the only extension missing for 1.5 support is ARB_vertex_buffer_object. The opcodes for ARB_matrix_palette were also added to gl_API.xml. Since this extension isn't supported by Mesa, no code is generated for it. Some tabs were also converted to spaces in the comment for GetCompressedTexImageARB.
* Actually *use* the count_scale value associated with a parameter.Ian Romanick2005-03-061-24/+24
|
* Import fixes from X.org tree (Søren Sandmann <[email protected]>).Ian Romanick2005-03-041-10/+16
|
* Fix some errors in the parameter descriptions in serveral vertex / fragmentIan Romanick2005-03-031-67/+89
| | | | program related functions.