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
Keith Whitwell
fa1b533012
mesa: add new internal state for tracking current vertex attribs
2008-10-03 16:49:52 +01:00
Keith Whitwell
0e008d3797
mesa: add missing state dependencies for various tracked constants
2008-10-03 13:53:07 +01:00
Keith Whitwell
6280e33570
mesa: shrink texenvprogram state key struct
2008-10-03 13:51:56 +01:00
Keith Whitwell
6965532e14
rtasm: add sse_movntps
2008-10-03 13:50:34 +01:00
Keith Whitwell
918a444913
draw: modify prefetching slightly
2008-10-02 12:59:15 +01:00
Keith Whitwell
af9cfea9cc
draw: don't keep refetching constant inputs
2008-10-02 12:59:15 +01:00
Keith Whitwell
102daee1b8
rtasm: add prefetch instructions
2008-10-02 12:59:14 +01:00
Keith Whitwell
dd7e5a4980
draw: add streamlined paths for fetching linear verts
2008-10-02 12:59:14 +01:00
Michal Krol
266c5f5ccb
mesa: Fix compiler warnings on Windows.
2008-10-01 19:36:04 +02:00
Stephane Marchesin
a6ff215777
Gallivm: add slt. glxgears should be running, except it isn't.
2008-10-01 00:00:58 +02:00
Stephane Marchesin
4ae161e940
Gallivm: port to llvm 2.4.
2008-09-30 20:50:49 +02:00
Stephane Marchesin
7379d0ef8f
Gallivm: fix off-by-one.
2008-09-28 23:18:55 +02:00
Stephane Marchesin
6dacc942e1
Gallivm: need to link with libstdc++ for llvm.
2008-09-28 21:45:48 +02:00
Stephane Marchesin
a0a06cbc5b
Gallivm: more instructions.
2008-09-28 19:48:26 +02:00
Stephane Marchesin
ab74b8e354
Gallivm: make it compile again, add some opcodes.
2008-09-28 18:33:23 +02:00
Brian Paul
8fd329d048
mesa: fix temp register allocation problems.
...
Complex texcombine modes were running out of registers (>32 registers for 8 tex units).
2008-09-26 20:51:13 -06:00
Brian Paul
7944efffff
egl: check for null ptr/name
2008-09-26 20:51:13 -06:00
Brian Paul
cce2ec2754
egl: remove space after -L flag
2008-09-26 20:51:13 -06:00
Brian Paul
13a8c18d3d
gallium: rename tgsi_translate_mesa_program() to st_translate_mesa_program()
2008-09-26 07:25:36 -06:00
Brian Paul
1ef90b3f9a
mesa: add some braces
2008-09-26 07:25:36 -06:00
Brian Paul
092748990f
mesa: fix/simplify initialization of vertex/fragment program limits
...
Defaults for program length, num ALU instructions, num indirections, etc.
basically indicate no limit for software rendering. Driver should override
as needed.
2008-09-25 19:22:29 -06:00
Brian Paul
3f99f501db
mesa: increase MAX_INSTRUCTIONS
2008-09-25 18:40:16 -06:00
Brian Paul
006fb63818
mesa: fix swizzle failure, fix typo
2008-09-25 18:27:22 -06:00
Brian Paul
1ca512c643
mesa: fix default buffer object access value
2008-09-25 11:46:27 -06:00
Michal Krol
8701e5f702
mesa: Fix compiler error.
2008-09-19 19:11:37 +02:00
Brian Paul
0576e837f1
mesa: Fix arb parse constants
2008-09-19 13:04:52 +02:00
Jakob Bornecrantz
866a2c3ccb
mesa: Update ignores a bit
2008-09-19 12:43:47 +02:00
Brian Paul
a9004cc79c
destroy window on exit
2008-09-18 15:37:13 -06:00
Brian Paul
8d249ca620
gallium: if we run out of memory in st_TexImage, flush and try again.
...
If the driver buffers a scene flushing should release old textures and
make space for new ones. Fixes problem with texdown.c test.
2008-09-18 15:37:13 -06:00
Jakob Bornecrantz
0b8e19ffc5
tgsi: Build tgsi_text with make
2008-09-18 16:29:11 +02:00