summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
Commit message (Collapse)AuthorAgeFilesLines
* Minor clean-ups, reformatting, comment changes.Brian2006-12-201-23/+24
|
* Fix shader object reference counting and hash table deallocation.Brian2006-12-201-10/+16
|
* Clean-up and re-org of the main GLSL object types.Brian2006-12-191-3/+0
| | | | | | | Use the gl_shader struct as it should be. Renamed gl_linked_program to gl_shader_program. Store both shaders and programs in the same hash table and use the Type field to distinguish them.
* Overhaul of GLSL API functions, dispatching, etc.Brian2006-12-191-8/+9
|
* Lots of assorted changes for new GLSL compiler backend.Brian2006-12-151-10/+51
| | | | New datatypes, constants, variables.
* replace check for XFree86LOADER and IN_MODULE with XFree86Server (bug 9144)Brian Paul2006-11-271-1/+1
|
* delete shader objects when destroying shared context stateBrian Paul2006-11-181-0/+11
|
* Merge texmem-0-3-branch.Keith Whitwell2006-11-011-0/+4
|
* Added a few new ctx->Const. fields for shader-related limits.Brian Paul2006-11-011-0/+7
|
* check if ctx->Driver.GetBufferSize==NULL and no-opBrian Paul2006-10-171-5/+6
|
* Added #if / #else / #endif around code related to framebuffer initializationBrian Paul2006-10-151-0/+20
| | | | to describe what should be changed in the drivers.
* resize buffers in MakeCurrentKeith Whitwell2006-09-221-0/+2
|
* Clean-up FEATURE_ARB_shader_objects #ifdefs. Bug 7492.Michal Krol2006-08-011-0/+6
|
* Some structure renaming. Prefix vertex/fragment-related structs withBrian Paul2006-07-201-1/+1
| | | | "gl_" to match other structs.
* free array objects properly (bug 7493)Brian Paul2006-07-111-0/+14
|
* free GL2Objects unconditionallyTilman Sauerbeck2006-07-111-2/+0
|
* free the ArrayObjects hash tableTilman Sauerbeck2006-07-111-0/+5
|
* only access ss->BufferObjects if it's declaredTilman Sauerbeck2006-07-111-2/+5
|
* In free_shared_state(), use new _mesa_HashDeleteAll() function to deleteBrian Paul2006-06-301-79/+82
| | | | textures, display lists, programs, VBOs, etc. Less code and more efficient.
* destroy left-over VBOs on shutdownTilman Sauerbeck2006-06-291-0/+14
|
* Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick2006-06-121-0/+1
| | | | | | | 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.
* Added a check_context_limits() function that checks that the ctx->Const.*Brian Paul2006-05-151-0/+30
| | | | | fields are legal. May catch some driver development bugs. Called the first time a context is bound.
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-251-4/+4
| | | | | | Update a lot of loops, conditionals to use the _TNL_FIRST/LAST_* values instead of specific vertex attributes. Remove the EdgeFlagv function from the GLvertexformat struct.
* Fix comment about MaxTextureUnits, needs to be min of coord and image units.Brian Paul2006-04-131-2/+7
| | | | | | | | See bug 5994. Also add a few assertions. Use MaxTextureUnits in get.c code. There's probably other places where we need to clean-up the usage of the MaxTexture[Coord/Image]Units constants.
* minor clean-upBrian Paul2006-03-291-4/+2
|
* fix some buffer binding tests in _mesa_make_current()Brian Paul2006-03-201-3/+9
|
* Moved _glapi_check_multithread() call into drivers, instead of inBrian Paul2006-03-161-8/+1
| | | | | _mesa_make_current(). This removes an ugly #if !defined(IN_DRI_DRIVER) from core Mesa.
* just a comment for check_compatible()Brian Paul2006-03-071-0/+5
|
* disable double-buffer test in check_compatible(), fixes pbuffer/visual problemBrian Paul2006-03-071-2/+11
|
* display list clean-upsBrian Paul2006-02-261-3/+1
|
* fix broken _mesa_copy_context() for GL_LIGHTING_BITBrian Paul2006-02-241-2/+2
|
* properly free ATI fragment shaders (Tilman Sauerbeck)Brian Paul2006-01-161-3/+21
|
* properly notify driver on scissor change in MakeCurrentKeith Whitwell2005-12-301-2/+4
|
* Split _MaintainTexEnvProgram into two flags _Maintain and _Use. ThisKeith Whitwell2005-12-121-0/+4
| | | | | restores the ability to run the software driver with program TNL but tradtional swrast.
* No longer derive 'ati_fragment_shader' from 'program' class. Only theBrian Paul2005-11-191-3/+5
| | | | | program->Id and program->RefCount fields were used and ATI fragment shaders didn't have too much in common with ARB/NV vertex/fragment programs anyway.
* Added OSMesaColorClamp(), bug 4917Brian Paul2005-11-121-6/+0
|
* Re-org and clean-up of vertx/fragment program limits (instructions,Brian Paul2005-11-011-16/+42
| | | | | | | temporaries, parameters, etc). glGetProgramivARB() now returns all the right things. Updated i915 and r300 code to initialize program native limits and current program's native instruction/temporary/etc counts.
* Remove ACCUM_BITS.Brian Paul2005-09-211-12/+4
|
* Remove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.Brian Paul2005-09-141-7/+0
|
* clean-up some _mesa_make_current() codeBrian Paul2005-09-141-35/+32
|
* print version with debug infoBrian Paul2005-09-131-2/+4
|
* Move the ctx->FirstTimeCurrent initializationBrian Paul2005-09-131-0/+2
|
* Prototype implementation of new GL_EXT_timer_query extension (not finalized ↵Brian Paul2005-09-021-2/+2
| | | | | | yet). Extends the query mechanism to query elapsed time while rendering.
* Remove _glapi_check_multithread from the interface exported by the loader toIan Romanick2005-08-101-7/+4
| | | | | | | | | | | | | | | | | 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
* Remove NEW_RENDERBUFFER stuff.Brian Paul2005-07-011-5/+1
| | | | | Now, OLD_RENDERBUFFER marks code that needs to eventually be removed when all the drivers are updated to no longer need the SetBuffer() function.
* 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
* Rein in debug slightlyKeith Whitwell2005-05-121-1/+1
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-199/+42
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* Add a facility to route all rasterization through a fragment programKeith Whitwell2005-05-041-0/+3
| | | | | | | | | | | which is automatically generated to match the current texture environment state. Introduces a new value ctx->FragmentProgram._Active which is true when either _Enabled is true or there is such a fragment program ready to run. To test out on a driver running the software rasterizer, set MESA_TEX_PROG=t in the environment. It goes without saying that performance is lower for the software rasterizer in this mode.
* added _mesa_share_state()Brian Paul2005-04-151-0/+26
|