summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Directly include mfeatures.h in files that perform feature tests.Vinson Lee2011-01-071-0/+1
|
* mesa: make glGet*(GL_NONE) generate GL_INVALID_ENUMBrian Paul2010-12-031-3/+5
| | | | | | | | | In find_value() check if we've hit the 0th/invalid entry before checking if the pname matches. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31987 NOTE: This is a candidate for the 7.9 branch.
* mesa: Add getters for ARB_copy_buffer's attachment points.Eric Anholt2010-12-021-0/+13
| | | | Fixes more complaints by oglconform.
* mesa: Add getters for the rest of the supported draw buffers.Eric Anholt2010-12-021-0/+8
| | | | | MAX_DRAW_BUFFERS is 8, so allow all 8 GL_DRAW_BUFFER# to be retrieved. Fixes complaints by oglconform.
* mesa: Fix glGet of ES2's GL_MAX_*_VECTORS properties.Kenneth Graunke2010-11-241-6/+11
| | | | | | | | | | | | Previously, the get table listed all three as having custom locations, yet find_custom_value did not have cases to handle them. MAX_VARYING_VECTORS does not need a custom location since MaxVaryings is already stored as float[4] (or vec4). MaxUniformComponents is stored as the number of floats, however, so a custom implementation that divides by 4 is necessary. Fixes bugs.freedesktop.org #31495.
* mesa: Allow query of MAX_SAMPLES with EXT_framebuffer_multisampleIan Romanick2010-11-101-2/+2
| | | | | | | | | | | | | Previously queries of MAX_SAMPLES were only allowed with ARB_framebuffer_object, but EXT_framebuffer_multisample also enables this query. This seems to only effect the i915. All other drivers support both extensions or neither extension. This patch is based on a patch that Kenneth sent along with the report. NOTE: this is a candidate for the 7.9 branch. Reported-by: Kenneth Waters <[email protected]>
* mesa: state/queries for GL_MIN/MAX_PROGRAM_TEXEL_OFFSET_EXTBrian Paul2010-10-281-0/+13
|
* mesa: Track an ActiveProgram distinct from CurrentProgramIan Romanick2010-10-271-1/+1
| | | | | ActiveProgram is the GL_EXT_separate_shader_objects state variable used for glUniform calls. glUseProgram also sets this.
* mesa: added glGet query for GL_RGBA_INTEGER_MODE_EXTBrian Paul2010-10-231-0/+11
|
* mesa: set/get primitive restart stateBrian Paul2010-10-211-0/+16
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-16/+16
|
* mesa: Remove EXT_convolution.Eric Anholt2010-09-231-33/+0
| | | | More optional code.
* mesa: Remove SGI_color_matrix.Eric Anholt2010-09-231-25/+0
| | | | Another optional ARB_imaging subset extension.
* mesa: Remove SGI_color_table.Eric Anholt2010-09-231-12/+0
| | | | Another optional ARB_imaging subset extension.
* mesa: Remove EXT_histogram.Eric Anholt2010-09-231-6/+0
| | | | This has always been optional, and not useful.
* mesa: Remove the non-required ARB_imaging extension.Eric Anholt2010-09-231-2/+2
| | | | | | | Many of the EXT_ extensions in the subset have significant code overhead with no users. It is not a required part of GL -- though text describing the extension is part of the core spec since 1.2, it is always conditional on the ARB_imaging extension.
* mesa: Enable GL_MAX_VERTEX_ATTRIBS in ES2.Kenneth Graunke2010-09-071-1/+16
| | | | | Signed-off-by: Kristian Høgsberg <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
* Fix inverted version checks in check_extra.Kenneth Graunke2010-08-301-6/+12
| | | | | | | | | | Previously, if an attribute was enabled by either a specific GL version or an extension, the check would require -both- to be enabled. This bug was not discovered earlier because version checks are currently only ever used on their own. Signed-off-by: Kristian Høgsberg <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
* mesa: initial support for ARB_geometry_shader4Zack Rusin2010-06-281-0/+21
| | | | | | laying down the foundation for everything and implementing most of the stuff. linking, gl_VerticesIn and multidimensional inputs are left.
* mesa: rename src/mesa/shader/ to src/mesa/program/Brian Paul2010-06-101-1/+1
|
* mesa: Fix excess initializers in get.c table.Chia-I Wu2010-05-311-2/+2
|
* mesa: fix warnings about missing initializers in get.c tableBrian Paul2010-05-211-326/+330
|
* mesa: enum bitfields are a gcc-only feature, use GLubyteBrian Paul2010-05-141-2/+2
|
* mesa: print enum name instead of hexadecimal value in glGet errorsBrian Paul2010-05-141-4/+9
|
* mesa: silence compiler warningAlan Hourihane2010-05-131-1/+3
|
* mesa: added glGet code for GL_ARB_transform_feedback2Brian Paul2010-05-111-0/+18
|
* mesa: Optimize get.c by using a table-driven approachKristian Høgsberg2010-05-111-7842/+2298
|
* mesa: more transform feedback infrastructureBrian Paul2010-05-101-9/+9
| | | | | Includes GL_ARB_transform_feedback2 which encapsulates transform feedback state in objects.
* mesa: remove driver hooks for GetFloat/Integer/Doublev, etcBrian Paul2010-05-071-16/+0
| | | | | Once upon a time some drivers hooked into these for GL_HP_occlusion_test and GL_OES_read_format. They're not being used anymore so get rid of them.
* mesa: do version checking for GL 3.x queriesBrian Paul2010-04-201-0/+50
|
* mesa: API and state for GL 3.1 primitive restartBrian Paul2010-04-201-0/+24
|
* mesa: add GL 3.2 GL_CONTEXT_PROFILE_MASK queryBrian Paul2010-04-201-0/+12
|
* mesa: better, smaller error handling code for glGet*()Brian Paul2010-04-201-602/+626
| | | | get.o is about 17% smaller.
* mesa: check for _NEW_BUFFERS for color read format queriesBrian Paul2010-04-051-0/+16
|
* mesa: added glGet queries for transform_feedbackBrian Paul2010-03-301-0/+152
|
* mesa: only call _mesa_update_state() when necessary in glGet functionsBrian Paul2010-03-261-69/+46
| | | | | | | | | | | Only a few state vars require state validation before querying them. This potentially speeds up state queries. Encode that info into the state tuple table. Also, use the new tuple field to indicate when FLUSH_CURRENT() must be called to validate other state vars. Based on a patch submitted by Robert Bragg on Feb 12, 2010.
* mesa: added missing glGet query for GL_MAX_ARRAY_TEXTURE_LAYERS_EXTBrian Paul2010-03-201-0/+16
|
* mesa: added GL3 ContextFlags field and query codeBrian Paul2010-03-201-0/+12
|
* mesa: Always return default value for CURRENT_RASTER_INDEXIan Romanick2010-03-031-4/+4
| | | | | | | Since there is no color-index rendering, it is impossible to update this value. Just return the initial setting and be happy. Signed-off-by: Ian Romanick <[email protected]>
* mesa: Remove checks of Visual.rgbMode in Get pathsIan Romanick2010-03-031-8/+8
| | | | Signed-off-by: Ian Romanick <[email protected]>
* mesa: Remove unnecessary header.Vinson Lee2010-02-121-1/+0
|
* mesa: check for invalid texture coord unit in glGet queriesBrian Paul2010-02-031-44/+116
|
* mesa: add error check for querying invalid texture matrixBrian Paul2010-02-031-4/+32
|
* mesa: added GL_MAJOR_VERSION and GL_MINOR_VERSION queriesBrian Paul2010-01-051-0/+24
| | | | New in GL 3.0.
* mesa: implement GL3 GL_NUM_EXTENSIONS queryBrian Paul2009-12-301-0/+12
|
* mesa: added infrastructure for GL_EXT_draw_buffers2Brian Paul2009-12-291-0/+6
|
* mesa: implement per-buffer color maskingBrian Paul2009-12-291-19/+46
| | | | | | | | | | | This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0. The ctx->Color.ColorMask field is now a 2-D array. Until drivers are modified to support per-buffer color masking, they can just look at the 0th color mask. The new _mesa_ColorMaskIndexed() function will be called by glColorMaskIndexedEXT() or glColorMaski().
* mesa: implement indexed glGet functionsBrian Paul2009-12-291-0/+74
| | | | | | | | The functions are _mesa_GetBooleanIndexedv(), _mesa_GetIntegerIndexedv(), and _mesa_GetInteger64Indexedv(). These will be called from API functions such as glGetBooleanIndexedvEXT() and glGetBooleani_v(). Only the GL_BLEND query is supported at this time.
* mesa: per-buffer blend enabled flagsBrian Paul2009-12-291-4/+4
| | | | | | | | | | | | | | | ctx->Color.BlendEnabled is now a GLbitfield instead of a GLboolean to indicate blend on/off status for each color/draw buffer. This is infrastructure for GL_EXT_draw_buffers2 and OpenGL 3.x New functions include _mesa_EnableIndexed(), _mesa_DisableIndexed(), and _mesa_IsEnabledIndexed(). The enable function corresponds to glEnableIndexedEXT() for GL_EXT_draw_buffers2 or glEnablei() for GL3. Note that there's quite a few tests for ctx->Color.BlendEnabled != 0 in drivers, etc. Those tests can remain as-is since the mask will be 0 or ~0 unless GL_EXT_draw_buffers2 is enabled.
* Merge branch 'mesa_7_7_branch'Brian Paul2009-12-111-8/+9
|\ | | | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_xv.c src/mesa/drivers/dri/intel/intel_span.c