summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Move OES_read_format support from drivers into the core.Eric Anholt2009-12-091-8/+9
| | | | | | | | | | | 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.
* Merge branch 'mesa_7_6_branch'Brian Paul2009-11-041-172/+172
|\ | | | | | | | | | | Conflicts: src/mesa/drivers/windows/gdi/mesa.def
| * mesa: (GLint64) casts in get.c to silence Visual Studio warningsBrian Paul2009-11-031-172/+172
| | | | | | | | Revised version of a patch from Karl Schultz.
* | mesa: regenerate get.c form get_gen.pyBrian Paul2009-09-091-0/+16
|/
* ARB sync: Add support for GL_ARB_sync to swrastIan Romanick2009-09-031-0/+19
| | | | | This isn't quite right yet. The delete behavior and the context clean-up needs some work.
* ARB sync: Add infrastructure for glGetInteger64vIan Romanick2009-09-031-0/+1832
|
* mesa: call FLUSH_CURRENT() for GL_CURRENT_TEXTURE_COORDS queryBrian Paul2009-08-181-0/+3
|
* Regenerate files for GL_ARB_seamless_cube_mapIan Romanick2009-08-141-0/+12
|
* mesa: glGet queries for GL_EXT_provoking_vertexBrian Paul2009-05-281-0/+24
|
* mesa: add missing glGet*() case for GL_VERTEX_ARRAY_BINDING_APPLEBrian Paul2009-05-211-0/+12
|
* mesa: remove GL_MESA_program_debug extensionBrian Paul2009-03-071-48/+0
| | | | This was never fully fleshed out and hasn't been used.
* mesa: use an array for current texture objectsBrian Paul2009-02-211-21/+21
| | | | Use loops to consolidate lots of texture object code.
* mesa: more display list cleanupsBrian2009-01-311-3/+3
| | | | Remove some unneeded fields. Rename some function parameters.
* Make GL_ARB_draw_buffers mandatoryIan Romanick2009-01-281-15/+0
| | | | Signed-off-by: Ian Romanick <[email protected]>
* Make GL_ARB_vertex_buffer_object mandatoryIan Romanick2009-01-281-30/+0
| | | | Signed-off-by: Ian Romanick <[email protected]>
* Make GL_ARB_multisample mandatoryIan Romanick2009-01-281-24/+0
| | | | Signed-off-by: Ian Romanick <[email protected]>
* Make GL_ARB_texture_compression mandatoryIan Romanick2009-01-281-9/+0
| | | | Signed-off-by: Ian Romanick <[email protected]>
* mesa: added GL_MAX_SAMPLES query for GL_ARB_fboBrian Paul2009-01-221-0/+12
|
* mesa: fix GL_DEPTH_CLEAR_VALUE castingBrian Paul2009-01-061-3/+3
| | | | (cherry picked from commit d14d494dcda3d80ec2cf452551c680ffb432e306)
* mesa: fix cast/conversion for optional codeBrian2008-09-251-2/+2
|
* mesa: fix float->int mapping for glGetIntegerv(GL_DEPTH_CLEAR_VALUE)Brian Paul2008-09-251-2/+2
|
* mesa: Apply MSVC portability fixes from Alan Hourihane.José Fonseca2008-09-231-2/+2
|
* mesa: refactor: move various ENUM_TO_x macros into macros.hBrian Paul2008-09-211-4/+0
|
* mesa: add GL_POLYGON_OFFSET_POINT/LINE/FILL queries, remove ↵Brian Paul2008-07-161-36/+27
| | | | | | GL_TEXTURE_ENV_COLOR, GL_TEXTURE_ENV_MODE Issues found by Bob Ellison.
* add GL_READ_FRAMEBUFFER_BINDING_EXT case, regenerate get.c fileBrian2008-03-241-0/+60
|
* merge from masterBrian2007-03-211-39/+39
|\
| * Colortable re-org.Brian2007-03-161-9/+9
| | | | | | | | | | The pixel transfer path has three color table lookups. Use an array [3] to store that info, rather than separate variables.
| * Re-org of gl_pixel_attrib struct.Brian2007-03-141-30/+30
| | | | | | | | | | | | | | | | Reorder fields according to the order in which the pixel transfer operations take place. Improve comments. Move the pixel maps out of gl_pixel_attrib since they're not supposed to be pushed/popped by glPush/PopAttrib. New gl_pixelmap and gl_pixelmaps structs to contain the pixelmaps.
* | added GL_CURRENT_PROGRAMBrian2007-03-091-0/+12
| |
* | Merge branch 'origin' into glsl-compiler-1Brian2007-02-221-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/main/state.c src/mesa/shader/program.c src/mesa/shader/program.h src/mesa/shader/programopt.c src/mesa/shader/slang/slang_execute.c src/mesa/sources src/mesa/swrast/s_arbshader.c src/mesa/swrast/s_context.c src/mesa/swrast/s_span.c src/mesa/swrast/s_zoom.c src/mesa/tnl/t_context.c src/mesa/tnl/t_save_api.c src/mesa/tnl/t_vb_arbprogram.c src/mesa/tnl/t_vp_build.c src/mesa/tnl/t_vtx_eval.c
| * Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesa ↵Keith Whitwell2007-01-161-0/+9
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into vbo-0.2 Conflicts: src/mesa/array_cache/sources src/mesa/drivers/dri/i965/brw_context.c src/mesa/drivers/dri/i965/brw_draw.c src/mesa/drivers/dri/i965/brw_fallback.c src/mesa/drivers/dri/i965/brw_vs_emit.c src/mesa/drivers/dri/i965/brw_vs_tnl.c src/mesa/drivers/dri/mach64/mach64_context.c src/mesa/main/extensions.c src/mesa/main/getstring.c src/mesa/tnl/sources src/mesa/tnl/t_save_api.c src/mesa/tnl/t_save_playback.c src/mesa/tnl/t_vtx_api.c src/mesa/tnl/t_vtx_exec.c src/mesa/vbo/vbo_attrib.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_api.c src/mesa/vbo/vbo_save_draw.c
| * | merge current trunk into vbo branchAlan Hourihane2006-11-021-12/+12
| | |
| * | oops, get.c is autogeneratedKeith Whitwell2006-10-301-3/+3
| | |
| * | Move edgeflag into the VERT_ATTRIB_SEVEN slot. This means that ourKeith Whitwell2006-10-301-3/+3
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Lots of assorted changes for new GLSL compiler backend.Brian2006-12-151-3/+3
| |/ |/| | | | | New datatypes, constants, variables.
* | Added GL_STENCIL_BACK_WRITEMASKBrian Paul2006-11-021-0/+9
| |
* | Added a few new ctx->Const. fields for shader-related limits.Brian Paul2006-11-011-12/+12
|/
* whitespace clean-upBrian Paul2006-10-241-3/+3
|
* added GL_CURRENT_RASTER_SECONDARY_COLOR query (OpenGL 2.1)Brian Paul2006-09-131-0/+18
|
* Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick2006-06-121-153/+153
| | | | | | | 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.
* Add a new 'all' parameter to _mesa_get_compressed_formats() to indicate whetherBrian Paul2006-05-091-6/+6
| | | | | | | all formats or just those without restrictions/limitations should be returned. We want all when validating the internalFormat parameter to glCompressedTexImage2D but only want unrestricted formats when handling the GL_COMPRESSED_TEXTURE_FORMATS query.
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-251-3/+3
| | | | | | 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-3/+3
| | | | | | | | 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.
* Queries of GL_READ_BUFFER and GL_DRAW_BUFFER were still returning theBrian Paul2006-03-191-18/+18
| | | | | pre-GL_EXT_framebuffer_object state. Now return the read/draw state stored in the framebuffer objects.
* Use standard ARB names instead of vendor-specific NV names for the ↵Roland Scheidegger2006-03-031-183/+183
| | | | ARB/NV_vertex_program enums in common state handling code, and update comments accordingly. Change some slightly confusing code which gave the impression GL_VERTEX_PROGRAM_ARB and GL_VERTEX_PROGRAM_NV enums were different.
* Fix more enums defined not only by one extension when queried by glGet ↵Roland Scheidegger2006-03-021-24/+24
| | | | (GL_COLOR_SUM_EXT, GL_POINT_SPRITE_NV, GL_POINT_SPRITE_COORD_ORIGIN, GL_TRANSPOSE_CURRENT_MATRIX_ARB). Fix similar bugs (also those previously overseen dependant on NV/ARB_vertex_program) in glIsEnabled. Add missing GL_COLOR_SUM_EXT enum to glIsEnabled.
* Fix glGet with enums which are used not only in NV_vertex_program, but other ↵Roland Scheidegger2006-03-011-29/+48
| | | | extensions too (ARB_vertex_program, ARB_fragment_program, NV_fragment_program), if no support for NV_vertex_program is present. While here, fix return value if enum is used which is not supported by the exposed extensions (GL_INVALID_ENUM instead of GL_INVALID_VALUE). Fix some compile-time #ifs depending on NV_vertex/fragment_program which should also be dependant on ARB_vertex/fragment_program. See bug #6070
* Allow error checking to look for presence of either of two extensions.Brian Paul2006-02-281-480/+474
| | | | See bug 6070.
* Removed the GL_SGIX/SGIS_pixel_texture extensions. Same thing can beBrian Paul2005-12-141-60/+0
| | | | done with fragment programs nowadays.
* Re-org and clean-up of vertx/fragment program limits (instructions,Brian Paul2005-11-011-3/+3
| | | | | | | 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.