summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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: debug code to print vertex array data (disabled)Brian Paul2008-11-061-0/+89
|
* softpipe: debug code (disabled)Brian Paul2008-11-061-0/+8
|
* gallium: check execution mask in indirect register loadsBrian2008-11-051-0/+23
| | | | | Zero-out the index for disabled execution channels to avoid using potential garbage values (thus avoiding bad array indexing).
* gallium: don't range check tgsi register index for indirect accessesBrian2008-11-051-5/+9
| | | | Fixes progs/vp/arl.txt test.
* 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.
* gallium: call tgsi_set_exec_mask() and use exec mask in SSE ARL codeBrian Paul2008-11-054-4/+54
| | | | | This prevents vertex shaders from referencing invalid memory locations when the shader is operating on less than four vertices or fragments.
* gallium: added tgsi_set_exec_mask()Brian Paul2008-11-051-0/+25
|
* gallium: added some sanity check assertions for constant buffer indexingBrian Paul2008-11-051-0/+4
|
* 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
|
* gallium: added some debug code (disabled)Brian Paul2008-11-051-0/+24
|
* gallium: disable some debug outputBrian Paul2008-11-051-1/+2
|
* i915: Remove faulty assertJakob Bornecrantz2008-11-051-1/+0
|
* draw: Implement TGSI_OPCODE_TRUNC.michal2008-11-051-0/+14
|
* tgsi: Implement OPCODE_TRUNC.michal2008-11-051-1/+17
|
* 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
|
* gallium: new sanity assertions in mmAllocMem()Brian Paul2008-10-291-0/+4
|
* gallium: fix copy&paste bugBrian Paul2008-10-291-1/+1
|
* gallium: fix alignment parameter passed to u_mmAllocMem()Brian Paul2008-10-291-2/+2
| | | | | | Was 32, now 5. The param is expressed as a power of two exponent. The net effect is that the alignment was a no-op on X86 but on PPC we always got the same memory address everytime rtasm_exec_malloc() was called.
* gallium: recognize DEBUG as well as DBG for debuggingKeith Whitwell2008-10-281-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.
* draw: don't assume output buffer pointer is alignedKeith Whitwell2008-10-071-1/+1
|
* 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
|
* draw: add switch for drivers to force vertex data passthroughKeith Whitwell2008-10-074-19/+33
|
* mesa: remove old assertionBrian Paul2008-10-071-2/+0
|
* gallium: replace assertion with conditional/recovery codeBrian2008-10-061-1/+5
| | | | | The assertion failed when we ran out of exec memory. Found with conform texcombine test.
* 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.
* draw: Fix compiler errors on Windows.Michal Krol2008-10-061-3/+3
|