summaryrefslogtreecommitdiffstats
path: root/src/mesa/x86
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate GL_EXT_vertex_weighting.Ian Romanick2006-08-291-42/+39
| | | | | | Nvidia no longer supports this extension, and they no longer export its entry points from their libGL. There's no reason for us to keep dragging it around either.
* More static dispatch function removal.Ian Romanick2006-08-291-46/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make functions for the following extensions available only via glXGetProcAddress. In cases where there are other aliases to the same functions (e.g., between GL_EXT_histogram and GL_ARB_imaging), the alias functions may still be statically exported. - GL_ATI_blend_equation_separate - GL_EXT_blend_equation_separate - GL_EXT_convolution - GL_EXT_color_sub_table - GL_EXT_cull_vertex - GL_EXT_depth_bounds_test - GL_EXT_framebuffer_blit - GL_EXT_histogram - GL_EXT_multisample - GL_EXT_stencil_two_side - GL_EXT_timer_query - GL_IBM_multimode_draw_arrays - GL_INGR_blend_func_separate - GL_NV_fence - GL_SGI_color_table - GL_SGIS_multisample - GL_SGIS_pixel_texture - GL_SGIS_point_parameters - GL_SGIX_pixel_texture
* Add a couple of the missing GL 2.0 functions. Enable GLX protocol forIan Romanick2006-08-251-0/+2
| | | | | glBlendEquationSeparateEXT. Add missing enum "get" information for GL_EXT_texture_filter_anisotropic.
* GL_EXT_paletted_texture functions should alias GL_SGI_color_table functions.Ian Romanick2006-08-241-14/+14
| | | | | | | | | | The functions for GL_EXT_paletted_texture that do not share GLX protocol with GL_ARB_imaging are supposed to alias the similar functions from GL_SGI_color_table. They didn't. This patch corrects this problem and enables GLX protocol for both extensions. Since this removes 3 entries from the dispatch table, this change creates a lot of changes in the generated files.
* Add a new offset mode to the GL API XML. This mode, called "assign,"Ian Romanick2006-08-241-346/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tells the scripts to assign an available offset to the function. The important changes are in src/mesa/glapi/gl_XML.py and src/mesa/glapi/*.xml. Since the DRI drivers only depend on functions required by the ABI (e.g., GL 1.2 + ARB_multitexture) having fixed offsets, all functions not in the ABI use "assign" mode. This has caused the offset of basically every function outside the ABI to change. I have verified that a libGL with this patch works with a DRI driver without the patch. Futher, several function were removed from the dispatch tables altogether. These are the functions for the following extensions: GL_SGIS_texture_filter4 GL_SGIS_texture4D GL_SGIS_detail_texture GL_SGIS_sharpen_texture GL_SGIX_sprite GL_SGIX_instruments GL_SGIX_framezoom GL_SGIX_tag_sample_buffer GL_SGIX_reference_plane GL_SGIX_flush_raster GL_SGIX_list_priority GL_SGIX_fragment_lighting GL_PGI_misc_hints GL_EXT_index_material GL_EXT_index_func GL_3DFX_tbuffer This removes 50 functions from the dispatch table.
* Add new attribute called static_dispatch to the <function> element. ThisIan Romanick2006-08-221-6/+12
| | | | | | | | | | | | | | | | | | | boolean attribute, which defaults to true, determines whether or not a static dispatch function is available in libGL for applications to link against. Ideally, any new functions that are not part of the ABI should not have directly accessable dispatch functions. This forces applications to use glXGetProcAddress to access these functions. By doing this we can gracefully remove functions from libGL without breaking the linkage of applications. Note that the static dispatch functions are still generated. However, they are given names like gl_dispatch_stub_820 and are marked with the "hidden" linker attribute. All extension functions added since the previous Mesa release (6.5) have been marked as 'static_dispatch="false"'.
* Add support for GL_EXT_gpu_program_parameters. Any driver that enablesIan Romanick2006-08-151-0/+2
| | | | | either GL_ARB_vertex_program or GL_ARB_fragment_program should enable this extension as well.
* More GLSL code - more support for vec4 operations on x86 back-end.Michal Krol2006-08-092-0/+16
|
* remove obsolete PointSizePtrBrian Paul2006-06-161-3/+2
|
* Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick2006-06-121-2/+6
| | | | | | | and demos are also added. Adding basic support to drivers should be as easy as just enabling the extension, though thorough test would also be required.
* Fix extended swizzling in vertex programs by introducing special swizzle ↵Roland Scheidegger2006-06-012-0/+18
| | | | instruction, extend the 2 bit rsw field to 3 bit like used in other places. While here, also fix up rsw (negation), dph and try to fix up rsq with negative values (doesn't work, bug seems elsewhere) in the sse codegen code.
* Add functions.Michal Krol2006-05-162-0/+7
|
* Remove carriage returns.Michal Krol2006-04-252-84/+84
|
* Add .note.GNU-stack section to assembler files to avoid the default behaviorKristian Høgsberg2006-04-1718-14/+86
| | | | of requesting executable stacks.
* use _mesa_debug() instead of message() - fixes poor formatting of outputBrian Paul2006-04-101-55/+34
|
* Disable `hidden' attribute for DJGPPDaniel Borca2006-03-271-1/+1
|
* Added glBlitFramebufferEXT function.Brian Paul2006-03-011-0/+1
|
* More GLSL code:Michal Krol2006-02-272-17/+98
| | | | | | | | | | | | | - add x86 code generator; - add full support for uniforms in ARB_shader_objects; - add assembly instruction: global_addr; - reorganize #includes; - built-in uniforms accessed by index, rather than by name; - add some entries to x86sse rtasm; - add configurations to VC6 projects: 'Release x86' and 'Debug x86'; - #define SLANG_X86 active only on VC6 x86 builds; - introduce code export table for a shader; - remove GNU license from the noise library;
* Updates for GL_EXT_timer_query:Brian Paul2005-12-071-0/+2
| | | | | New GLint64EXT and GLuint64EXT types (use C99's long long types). New glGetQueryObject[u]i64vEXT() functions.
* Remove VB->LastClippedKeith Whitwell2005-12-011-1/+0
|
* remove unneeded HIDDEN definition (bug 4956)Brian Paul2005-11-041-14/+0
|
* fix MinGW problems (bug 4956)Brian Paul2005-11-041-1/+1
|
* Add _mesa_exec_malloc() and _mesa_exec_free() for allocatingKeith Whitwell2005-10-181-2/+2
| | | | | executable memory. Based on Thomas Hellstrom's patch. TODO: glapi.c also needs this, but cannot access this code.
* MATH_DEBUG changes from bug #4468.Brian Paul2005-10-073-8/+8
|
* additional wrapper updates, bug 4468Brian Paul2005-09-191-1/+1
|
* use mesa import wrappers, bug 4468Brian Paul2005-09-161-2/+3
|
* Remove _glapi_check_multithread from the interface exported by the loader toIan Romanick2005-08-101-2/+2
| | | | | | | | | | | | | | | | | 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
* Convert all instances of XTHREADS to USE_XTHREADS. This fixes one ofIan Romanick2005-08-031-1/+1
| | | | | serveral things that are broken when building on a system with X.org 7.0rc0 installed.
* All elements of pre-DRI_NEW_INTERFACE_ONLY are removed. This allowsIan Romanick2005-07-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* strip out vestigial #ifdef HAVE_CONFIG_H stanzas, they're confusing theAdam Jackson2005-07-161-5/+1
| | | | modular X build
* Add lots of x87 fpu instructions.Keith Whitwell2005-07-102-95/+515
|
* fix dependenciesBrian Paul2005-07-011-5/+5
|
* Fix crashes with pixel readback when using the optimized assembly functions.Roland Scheidegger2005-06-301-2/+9
| | | | | | | | Pixel count can be negative (this could be fixed elsewhere), so adapt the functions to work with such inputs correctly (same behaviour as non-optimized functions). Bugzilla #2317 Submitted by idr
* Mammoth update to the Python code generator scripts that live inIan Romanick2005-06-211-95/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Turn off DISASSEMKeith Whitwell2005-06-081-1/+1
|
* Add some more opcodesKeith Whitwell2005-06-082-160/+149
|
* New files - split off runtime assembly functions fromKeith Whitwell2005-06-072-0/+810
| | | | t_vertex_sse.c.
* Make a couple minor corrections to gl_API.xml. Fixes the name of anIan Romanick2005-05-261-0/+10
| | | | | | | | 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.
* x86-64 transform optimizations (Mikko T.)Brian Paul2005-05-073-15/+11
|
* Add TLS support to libGL and, by virtue of using glthread.h and GL_CALL, allIan Romanick2005-04-131-4/+50
| | | | | | | 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.
* Add new entrypoints for GL_EXT_framebuffer_object.Brian Paul2005-02-081-0/+17
|
* There is no point trying to detect SSE at all, when MESA_NO_SSE is defined. ↵Daniel Borca2005-01-191-6/+8
| | | | I am committing this because the current WIN32 SSE detection code crashes UnrealTournament2003.
* OpenGL 2.0 StencilFunc/Op/MaskSeparate functionsBrian Paul2005-01-121-0/+3
|
* Windows/ReactOS patch (Gregor Anich)Brian Paul2005-01-101-0/+69
|
* Add a clean target to remove generated files.Keith Whitwell2005-01-071-0/+3
|
* Use GNU AS label aliasing, if available. This must be enabled by addingIan Romanick2005-01-071-179/+188
| | | | | | '-DHAVE_ALIAS' to DEFINES in the config file used for building. On the linux-dri-x86 build, this cuts 4KB from libGL.so. HAVE_ALIAS is not currently enabled in any of the configs.
* protected against elfish directivesDaniel Borca2005-01-061-1/+1
|
* use HIDDEN macro to export fewer symbols (bug 2210)Brian Paul2005-01-0418-15/+120
|
* Implement software ATI_fragment_shaderDave Airlie2004-12-191-0/+14
| | | | no error detection, slow, may not be 100% correct but a good start
* protected elfish code against non-elf compilersDaniel Borca2004-12-151-0/+2
|