summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: refactor shader api / object codeBrian Paul2010-06-101-1/+1
| | | | | Remove the unneeded ctx->Driver hooks for shader-related functions. Move state and API-related things into main/.
* mesa: Optimize get.c by using a table-driven approachKristian Høgsberg2010-05-111-0/+1
|
* mesa: Only initialize TNL for OpenGLKristian Høgsberg2010-05-031-4/+5
|
* mesa: Only initialize save dispatch table for OpenGLKristian Høgsberg2010-05-031-12/+10
|
* mesa: increase MAX_DRAW_BUFFERS to 8Brian Paul2010-05-031-0/+3
| | | | Required for GL 3.x
* mesa: Move api_exec_es*.c into mesa/mainKristian Høgsberg2010-04-271-5/+43
| | | | | This requires renaming a few functions to have unique names so that they can all live within the same driver.
* mesa: Move struct _glapi_table allocation out of context.cKristian Høgsberg2010-04-221-13/+13
| | | | | | We now allocate the table from api_exec.c and dlist.c where we fill out the table. This way, context.c doesn't need to know the actual contents of struct _glapi_table.
* mesa: Move API specific context intialization into context.cKristian Høgsberg2010-04-221-3/+25
|
* mesa: Track the OpenGL API we're implementing in the contextKristian Høgsberg2010-04-221-11/+41
| | | | | | | | | | | | | | | | This introduces a new way to create or initialize a context: _mesa_create_context_for_api and _mesa_initialize_context_for_api which in addition to the current arguments take an api enum to indicate which OpenGL API the context should implement. At this point the API field in GLcontext isn't used anywhere, but later commits will key certain functionality off of it. The _mesa_create_context and _mesa_initialize_context functions are kept in place as wrappers around the *_for_api versions, passing in API_OPENGL to get the same behavior as before.
* mesa: add GL 3.2 GL_CONTEXT_PROFILE_MASK queryBrian Paul2010-04-201-0/+3
|
* mesa: plug in transform feedback functions, set limitsBrian Paul2010-03-301-0/+8
|
* mesa: Add missing features.Chia-I Wu2010-03-301-1/+1
| | | | | | | Add features tested in the code but missing from mfeatures.h. This also fixes some tests of features. They should be tested with "#if", not "#ifdef".
* mesa: Remove checks of Visual.rgbModeIan Romanick2010-03-031-2/+0
| | | | | | This must always be true now, so there is no reason to check it. Ever. Signed-off-by: Ian Romanick <[email protected]>
* mesa: Remove support for creating color-index visualsIan Romanick2010-03-031-10/+5
| | | | | | | | Remove the rgbMode and indexBits parameters from _mesa_create_visual and _mesa_initialize_visual. These values are now hardcoded to GL_TRUE and 0. Signed-off-by: Ian Romanick <[email protected]>
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-12/+12
|
* mesa: replace old MEMCPY macro with memcpyBrian Paul2010-02-191-1/+1
|
* mesa: additional constant/limit assertionsBrian Paul2010-02-111-0/+5
|
* mesa: move all limit/constant assertions into check_context_limits()Brian Paul2010-02-091-30/+30
|
* mesa: Enable true refcounting for NullBufferObj.Michal Krol2010-02-091-0/+2
| | | | | | | | This object can be shared with another context, so we cannot just delete it when the owning context is being destroyed. Ensuring that buffer objects are properly refcounted guarantees NullBufferObj is destroyed when all references to it are removed.
* mesa: Always do proper ref counting of shared state.José Fonseca2010-02-091-20/+4
|
* mesa: increase number of texture units to MAX_COMBINED_TEXTURE_IMAGE_UNITSBrian Paul2010-02-031-0/+3
| | | | | | | | | | | | | | | | | | | We were misinterpretting GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS previously. It's the number of texture units for which we need to keep state; not just the total number of texture units addressable by the vertex shader plus fragment shader. Since sw Mesa independently supports 16 texture units in vertex shaders and 16 texture units in fragment shaders, the max combined units is 32. Note that the docs for glActiveTexture() indicate the max legal unit is MAX(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, MAX_TEXTURE_COORDS) - 1. A new piglit test (texunits.c) tests the various texture unit limits. I'm pretty sure I've got this all right now, but additional reviews are welcome...
* mesa: Remove unnecessary headers.Vinson Lee2010-02-011-3/+0
|
* mesa: Remove unnecessary headers.Vinson Lee2010-01-311-4/+0
|
* mesa: do state validation in _mesa_valid_to_render()Brian Paul2010-01-291-0/+4
| | | | | | | | | ...rather than checking/validating before all the calls to _mesa_valid_to_render() and valid_to_render(). The next patch will actually fix some bugs... (cherry picked from commit 23eda89ec89e2bd5bc26077bd56e8d6b5d4040d4)
* glapi: clean-up and simplify glapi_nop.c codeBrian Paul2010-01-221-8/+0
| | | | | | Removed _glapi_noop_enable_warnings() and _glapi_set_warning_func(). Just check the DEBUG env vars and call fprintf(stderr) with a warning message instead.
* mesa: call _mesa_compute_version() to set context's version infoBrian Paul2010-01-051-0/+5
|
* Merge branch 'mesa_7_7_branch'Brian Paul2009-12-111-4/+0
|\ | | | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_xv.c src/mesa/drivers/dri/intel/intel_span.c
| * mesa: Move OES_read_format support from drivers into the core.Eric Anholt2009-12-091-4/+0
| | | | | | | | | | | | | | | | | | | | | | The assertion is that the correct read type to be using is the native type of the underlying read renderbuffer. For some fallback paths, this may be worse than GL_RGBA/GL_UNSIGNED_BYTE for reads today, but it gets all drivers the expected GL_BGRA/GL_UNSIGNED_BYTE for ARGB8888 or GL_BGR//GL_UNSIGNED_SHORT_5_6_5_REV for rgb565 with no work. This fixes the intel (and other) DRI drivers to report read formats that should hit blit PBO readpixels paths.
* | mesa: Update vertex texture code after gallium changes.Michal Krol2009-12-011-0/+1
|/
* Merge branch 'outputswritten64'Ian Romanick2009-11-171-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | Add a GLbitfield64 type and several macros to operate on 64-bit fields. The OutputsWritten field of gl_program is changed to use that type. This results in a fair amount of fallout in drivers that use programs. No changes are strictly necessary at this point as all bits used are below the 32-bit boundary. Fairly soon several bits will be added for clip distances written by a vertex shader. This will cause several bits used for varyings to be pushed above the 32-bit boundary. This will affect any drivers that support GLSL. At this point, only the i965 driver has been modified to support this eventuality. I did this as a "squash" merge. There were several places through the outputswritten64 branch where things were broken. I foresee this causing difficulties later for bisecting. The history is still available in the branch. Conflicts: src/mesa/drivers/dri/i965/brw_wm.h
* mesa/main: Make FEATURE_texture_s3tc follow feature conventions.Chia-I Wu2009-10-291-3/+1
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* mesa/main: Make FEATURE_texture_fxt1 follow feature conventions.Chia-I Wu2009-10-291-3/+0
| | | | | | Also remove the unused initialization and GLchan fetch functions. Signed-off-by: Chia-I Wu <[email protected]>
* glapi: Always build libglapi.a.Chia-I Wu2009-10-231-1/+0
| | | | | | | | 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 <[email protected]>
* mesa: Enable remap table in core.Chia-I Wu2009-10-231-0/+3
| | | | | | | | | | | | | 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 <[email protected]>
* Merge branch 'mesa_7_6_branch'Brian Paul2009-10-221-8/+29
|\
| * mesa: code refactoring- new _mesa_finish(), _mesa_flush()Brian Paul2009-10-221-8/+29
| |
* | mesa: added VERBOSE_SWAPBUFFERSBrian Paul2009-10-141-0/+2
| |
* | mesa: free display list state after freeing shared stateBrian Paul2009-10-081-1/+3
| | | | | | | | Fixes bug 24402.
* | mesa: added _mesa_free_display_list_data()Brian Paul2009-10-071-0/+1
| |
* | Merge branch 'mesa_7_6_branch'Brian Paul2009-10-051-0/+1
|\| | | | | | | | | | | Conflicts: src/gallium/auxiliary/util/u_cpu_detect.c
| * mesa: add missing return when out of memoryBrian Paul2009-10-011-0/+1
| |
* | mesa/main: Make FEATURE_dlist follow feature conventions.Chia-I Wu2009-09-301-5/+3
| | | | | | | | | | As shown in mfeatures.h, this allows users of dlist.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_evaluators follow feature conventions.Chia-I Wu2009-09-301-6/+0
| | | | | | | | | | As shown in mfeatures.h, this allows users of eval.h to work without knowing if the feature is available.
* | mesa/main: New feature FEATURE_queryobj.Chia-I Wu2009-09-301-8/+2
| | | | | | | | | | It merges FEATURE_ARB_occlusion_query and FEATURE_EXT_timer_query, and follows the feature conventions.
* | mesa/main: Make FEATURE_feedback follow feature conventions.Chia-I Wu2009-09-301-6/+0
| | | | | | | | | | As shown in mfeatures.h, this allows users of feedback.h to work without knowing if the feature is available.
* | mesa/main: New feature FEATURE_rastpos.Chia-I Wu2009-09-301-4/+0
| | | | | | | | | | It is separated from FEATURE_drawpix and made to follow the feature conventions.
* | mesa/main: Make FEATURE_histogram follow feature conventions.Chia-I Wu2009-09-301-4/+0
| | | | | | | | | | As shown in mfeatures.h, this allows users of histogram.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_attrib_stack follow feature conventions.Chia-I Wu2009-09-301-6/+0
| | | | | | | | | | As shown in mfeatures.h, this allows users of attrib.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_accum follow feature conventions.Chia-I Wu2009-09-301-4/+0
| | | | | | | | | | As shown in mfeatures.h, this allows users of accum.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_colortable follow feature conventions.Chia-I Wu2009-09-241-6/+0
| | | | | | | | | | As shown in mfeatures.h, this allows users of colortab.h to work without knowing if the feature is available.