aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* gallium: fix glBitmap color bugBrian Paul2008-11-261-6/+18
| | | | | | By time we get around to rendering the cached bitmap, the current color may have changed. Need to make sure we load the constant slot with the cached color.
* gallium: replace 2 with PIPE_SHADER_TYPESBrian Paul2008-11-261-1/+1
|
* gallium: fix inverted raster pos when drawing into FBOBrian Paul2008-11-241-1/+4
|
* mesa: Don't call fence_finish with a null fence.José Fonseca2008-11-241-2/+4
|
* mesa: restore the negate flag of dots in build_lighting.Xiang, Haihao2008-11-111-0/+3
| | | | | Dots is re-used if more than one light is enabled. Previously the negate flag of dots may affect next light.
* dri: alloc __DRIscreen object with calloc()Brian Paul2008-11-101-1/+1
| | | | | Conflicts: src/mesa/drivers/dri/common/dri_util.c
* mesa: fix logic error in GLSL linker when looking for main() shadersBrian Paul2008-11-101-5/+10
|
* Mesa: fix number of buffers in st_draw_vbo().Pekka Paalanen2008-11-101-1/+1
| | | | | | | The clean-up call to pipe->set_vertex_buffers() should use the same number of buffers as the first call. Signed-off-by: Pekka Paalanen <[email protected]>
* mesa: use _bfc0 instead of _col0 when building back face lighting.Brian Paul2008-11-071-3/+2
| | | | cherry-picked from master: 4550b0562d5b59890fccb0e7eb0dbef967d1ccf9
* mesa: update the shader programs->TexturesUsed array at link timeBrian Paul2008-11-063-4/+26
| | | | | | | | If an application never calls glUniform() to set sampler variable values they'll remain 0 (the default value/unit). Now call _mesa_update_shader_textures_used() at link time in case glUniform() is never called. program->TextureUsed[] will then be correct for state validation.
* gallium: added st_print_shaders() function to help w/ debuggingBrian Paul2008-11-062-0/+20
|
* gallium: added check for degenerate drawing callsBrian Paul2008-11-051-0/+3
|
* gallium: if VERBOSE_GLSL flag is set, check for non-initialized uniforms at ↵Brian Paul2008-11-051-0/+27
| | | | | | | draw time This will warn the user that the shader being run may be using uninitialized uniform variables.
* mesa: fix a GLSL array indexing codegen bugBrian Paul2008-11-052-8/+101
| | | | Expressions like array[i] + array[j] didn't work properly before.
* mesa: remove extra \n from printf stringBrian Paul2008-11-051-1/+1
|
* mesa: add Initialized field to gl_uniform struct, for debugging purposes onlyBrian Paul2008-11-053-7/+16
|
* mesa: fix float-valued GLSL vertex attribute variablesBrian Paul2008-11-041-8/+8
| | | | The swizzle mask for such variables wasn't set up properly.
* mesa: silence warningsBrian Paul2008-11-011-3/+3
|
* mesa: do scope replacement for while/for loops tooBrian Paul2008-11-011-3/+7
| | | | This fixes a function inlining bug involving vars declared inside loop bodies.
* mesa: glsl tree print improvementsBrian Paul2008-11-011-1/+17
|
* mesa: fix assignment / parameter passing of sampler typesBrian Paul2008-11-013-4/+29
|
* mesa: additional debug flags for glsl debug/disassemblyBrian Paul2008-11-014-53/+53
|
* mesa: fix some bugs with precision qualifier parsingBrian Paul2008-10-319-2379/+2456
|
* mesa: do scope replacement for variable initializers tooBrian Paul2008-10-311-0/+11
|
* mesa: fix copy/paste error in GLSL error msgBrian Paul2008-10-311-1/+1
|
* mesa: note that texcoords are generated by setup routines when pointsprite ↵Keith Whitwell2008-10-201-0/+12
| | | | enabled
* gallium: add some checks for null surface pointers in state trackerBrian Paul2008-10-183-12/+25
| | | | Fixes some segfaults in low memory situations.
* gallium: fix mis-matched malloc/free vs. aligned malloc/freeBrian Paul2008-10-171-2/+2
| | | | | Use aligned malloc/free for teximage data everywhere to be consistant. The mismatch didn't make any difference when HAVE_POSIX_MEMALIGN was defined.
* mesa: modify fixed function vertex programs not to reference constant attributesKeith Whitwell2008-10-142-30/+41
|
* mesa: new _mesa_set_vp_override() function for driver-override of vertex programBrian Paul2008-10-105-11/+57
| | | | | | | | 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.
* mesa: rasterizer state depends on ST_NEW_VERTEX_PROGRAMBrian Paul2008-10-091-1/+4
| | | | Check for per-vertex point size must be done when vertex program changes.
* mesa: in _mesa_combine_programs() take new STATE_CURRENT_ATTRIB color into ↵Brian Paul2008-10-081-5/+36
| | | | | | | | | | account Commit 1680ef869625dc1fe9cf481b180382a34e0738e7 changed the texenv program to get color from a state register instead of a constant-valued vertex attribute. This broke program concatenation (so glDraw/CopyPixels broke). Now check if the second program get's color from a constant register and handle that case appropriately.
* Mesa: fix the case where there are no vertex attributes.Stephane Marchesin2008-10-071-0/+2
| | | | This is a backport of 8e8208d6db8b764568539784a6473d545dec2265 to gallium-0.1
* mesa: replace GLuint with GLbitfield to be clearer about usageBrian Paul2008-10-077-20/+22
| | | | Also, fix up some comments to be doxygen style.
* mesa: update state after binding vertex list in dlist pathKeith Whitwell2008-10-071-0/+5
|
* mesa: protect against segfault in get_fp_input_mask()Keith Whitwell2008-10-071-1/+4
|
* mesa: remove old assertionBrian Paul2008-10-071-2/+0
|
* mesa: fix convolve/convolution mix-upsBrian2008-10-063-5/+5
|
* mesa: add missing GLcontext param to _mesa_delete_query().Brian Paul2008-10-062-2/+2
| | | | Fixes vtk crash and others.
* mesa: handle vertex program enabled case also in texenvprogram.cKeith Whitwell2008-10-041-5/+4
|
* mesa: avoid generating constant vertex attributes in fixedfunc programsKeith Whitwell2008-10-037-13/+177
| | | | | | | | | | | | 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.
* Mesa: short-circuit case when looking up the same program twice in cacheKeith Whitwell2008-10-032-9/+22
|
* mesa: add new internal state for tracking current vertex attribsKeith Whitwell2008-10-036-26/+56
|
* mesa: add missing state dependencies for various tracked constantsKeith Whitwell2008-10-031-0/+20
|
* mesa: shrink texenvprogram state key structKeith Whitwell2008-10-031-5/+7
|
* mesa: Fix compiler warnings on Windows.Michal Krol2008-10-012-2/+2
|
* mesa: fix temp register allocation problems.Brian Paul2008-09-261-0/+15
| | | | Complex texcombine modes were running out of registers (>32 registers for 8 tex units).
* gallium: rename tgsi_translate_mesa_program() to st_translate_mesa_program()Brian Paul2008-09-263-4/+4
|
* mesa: add some bracesBrian Paul2008-09-261-1/+2
|
* mesa: fix/simplify initialization of vertex/fragment program limitsBrian Paul2008-09-252-30/+27
| | | | | | Defaults for program length, num ALU instructions, num indirections, etc. basically indicate no limit for software rendering. Driver should override as needed.