summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* gs: inject const int gl_VerticesIn at link timeZack Rusin2010-07-081-12/+10
|
* mesa: initial support for new GL 3.0 texture formatsBrian Paul2010-07-074-5/+85
|
* mesa: Always initialize transform feedback state.Chia-I Wu2010-07-062-24/+48
| | | | | | Assert ctx->Driver.NewTransformFeedback if the feature is enabled; Use the default callbacks otherwise. The rest of core mesa expects the state to be initialized.
* mesa: initial support for unnormalized integer texture formatsBrian Paul2010-07-059-133/+1140
| | | | As defined by GL_EXT_texture_integer.
* mesa: Fix OpenGL ES-only builds.Chia-I Wu2010-07-032-0/+4
| | | | | | | | Check FEATURE_GL in _mesa_init_shader_dispatch and _mesa_init_shader_uniform_dispatch. OpenGL ES can not and does not use _mesa_init_<...>_dispatch. This is supposed to be temporary. Ideally, a more flexible way for initializing dispatch tables should be developed.
* mesa: add geometry shader fields to gl_shader_programBrian Paul2010-07-023-52/+36
| | | | | | | These 3 fields are per shader-program. Copy them into the geometry program at link time for convenient access later. Also, add some missing glGetProgramiv() queries.
* mesa: fix texenv generation when num color bufs == 0Brian Paul2010-07-021-1/+4
| | | | | | | | | | | | Before, if there were no color buffers enabled (with glDrawBuffers(GL_NONE)) when the texenv program was generated, we'd emit writes to OUTPUT[1] but the OutputsWritten mask was 0. This inconsistency caused an assertion to fail later in the Mesa->TGSI translation. Fixes fd.o bug 28169 NOTE: this is a candidate for the 7.8 branch (and depends on commit b6b9b17d27c570cc99ae339e595cf2f63ca5e8d7).
* mesa: add missing error checks in _mesa_program_parameteri()Brian Paul2010-07-021-8/+45
|
* main: change some GS field types, added commentsBrian Paul2010-07-021-2/+3
|
* mesa: make the number of draw buffers part of the texenv program key stateBrian Paul2010-07-022-5/+9
| | | | | | | | All the state that effects the program should be in the key. This didn't help with bug 28169 but is a good fix anyway. NOTE: this is a low-priority candidate for the 7.8 branch. In practice, this issue might never be hit.
* mesa: extension flags and version testing for GL 3.x featuresBrian Paul2010-07-013-3/+102
|
* mesa: entrypoints for GL 3.1 primitive restartBrian Paul2010-07-012-0/+108
|
* mesa: free xform feedback hash tableBrian Paul2010-07-011-0/+1
|
* mesa: Use fpclassify for GL_OES_query_matrix on OpenBSD and NetBSD.Chia-I Wu2010-06-301-1/+2
| | | | | | | Patch from Brad Smith <[email protected]> The attached patch allows the GL_OES_query_matrix function to use the systems fpclassify() for OpenBSD and NetBSD.
* mesa: initial support for ARB_geometry_shader4Zack Rusin2010-06-2816-4082/+4548
| | | | | | laying down the foundation for everything and implementing most of the stuff. linking, gl_VerticesIn and multidimensional inputs are left.
* mesa: Remove unnecessary header.Vinson Lee2010-06-261-1/+0
|
* mesa: initialize extension string when context is first boundBrian Paul2010-06-252-2/+2
| | | | | | | | ...instead of waiting until glGetString(GL_EXTENSIONS) is called. This fixes a problem where the MESA_EXTENSION_OVERRIDE env var is ignored if the app never calls glGetString(GL_EXTENSIONS). NOTE: this is a candidate patch for the 7.8 branch.
* Merge branch 'shader-file-reorg'Brian Paul2010-06-2327-1295/+6770
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Move all GL entrypoint functions and files into src/mesa/main/ This includes the ARB vp/vp, NV vp/fp, ATI fragshader and GLSL bits that were in src/mesa/shader/ 2. Move src/mesa/shader/slang/ to src/mesa/slang/ to reduce the tree depth 3. Rename src/mesa/shader/ to src/mesa/program/ since all the remaining files are concerned with GPU programs. 4. Misc code refactoring. In particular, I got rid of most of the GLSL-related ctx->Driver hook functions. None of the drivers used them. Conflicts: src/mesa/drivers/dri/i965/brw_context.c
| * mesa: rename src/mesa/shader/ to src/mesa/program/Brian Paul2010-06-1015-43/+43
| |
| * mesa: move shader/slang/* sources to main/slang/*Brian Paul2010-06-101-2/+2
| | | | | | | | Reduce the source tree depth a bit.
| * mesa: move nvprogram.[ch] to main/Brian Paul2010-06-104-3/+1033
| |
| * mesa: move arbprogram.[ch] to main/Brian Paul2010-06-104-2/+1070
| |
| * mesa: move atifragshader.[ch] to main/Brian Paul2010-06-105-7/+950
| |
| * mesa: move uniforms.c to main/Brian Paul2010-06-103-1/+1493
| |
| * mesa: refactor shader api / object codeBrian Paul2010-06-1011-1260/+2198
| | | | | | | | | | Remove the unneeded ctx->Driver hooks for shader-related functions. Move state and API-related things into main/.
* | mesa: fix attachment error checking for glGetFramebufferAttachmentParameteriv()Brian Paul2010-06-221-1/+44
| | | | | | | | | | | | | | This is a follow-on to commit 80dfec3e53fd5b5c8c31fb16376c9910258c91b0. The valid attachments for glGetFramebufferAttachmentParameteriv() depends on whether we're querying the default FBO or a user-created FBO.
* | mesa: fix assertion failure for GL_ALPHA FBOsMarek Olšák2010-06-231-0/+1
| |
* | mesa: Allow querying the system FBO in GetFramebufferAttachmentParameterivKristian Høgsberg2010-06-151-6/+8
|/ | | | | | | | | | | | | | | | | | | | | | If the default framebuffer is bound to <target>, then <attachment> must be one of FRONT_LEFT, FRONT_RIGHT, BACK_LEFT, BACK_RIGHT, AUXi, DEPTH_BUFFER, or STENCIL_BUFFER, identifying a color buffer, the depth buffer, or the stencil buffer, and <pname> may be FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE or FRAMEBUFFER_ATTACHMENT_OBJECT_NAME. as well as these <pname> values FRAMEBUFFER_ATTACHMENT_RED_SIZE, FRAMEBUFFER_ATTACHMENT_GREEN_SIZE, FRAMEBUFFER_ATTACHMENT_BLUE_SIZE, FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE, FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE, FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE, FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE, or FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING. https://bugs.freedesktop.org/show_bug.cgi?id=28551
* mesa: Allow GL_ALPHA FBOs with ARB_framebuffer_object.Eric Anholt2010-06-102-3/+7
| | | | Drivers still reject them today, but cairo would like to use these.
* mesa: add ARB_texture_swizzle as alias of EXT_texture_swizzle, update relnotesMarek Olšák2010-06-051-0/+1
| | | | The specifications are identical.
* mesa: whitespace and 80 column wrappingBrian Paul2010-06-021-3/+12
|
* mesa: Fix excess initializers in get.c table.Chia-I Wu2010-05-311-2/+2
|
* Always define int32_t in compiler headers.Chia-I Wu2010-05-311-3/+1
| | | | eglplatform.h no longer defines int32_t.
* Update OpenGL ES headers.Chia-I Wu2010-05-311-3/+0
|
* mesa: Fix/add feature test to shader.c.Chia-I Wu2010-05-311-1/+3
| | | | | Those macros used by _mesa_init_shader_dispatch are not available when FEATURE_GL is not defined.
* mesa: fix incorrect GL_DEPTH_STENCIL_ATTACHMENT format checkBrian Paul2010-05-271-3/+3
| | | | | | | | | We want to check the incoming renderbuffer format, not the (potentially non-existant) current attachment. Fixes segfault w/ fbotexture -ds2. NOTE: this will be applied to the 7.8 branch too.
* Revert the 'make static' part of 962f92611216e304c95e7c089b38d58066236014Kristian Høgsberg2010-05-262-81/+307
| | | | | | | | The es1 and es2 dispath table initialization code is generated from the API XML files and we can't easily share the dispatch table code setup. Keep the _mesa_init_shader_dispatch() part of the patch, but roll back the static-ization of shader entrypoints so es1 and es2 dispatch initialization still works.
* mesa: move all vertex array functions into varray.cBrian Paul2010-05-252-0/+274
|
* mesa: added _mesa_VertexAttribIPointer()Brian Paul2010-05-252-0/+24
|
* mesa: new GL 3.0 VertexAttrib commandsBrian Paul2010-05-251-0/+174
| | | | Still need to plug in API dispatch...
* mesa: make a bunch of shader API functions staticBrian Paul2010-05-253-377/+173
|
* mesa: display list support for uint uniformsBrian Paul2010-05-251-1/+199
| | | | Still need to plug into dispatcher...
* mesa: unsigned int uniform functions (GL3)Brian Paul2010-05-252-0/+96
|
* mesa: Reenable check for GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXTKristian Høgsberg2010-05-241-21/+23
| | | | | | | | The check was disabled when FEATURE_OES_framebuffer_object was enabled, since that used to mean we weren't implementing regular OpenGL semantics. Now that we can compile in support for multiple APIs, change the #ifdef to compile the check in when FEATURE_GL is enabled and enable the check for contexts that implement OpenGL at runtime.
* mesa: Handle FEATURE_es2_glsl differences at runtime tooKristian Høgsberg2010-05-241-12/+22
| | | | | | | Now that we can support different APIs at runtime, we need to check the context for the API we're currently providing as well. https://bugs.freedesktop.org/show_bug.cgi?id=28194
* mesa: fix warnings about missing initializers in get.c tableBrian Paul2010-05-211-326/+330
|
* Add __DragonFly__ in querymatrix for fpclassify()David Shao2010-05-211-1/+1
| | | | Signed-off-by: Brian Paul <[email protected]>
* fpclassify is available on C99-compliant Solaris releases tooAlan Coopersmith2010-05-191-1/+2
| | | | | Signed-off-by: Alan Coopersmith <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* mesa: Remove unnecessary header.Vinson Lee2010-05-151-2/+0
|
* mesa: silence void * / func * conversion warningsBrian Paul2010-05-141-5/+10
|