summaryrefslogtreecommitdiff
path: root/src/mesa/main
AgeCommit message (Collapse)Author
2009-03-03mesa: add MapBufferRange driver callbacksKeith Whitwell
Will be needed in coming GL extensions (GL_map_buffer_range, GL 3.0). Will be used by the vbo module to avoid reallocating vbo's at each draw primitive call.
2009-03-03mesa: Add BeginVertices driver callKeith Whitwell
Provides notification to the VBO modules prior to the first immediate call. Pairs with FlushVertices()
2009-01-07mesa: Add _mesa_snprintf.José Fonseca
On Windows snprintf is renamed as _snprintf.
2009-01-06add GL_READ_FRAMEBUFFER_BINDING_EXT case, regenerate get.c fileBrian Paul
(cherry picked from commit 816fbeaa813e5cdca314a39677c74c8dc700d35a) Conflicts: src/mesa/main/get.c
2009-01-06mesa: fix GL_DEPTH_CLEAR_VALUE castingBrian Paul
2009-01-06mesa: fix cast/conversion for optional codeBrian
(cherry picked from commit 1e3a44fab068f00378613456036716d0c3772969)
2009-01-06mesa: fix float->int mapping for glGetIntegerv(GL_DEPTH_CLEAR_VALUE)Brian Paul
(cherry picked from commit 8124faf89d638285d8e9aa93adc3ca7f4ee729f3) Conflicts: src/mesa/main/get.c
2009-01-06mesa: Use explicit casts when precision is lost.José Fonseca
Silences MSVC.
2009-01-06mesa: fix conditional in save_Lightfv(), bug 18838Brian
(cherry picked from commit 1e2f57425153d73646fde7c91c16aa5559491556)
2009-01-06mesa: add gl_program::Input/OutputFlags[] arrayBrian Paul
These arrays will indicate per-input or per-output options for vertex/fragment programs such as centroid-sampling and invariance. (cherry picked from commit b730d0d3e9b202b17a0815cb820fc9905f35cb98)
2008-12-18mesa: Pass the context to query object delete cb to avoid null dereference.Eric Anholt
2008-12-17mesa: choose GLSL vertex shader over ARB/internal vertex program in ↵Brian Paul
get_fp_input_mask() This is a work-around the for the fact that we do fragment shader state validation before vertex shader validation (see comments in state.c) so in get_fp_input_mask() we can't rely on ctx->VertexProgram._Current being up to date yet. This fixes a glean glsl1 test failure.
2008-12-17mesa: fix fixed-function test in get_fp_input_mask() - again.Brian Paul
The problem we're solving only occured when there was a user-defined vertex shader but no fragment shader. Check for that case now. Fixes glean api2 vertex array failure.
2008-12-17mesa: add missing cases for texture array targetsBrian Paul
2008-12-17Revert "mesa: fix vertex program test in get_fp_input_mask()"Brian Paul
This reverts commit cdaaf8e107010624bed4abdf9553c0ef63c8b708.
2008-12-17mesa: fix vertex program test in get_fp_input_mask()Brian Paul
We were accidentally using the fixed-function logic when a vertex shader was being used.
2008-11-11mesa: restore the negate flag of dots in build_lighting.Xiang, Haihao
Dots is re-used if more than one light is enabled. Previously the negate flag of dots may affect next light.
2008-11-07mesa: use _bfc0 instead of _col0 when building back face lighting.Brian Paul
cherry-picked from master: 4550b0562d5b59890fccb0e7eb0dbef967d1ccf9
2008-11-01mesa: additional debug flags for glsl debug/disassemblyBrian Paul
2008-10-20mesa: note that texcoords are generated by setup routines when pointsprite ↵Keith Whitwell
enabled
2008-10-14mesa: modify fixed function vertex programs not to reference constant attributesKeith Whitwell
2008-10-10mesa: new _mesa_set_vp_override() function for driver-override of vertex programBrian Paul
Patch provide by Keith. Used in state tracker by DrawPixels to indicate that the state tracker (driver) is using its own vertex program. This prevents the texenvprogram code from replacing conventional shader inputs with state vars. Fixes glDraw/CopyPixels regressions.
2008-10-07mesa: replace GLuint with GLbitfield to be clearer about usageBrian Paul
Also, fix up some comments to be doxygen style.
2008-10-07mesa: protect against segfault in get_fp_input_mask()Keith Whitwell
2008-10-06mesa: fix convolve/convolution mix-upsBrian
2008-10-06mesa: add missing GLcontext param to _mesa_delete_query().Brian Paul
Fixes vtk crash and others.
2008-10-04mesa: handle vertex program enabled case also in texenvprogram.cKeith Whitwell
2008-10-03mesa: avoid generating constant vertex attributes in fixedfunc programsKeith Whitwell
Keep track of enabled/active vertex attributes. Keep track of potential vertex program outputs. When generating fragment program, replace references to fragment attributes which are effectively non-varying and non-computed passthrough attributes with references to the new CURRENT_ATTRIB tracked state value. Only downside is slight ugliness in VBO code where we need to validate state twice in succession.
2008-10-03mesa: add new internal state for tracking current vertex attribsKeith Whitwell
2008-10-03mesa: shrink texenvprogram state key structKeith Whitwell
2008-09-26mesa: fix temp register allocation problems.Brian Paul
Complex texcombine modes were running out of registers (>32 registers for 8 tex units).
2008-09-25mesa: fix/simplify initialization of vertex/fragment program limitsBrian Paul
Defaults for program length, num ALU instructions, num indirections, etc. basically indicate no limit for software rendering. Driver should override as needed.
2008-09-25mesa: increase MAX_INSTRUCTIONSBrian Paul
2008-09-25mesa: fix swizzle failure, fix typoBrian Paul
2008-09-25mesa: fix default buffer object access valueBrian Paul
2008-09-17mesa: new gl_fragment_program fields indicating use of fog, front-facing, ↵Brian Paul
point coord
2008-09-16mesa: rework GLSL vertex attribute bindingBrian Paul
Calls to glBindAttribLocation() should not take effect until the next time that glLinkProgram() is called. gl_shader_program::Attributes now just contains user-defined bindings. gl_shader_program::VertexProgram->Attributes contains the actual/final bindings.
2008-09-15mesa: fix MSAA enable state in update_multisample()Brian Paul
2008-09-15mesa: remove some assertions that are invalid during context tear-downBrian Paul
2008-09-15mesa: get another class of degenerate dlists workingKeith Whitwell
Primitive begin in one dlist, end in another.
2008-09-05mesa: replace MALLOC w/ CALLOC to fix memory error in glPushClientAttrib()Brian Paul
2008-09-04mesa: improved gl_buffer_object reference countingBrian Paul
Use new _mesa_reference_buffer_object() function wherever possible. Fixes buffer object/display list crash reported in ParaView.
2008-09-04mesa: Silence compiler warnings on Windows.Michal Krol
2008-09-04mesa: merge stencil values into depth values for MESA_FORMAT_S8_Z24Xiang, Haihao
Cherry-picked from master
2008-09-02fix BUFFER_DEPTH/BUFFER_ACCUM mix-upBrian Paul
2008-09-01mesa: use CALLOC instead of MALLOC to fix valgrind warningBrian Paul
2008-08-28mesa: remove debug codeBrian Paul
2008-08-28mesa: dynamically grow the fixed function vertex program as neededBrian Paul
Don't use a fixed-size array. Saves memory in most cases and avoids potential overflow for long programs.
2008-08-28mesa: bump MAX_INSN to 300Brian Paul
2008-08-19mesa: allow for extra per-context initBrian Paul