summaryrefslogtreecommitdiff
path: root/src/mesa/main/context.c
AgeCommit message (Collapse)Author
2007-01-15Don't special-case FOG attribute initialization.Keith Whitwell
Initial fog value was being set to {0,0,0,0}. This results in vector size 4, but isn't necessary. The regular {0,0,0,1} works fine.
2006-11-02merge current trunk into vbo branchAlan Hourihane
2006-10-30Move edgeflag into the VERT_ATTRIB_SEVEN slot. This means that ourKeith Whitwell
NV_vertex_program implementation has slightly incorrect aliasing behaviour. I think this is reasonable given the simplification and the fact that the mainstream ARB_vp continues to have the correct behaviour.
2006-10-17check if ctx->Driver.GetBufferSize==NULL and no-opBrian Paul
2006-10-15Added #if / #else / #endif around code related to framebuffer initializationBrian Paul
to describe what should be changed in the drivers.
2006-09-22resize buffers in MakeCurrentKeith Whitwell
2006-08-01Clean-up FEATURE_ARB_shader_objects #ifdefs. Bug 7492.Michal Krol
2006-07-20Some structure renaming. Prefix vertex/fragment-related structs withBrian Paul
"gl_" to match other structs.
2006-07-11free array objects properly (bug 7493)Brian Paul
2006-07-11free GL2Objects unconditionallyTilman Sauerbeck
2006-07-11free the ArrayObjects hash tableTilman Sauerbeck
2006-07-11only access ss->BufferObjects if it's declaredTilman Sauerbeck
2006-06-30In free_shared_state(), use new _mesa_HashDeleteAll() function to deleteBrian Paul
textures, display lists, programs, VBOs, etc. Less code and more efficient.
2006-06-29destroy left-over VBOs on shutdownTilman Sauerbeck
2006-06-12Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick
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.
2006-05-15Added a check_context_limits() function that checks that the ctx->Const.*Brian Paul
fields are legal. May catch some driver development bugs. Called the first time a context is bound.
2006-04-25Put color index attribute into the 6th attribute slot.Brian Paul
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.
2006-04-13Fix comment about MaxTextureUnits, needs to be min of coord and image units.Brian Paul
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.
2006-03-29minor clean-upBrian Paul
2006-03-20fix some buffer binding tests in _mesa_make_current()Brian Paul
2006-03-16Moved _glapi_check_multithread() call into drivers, instead of inBrian Paul
_mesa_make_current(). This removes an ugly #if !defined(IN_DRI_DRIVER) from core Mesa.
2006-03-07just a comment for check_compatible()Brian Paul
2006-03-07disable double-buffer test in check_compatible(), fixes pbuffer/visual problemBrian Paul
2006-02-26display list clean-upsBrian Paul
2006-02-24fix broken _mesa_copy_context() for GL_LIGHTING_BITBrian Paul
2006-01-16properly free ATI fragment shaders (Tilman Sauerbeck)Brian Paul
2005-12-30properly notify driver on scissor change in MakeCurrentKeith Whitwell
2005-12-12Split _MaintainTexEnvProgram into two flags _Maintain and _Use. ThisKeith Whitwell
restores the ability to run the software driver with program TNL but tradtional swrast.
2005-11-19No longer derive 'ati_fragment_shader' from 'program' class. Only theBrian Paul
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.
2005-11-12Added OSMesaColorClamp(), bug 4917Brian Paul
2005-11-01Re-org and clean-up of vertx/fragment program limits (instructions,Brian Paul
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.
2005-09-21Remove ACCUM_BITS.Brian Paul
2005-09-14Remove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.Brian Paul
2005-09-14clean-up some _mesa_make_current() codeBrian Paul
2005-09-13print version with debug infoBrian Paul
2005-09-13Move the ctx->FirstTimeCurrent initializationBrian Paul
2005-09-02Prototype implementation of new GL_EXT_timer_query extension (not finalized ↵Brian Paul
yet). Extends the query mechanism to query elapsed time while rendering.
2005-08-10Remove _glapi_check_multithread from the interface exported by the loader toIan Romanick
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
2005-07-01Remove NEW_RENDERBUFFER stuff.Brian Paul
Now, OLD_RENDERBUFFER marks code that needs to eventually be removed when all the drivers are updated to no longer need the SetBuffer() function.
2005-06-30Replace add_newer_entrypoints (src/mesa/main/context.c) withIan Romanick
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
2005-05-12Rein in debug slightlyKeith Whitwell
2005-05-04Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul
Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
2005-05-04Add a facility to route all rasterization through a fragment programKeith Whitwell
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.
2005-04-15added _mesa_share_state()Brian Paul
2005-03-22add FreeTexImageData hook to help single-copy texturing in driversKeith Whitwell
2005-02-26Rename _mesa_update_buffers() to _mesa_update_draw_buffer_bounds() and doBrian Paul
additional checks. Replace _mesa_init_buffers() with _mesa_init_scissor() and _mesa_init_multisample().
2005-02-07additional work on GL_EXT_framebuffer_objectBrian Paul
2005-02-05Some initial work on GL_EXT_framebuffer_object.Brian Paul
2005-01-13init ARB_shader_objects subsystemMichal Krol
2004-12-19Implement software ATI_fragment_shaderDave Airlie
no error detection, slow, may not be 100% correct but a good start