summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* check for FEATURE_EXT_framebuffer_object to enable EXT_framebuffer_objectBrian Paul2005-07-211-1/+3
|
* remove ^M chars, disable shading language extensionsBrian Paul2005-07-211-26/+26
|
* replace fprintf() calls with _mesa_problem()Brian Paul2005-07-191-4/+5
|
* remove fprintf()Brian Paul2005-07-191-2/+0
|
* Wrap every place that accesses a dispatch table with a macro. A new script-Ian Romanick2005-07-189-2249/+2018
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | generated file, called src/mesa/glapi/dispatch.h, is added. This file contains three macros for each API function. It contains a GET, a SET, and a CALL. Each of the macros take a pointer to the context and a pointer to the dispatch table. In several threads on mesa3d-dev we discussed replacing _glapi_add_entrypoint with a new function called _glapi_add_dispatch. For this discussion, the important difference between the two is that the caller of _glapi_add_dispatch does *not* know what the dispatch offset will be at compile time. Because of this callers need to track the dispatch offset returned by _glapi_add_dispatch. http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2 The downside is that driver code then has to access the dispatch table two different ways. It accesses it using structure tags (e.g., exec->Begin) for functions with fixed offsets and via a remap table (e.g., exec[ remap->NewExtensionFunction ]) for functions without fixed offsets. Yuck! Using the macros allows both types of functions to be accessed identically. If a driver needs to set a pointer for Begin, it does 'SET_Begin(ctx, exec, my_begin_function)'. If it needs to set a pointer for NewExtensionFunction, it does 'SET_NewExtensionFunction(ctx, exec, my_NewExtensionFunction_function)'. Furthermore, if at some point in the future a static offset is assigned for NewExtensionFunction, only the macros need to change (instead of every single place that accesses a table for that function). This code differs slightly from the originally posted patches in that the CALL, GET, and SET marcos no longer take a context pointer as a parameter. Brian Paul had suggested that the remap table could be stored as a global since it would be set at CreateScreen time and would be constant for all contexts. This change reflects that feedback. http://marc.theaimsgroup.com/?t=112087194700001&r=1&w=2
* strip out vestigial #ifdef HAVE_CONFIG_H stanzas, they're confusing theAdam Jackson2005-07-162-10/+0
| | | | modular X build
* need to flush vertices for GL_OCCLUSION_TEST_RESULT_HP queryBrian Paul2005-07-152-1/+5
|
* Add a LDEXPF wrapper macro.Keith Whitwell2005-07-131-0/+3
|
* Cache texenv programs to avoid repeated compilation (Ben Skeggs)Keith Whitwell2005-07-114-224/+448
|
* The old MESA_PBUFFER_ALLOC() function allocated memory on 512-byte boundaries.Brian Paul2005-07-053-12/+44
| | | | | Restore that behavior with new _mesa_alloc_texmemory() function. Should fix via_sse_memcpy() problem in found with flightgear.
* Add support for assembly (static) dispatch functions on x86-64. ThisIan Romanick2005-07-021-1/+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.
* Don't #define __FUNCTION__ on a Microsoft C compiler new enough to have it.Karl Schultz2005-07-011-1/+2
|
* Remove NEW_RENDERBUFFER stuff.Brian Paul2005-07-013-9/+4
| | | | | Now, OLD_RENDERBUFFER marks code that needs to eventually be removed when all the drivers are updated to no longer need the SetBuffer() function.
* remove OLD_RENDERBUFFER stuffBrian Paul2005-07-011-6/+2
|
* Replace add_newer_entrypoints (src/mesa/main/context.c) withIan Romanick2005-06-301-221/+0
| | | | | | | | | | | | | | | device-specific code. A new Python script (src/mesa/glapi/extension_helper.py) generates a list of all entry-points for all known extensions. Each driver the selects only the extensions that it needs and enables the via either driInitExtensions or driInitSingleExtension. This code has been compile-tested on a drivers, but has only been run-tested on mga and i915 (on i830 hardware). These changes were discussed at length on the mesa3d-dev mailing list. http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2
* remove \n from warning message stringBrian Paul2005-06-301-2/+2
|
* Add a set of predicate functions for testing matrices instead of directlyBrian Paul2005-06-306-55/+39
| | | | | | testing the flags field. Move definition of all the MAT_FLAGs into the m_matrix.c file since they're now private.
* remove unused MEMSET16 macroBrian Paul2005-06-271-2/+0
|
* Get rid of the MESA_PBUFFER_ALLOC/FREE() macros.Brian Paul2005-06-273-61/+20
| | | | | If that stuff is still needed, lots of other updates are needed anyway. Also, some misc MALLOC/FREE -> _mesa_malloc/free() changes.
* fix for-loop in _mesa_GetDouble to avoid out of bounds memory readBrian Paul2005-06-262-2/+2
|
* check for null oldBuffer in _mesa_realloc(), cleaned up some commentsBrian Paul2005-06-261-11/+12
|
* Mammoth update to the Python code generator scripts that live inIan Romanick2005-06-211-1571/+1571
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1568/+1568
|
* Define __FUNCTION__ as a preprocessor symbol in glheader.h if we're notBrian Paul2005-06-191-0/+11
| | | | using GCC or VMS.
* mingw changes (Nolan Leake)Brian Paul2005-06-131-0/+3
|
* Store compiled vertex program representations in a pointer in theKeith Whitwell2005-06-092-1/+2
| | | | | | | | | | | | | vertex_program struct. Allow switching between regular and vertex_program implementations of fixed function TNL with the MESA_TNL_PROG environment var (previously this required recompilation). Ensure program compilation only references program data, not the wider context. This means that compiled programs only need to be invalidated when the program string changes, not on other state changes.
* fix GL_ALPHA render-to-texture problem (Jon Smirl)Brian Paul2005-06-072-0/+7
|
* set OLD_RENDERBUFFER=0, need to clean up a few more things before totally ↵Brian Paul2005-06-042-2/+2
| | | | removing that
* added code to detect GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT errorBrian Paul2005-06-011-3/+18
|
* add support for GL_RENDERBUFFER_RED/GREEN/BLUE/etc_SIZE_EXT querieBrian Paul2005-05-311-0/+57
|
* properly pop the GL_TEXTURE_GEN_ enable stateBrian Paul2005-05-271-0/+8
|
* Fix gl_enums.py so that enums that are listed with the same name inIan Romanick2005-05-261-2501/+2475
| | | | multiple places don't get generated multiple times.
* Cleanup some Windows junk.Karl Schultz2005-05-241-12/+16
|
* moved to windows build dirKarl Schultz2005-05-241-540/+0
|
* Change prototype for TextureMemCpy to return void* (was void).Karl Schultz2005-05-241-1/+1
|
* Import Thomas Helstrom's SSE memcpy code from the via X.org driver.Keith Whitwell2005-05-232-21/+35
| | | | | | Add a TextureMemCpy callback, called from texstore.c when copying texture data via the memcpy_texture() path. Enable this code in the via driver - 100% speedup in texdown.c results.
* Detect use of disabled textures as tex_env_crossbar sources.Keith Whitwell2005-05-231-8/+18
|
* Support ARB_texture_env_crossbar. Changes the way programs areKeith Whitwell2005-05-231-41/+119
| | | | | generated somewhat, with all TEX instructions now emitted at the head of the program.
* Restore the negate() function.Keith Whitwell2005-05-231-5/+33
| | | | Add Ben Skegg's ATI_texture_env_combine3 support.
* don't include strings.hBrian Paul2005-05-171-2/+0
|
* Don't use _mesa_swizzle_ubyte_image if all three texture formatsFelix Kuehling2005-05-161-0/+12
| | | | | | | involved in _mesa_textore_argb/rgba8888 (source, base-internal, destination) differ. _mesa_swizzle_ubyte_image knows only about two of the formats and can't handle the case that all three are different correctly. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3111.
* Deal better with indirection and indirection accounting, developedKeith Whitwell2005-05-161-33/+53
| | | | with Ben Skeggs.
* define M_E if neededBrian Paul2005-05-161-0/+5
|
* new MESA_DEBUG option: disassemKeith Whitwell2005-05-123-2/+6
|
* Rein in debug slightlyKeith Whitwell2005-05-121-1/+1
|
* Fix glean/conform problems. Don't generate so much output whenKeith Whitwell2005-05-111-26/+36
| | | | disassembling.
* Fix logic for allocating texture temporaries (Ben Skeggs).Keith Whitwell2005-05-111-15/+24
| | | | | Rename temp_flag, tex_temp_flag to make this clearer. Respect ctx->Const.MaxFragmentProgramTemps limit.
* Double-buffer generated instructions and only notify driver when theKeith Whitwell2005-05-101-1/+0
| | | | generated program differs from the previous one.
* Double-buffer generated instructions and only notify driver when theKeith Whitwell2005-05-101-8/+21
| | | | generated program differs from the previous one.
* Better driver notification on changes.Keith Whitwell2005-05-101-7/+10
|