Commit graph

16050 commits

Author SHA1 Message Date
Brian Paul
03c0ce4c61 gallium: added tgsi_set_exec_mask() 2008-11-05 13:56:20 -07:00
Brian Paul
a137f03c56 gallium: added some sanity check assertions for constant buffer indexing 2008-11-05 13:55:56 -07:00
Brian Paul
528c860a58 mesa: remove extra \n from printf string 2008-11-05 09:33:48 -07:00
Brian Paul
2ff4636603 mesa: add Initialized field to gl_uniform struct, for debugging purposes only 2008-11-05 09:14:19 -07:00
Brian Paul
05a17f83b0 gallium: added some debug code (disabled) 2008-11-05 09:08:56 -07:00
Brian Paul
fc3b361191 gallium: disable some debug output 2008-11-05 09:08:56 -07:00
Jakob Bornecrantz
64a9908816 i915: Remove faulty assert 2008-11-05 16:49:48 +01:00
michal
5a0299875c draw: Implement TGSI_OPCODE_TRUNC. 2008-11-05 11:59:33 +01:00
michal
502974b345 tgsi: Implement OPCODE_TRUNC. 2008-11-05 11:59:33 +01:00
Brian Paul
f16f53ae3d mesa: fix float-valued GLSL vertex attribute variables
The swizzle mask for such variables wasn't set up properly.
2008-11-04 16:54:57 -07:00
Brian Paul
c7e98469fa mesa: silence warnings 2008-11-01 16:04:58 -06:00
Brian Paul
e9bc632d82 mesa: do scope replacement for while/for loops too
This fixes a function inlining bug involving vars declared inside loop bodies.
2008-11-01 16:03:03 -06:00
Brian Paul
58936b51af mesa: glsl tree print improvements 2008-11-01 16:02:56 -06:00
Brian Paul
90cdb8a4de mesa: fix assignment / parameter passing of sampler types 2008-11-01 16:02:32 -06:00
Brian Paul
b3cfcd326b mesa: additional debug flags for glsl debug/disassembly 2008-11-01 15:58:00 -06:00
Brian Paul
fa139f8826 mesa: fix some bugs with precision qualifier parsing 2008-10-31 17:54:18 -06:00
Brian Paul
40217db75a mesa: do scope replacement for variable initializers too 2008-10-31 17:51:25 -06:00
Brian Paul
851dbaa5b5 mesa: fix copy/paste error in GLSL error msg 2008-10-31 17:51:16 -06:00
Brian Paul
766cb95a45 gallium: new sanity assertions in mmAllocMem() 2008-10-29 17:02:56 -06:00
Brian Paul
7d7f0f1706 gallium: fix copy&paste bug 2008-10-29 17:02:30 -06:00
Brian Paul
8160cb4935 gallium: fix alignment parameter passed to u_mmAllocMem()
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.
2008-10-29 14:55:57 -06:00
Keith Whitwell
52e6fbb655 gallium: recognize DEBUG as well as DBG for debugging 2008-10-28 16:28:56 +00:00
Keith Whitwell
97e63437dc mesa: note that texcoords are generated by setup routines when pointsprite enabled 2008-10-20 13:04:20 +01:00
Brian Paul
6c6c2f1d23 gallium: add some checks for null surface pointers in state tracker
Fixes some segfaults in low memory situations.
2008-10-18 09:55:54 -06:00
Brian Paul
d422c1eb5c mesa: redraw upon keypress in trivial/tri.c 2008-10-17 13:37:50 -06:00
Brian Paul
8d6ef125ac gallium: fix mis-matched malloc/free vs. aligned malloc/free
Use aligned malloc/free for teximage data everywhere to be consistant.
The mismatch didn't make any difference when HAVE_POSIX_MEMALIGN was defined.
2008-10-17 13:37:50 -06:00
Keith Whitwell
055d986efe trivial: more vp tests 2008-10-14 14:18:36 +01:00
Keith Whitwell
5548a3072f vp: add simple vertex transform test 2008-10-14 14:18:32 +01:00
Keith Whitwell
568e96b453 mesa: modify fixed function vertex programs not to reference constant attributes 2008-10-14 14:18:08 +01:00
Brian Paul
6d4d51d647 mesa: new _mesa_set_vp_override() function for driver-override of vertex program
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-10 13:39:14 -06:00
Brian Paul
f7556fdd40 mesa: rasterizer state depends on ST_NEW_VERTEX_PROGRAM
Check for per-vertex point size must be done when vertex program changes.
2008-10-09 16:39:59 -06:00
Brian Paul
5c4bd76cb6 mesa: in _mesa_combine_programs() take new STATE_CURRENT_ATTRIB color into account
Commit 1680ef8696 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.
2008-10-08 14:02:24 -06:00
Stephane Marchesin
4f1dafaa82 Mesa: fix the case where there are no vertex attributes.
This is a backport of 8e8208d6db to gallium-0.1
2008-10-07 21:28:38 +02:00
Keith Whitwell
1ec78df1e7 trivial: add more vp tests 2008-10-07 19:14:18 +01:00
Brian Paul
239617fbe2 mesa: replace GLuint with GLbitfield to be clearer about usage
Also, fix up some comments to be doxygen style.
2008-10-07 11:22:47 -06:00
Keith Whitwell
23cc303994 draw: don't assume output buffer pointer is aligned 2008-10-07 16:44:24 +01:00
Keith Whitwell
4070dba28a mesa: update state after binding vertex list in dlist path 2008-10-07 16:33:53 +01:00
Keith Whitwell
a381c9e8b3 trivial: exercise vertprog sligtly 2008-10-07 16:33:52 +01:00
Keith Whitwell
6ff1cf5b82 mesa: protect against segfault in get_fp_input_mask() 2008-10-07 16:33:52 +01:00
Keith Whitwell
c48da7d78b draw: add switch for drivers to force vertex data passthrough 2008-10-07 16:33:52 +01:00
Brian Paul
23e62c94ee mesa: remove old assertion 2008-10-07 08:30:56 -06:00
Brian
f7ee3c9792 gallium: replace assertion with conditional/recovery code
The assertion failed when we ran out of exec memory.
Found with conform texcombine test.
2008-10-06 18:31:56 -06:00
Brian
d055b2c001 mesa: fix convolve/convolution mix-ups 2008-10-06 17:10:45 -06:00
Brian Paul
f362788eae mesa: add missing GLcontext param to _mesa_delete_query().
Fixes vtk crash and others.
2008-10-06 09:27:31 -06:00
Michal Krol
9b82701813 draw: Fix compiler errors on Windows. 2008-10-06 13:23:56 +02:00
Keith Whitwell
7053f8c902 rtasm: fix debug build 2008-10-06 11:54:22 +01:00
Keith Whitwell
53d4706c6c make draw's vertex_info struct smaller/quicker to compare with memcmp() 2008-10-06 11:49:42 +01:00
Keith Whitwell
0370d6b359 mesa: handle vertex program enabled case also in texenvprogram.c 2008-10-04 12:41:56 +01:00
Keith Whitwell
1680ef8696 mesa: avoid generating constant vertex attributes in fixedfunc programs
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-03 17:30:59 +01:00
Keith Whitwell
d63a36ef3a Mesa: short-circuit case when looking up the same program twice in cache 2008-10-03 16:50:26 +01:00