summaryrefslogtreecommitdiff
path: root/src/mesa/main/context.c
AgeCommit message (Collapse)Author
2009-10-23glapi: Always build libglapi.a.Chia-I Wu
This is made possible by making glapioffsets.h and glapidispatch.h internal headers of glapi. They should only be included indirectly through dispatch.h by mesa. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-23mesa: Enable remap table in core.Chia-I Wu
This enables the remap table in core. driInitExtensions is adapted to use the remap table. All uses of extension_helper.h are replaced by remap_helper.h. The chicken-egg problem of the DRI drivers is also solved. It is now also possible to pass NULL extensions to driInitExtensions. It will cause driInitExtensions to map all known functions. This functionality is used by software drivers and EGL_i915. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22Merge branch 'mesa_7_6_branch'Brian Paul
2009-10-22mesa: code refactoring- new _mesa_finish(), _mesa_flush()Brian Paul
2009-10-14mesa: added VERBOSE_SWAPBUFFERSBrian Paul
2009-10-08mesa: free display list state after freeing shared stateBrian Paul
Fixes bug 24402.
2009-10-07mesa: added _mesa_free_display_list_data()Brian Paul
2009-10-05Merge branch 'mesa_7_6_branch'Brian Paul
Conflicts: src/gallium/auxiliary/util/u_cpu_detect.c
2009-10-01mesa: add missing return when out of memoryBrian Paul
2009-09-30mesa/main: Make FEATURE_dlist follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of dlist.h to work without knowing if the feature is available.
2009-09-30mesa/main: Make FEATURE_evaluators follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of eval.h to work without knowing if the feature is available.
2009-09-30mesa/main: New feature FEATURE_queryobj.Chia-I Wu
It merges FEATURE_ARB_occlusion_query and FEATURE_EXT_timer_query, and follows the feature conventions.
2009-09-30mesa/main: Make FEATURE_feedback follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of feedback.h to work without knowing if the feature is available.
2009-09-30mesa/main: New feature FEATURE_rastpos.Chia-I Wu
It is separated from FEATURE_drawpix and made to follow the feature conventions.
2009-09-30mesa/main: Make FEATURE_histogram follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of histogram.h to work without knowing if the feature is available.
2009-09-30mesa/main: Make FEATURE_attrib_stack follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of attrib.h to work without knowing if the feature is available.
2009-09-30mesa/main: Make FEATURE_accum follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of accum.h to work without knowing if the feature is available.
2009-09-24mesa/main: Make FEATURE_colortable follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of colortab.h to work without knowing if the feature is available.
2009-09-20Revert "mesa: move _mesa_meta_init/free() calls to core Mesa"Brian Paul
This reverts commit 651cffd626a82d9bf539437ca4bdf8ea4b396fab. The commit inadvertantly introduced a new gallium dependency on the meta code.
2009-09-19mesa: move _mesa_meta_init/free() calls to core MesaBrian Paul
2009-09-03ARB sync: Add support for GL_ARB_sync to swrastIan Romanick
This isn't quite right yet. The delete behavior and the context clean-up needs some work.
2009-08-26ARB prog: Change handling of program parameter limitsIan Romanick
Several changes are made to program parameter limits. Several of the non-NATIVE limits are set higher. All of the NATIVE limits are set to zero in the core Mesa code. Each driver must set the actual value in its context creation routine. If the NATIVE value remains zero, this indicates that hardware shaders may not be supported. Each of the preceeding changes matches the bahavior of Apple's shader assembler, so it seems safe. Finally, we limit the value of MaxEnvParams to be no greater than MaxNativeAttribs. At least one case has been found where an application does the wrong thing if MaxNativeAttribs < MaxEnvParams. See also bugzilla #23490.
2009-08-25mesa: validate shader before drawing (for debugging, disabled)Brian Paul
2009-08-14mesa: append uniform values to the log file the first time we use a shaderBrian Paul
This info is essential to using/debugging a shader outside of its normal application.
2009-08-14mesa: new _mesa_valid_to_render() functionBrian Paul
Tests if the current shader/program is valid and that the framebuffer is complete. To be called by glBegin, glDrawArrays, etc.
2009-06-26Merge branch 'arb_vertex_array_object'Brian Paul
2009-06-19mesa: move vertex array objects from shared state to per-contextBrian Paul
The ARB version requires VAOs to be per-context while the Apple extension was ambiguous.
2009-06-19Merge branch 'ext-provoking-vertex'Brian Paul
Conflicts: docs/relnotes-7.6.html progs/tests/Makefile src/gallium/drivers/softpipe/sp_prim_vbuf.c src/glx/x11/indirect.c src/mesa/glapi/Makefile src/mesa/glapi/dispatch.h src/mesa/glapi/glapioffsets.h src/mesa/glapi/glapitable.h src/mesa/glapi/glapitemp.h src/mesa/glapi/glprocs.h src/mesa/main/dlist.c src/mesa/main/enums.c src/mesa/sparc/glapi_sparc.S src/mesa/x86-64/glapi_x86-64.S src/mesa/x86/glapi_x86.S
2009-06-24Merge branch 'mesa_7_5_branch'Brian Paul
Conflicts: src/mesa/drivers/dri/i915/i915_tex_layout.c src/mesa/drivers/dri/i965/brw_wm_glsl.c src/mesa/drivers/dri/intel/intel_buffer_objects.c src/mesa/drivers/dri/intel/intel_pixel_bitmap.c src/mesa/drivers/dri/intel/intel_pixel_draw.c src/mesa/main/enums.c src/mesa/main/texstate.c src/mesa/vbo/vbo_exec_array.c
2009-06-17mesa: rework viewport/scissor initialization codeBrian Paul
The first time a context is bound to a drawable, the viewport and scissor bounds are initialized to the buffer's size. This is actually a bit tricky. A new _mesa_check_init_viewport() function is called in several places to check if the viewport has been initialized. We also use a new ctx->ViewportInitialized flag instead of the overloaded ctx->FirstTimeCurrent flag.
2009-06-04Merge branch 'mesa_7_5_branch'Brian Paul
Conflicts: src/mesa/main/context.c
2009-06-02mesa: release VBO and PBO references upon context destructionBrian Paul
2009-06-01Merge branch 'mesa_7_5_branch'Brian Paul
2009-05-30mesa: Add success/failures return value to _mesa_make_current.José Fonseca
2009-05-28mesa: data structure updates for GL_EXT_provoking_vertexBrian Paul
2009-05-22mesa: use Elements() for loop limitBrian Paul
2009-05-13mesa: delete array objects before buffer objects during context tear-downBrian Paul
The former may point to the later.
2009-05-08mesa: assertions to check for too many vertex outputs or fragment inputsBrian Paul
2009-05-08mesa: Make _mesa_share_state thread safe.José Fonseca
2009-05-08mesa: more complete fix for transform_invarient glitchesKeith Whitwell
Add a new flag mvp_with_dp4 in the context, and use that to switch both ffvertex.c and programopt.c vertex transformation code to either DP4 or MUL/MAD implementations.
2009-05-08mesa: Make _mesa_share_state thread safe.José Fonseca
2009-05-07mesa: move the NullBufferObj from GLcontext to gl_shared_stateBrian Paul
Since shared array objects may point to the null/default buffer object, the null/default buffer object should be part of the shared state.
2009-05-05mesa: more complete fix for transform_invarient glitchesKeith Whitwell
Add a new flag mvp_with_dp4 in the context, and use that to switch both ffvertex.c and programopt.c vertex transformation code to either DP4 or MUL/MAD implementations.
2009-04-28mesa/main: protect driver.finish with FLUSH_CURRENTKeith Whitwell
Already doing this for driver.flush()
2009-04-24mesa: fix up error/warning/debug output newlinesBrian Paul
As of commit 23ad86cfb91c294ce85a3116d4b825aaa3988a6e all messages go through output_if_debug(). Add new parameter to output_if_debug() to indicate whether to emit a newline. _mesa_warning() and _mesa_error() calls should not end their strings with \n. _mesa_debug() calls should end their text with \n.
2009-04-22mesa: protect driver.flush() with FLUSH_CURRENTKeith Whitwell
Need to do this to ensure vbo code unmaps its buffers before calling the driver, which may be sitting on top of a memory manager which objects to firing commands from a mapped buffer.
2009-04-17mesa: suppress extra newlineBrian Paul
2009-03-17mesa: update/fix doxygen commentsVinson Lee
2009-03-12mesa: add support for ATI_envmap_bumpmapRoland Scheidegger
add new entrypoints, new texture format, etc translate in texenvprogram.c for drivers using the mesa-generated tex env fragment program also handled in swrast, but not tested (cannot work due to negative texel results not handled correctly)
2009-03-07mesa: move shared context state functions to new shared.c fileBrian Paul