Commit graph

13612 commits

Author SHA1 Message Date
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
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
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
José Fonseca
eb5c288df4 util: A few more memory debugging checks. 2008-09-18 23:23:02 +09:00
José Fonseca
451888ee8f util: Add missing p_debug.h include. 2008-09-18 23:23:02 +09:00
Brian Paul
f68d2a0feb gallium: fix surface object memory leak in cso module 2008-09-18 08:10:58 -06:00
Jakob Bornecrantz
5e1ef85dc4 tgsi: Make tgsi dumps look more like mesa shader dumps. 2008-09-18 14:48:45 +02:00
José Fonseca
1672e8e059 pipebuffer: New callback to flush all temporary-held buffers.
Used mostly to aid debugging memory issues or to clean up resources when
the drivers are long lived.
2008-09-18 12:26:19 +09:00
Brian Paul
a06d38a74e gallium: fix wide point / point coord semantic info (generic, not fog) 2008-09-17 16:51:53 -06:00
Brian Paul
4ee8d1ad67 gallium: fix fog vs. pointcoord attribute handling in mesa->TGSI conversion 2008-09-17 16:49:26 -06:00
Brian Paul
d7a7b0a10d mesa: new gl_fragment_program fields indicating use of fog, front-facing, point coord 2008-09-17 16:48:13 -06:00
Brian Paul
1a820f52f6 gallium: clean-up/fix msaa override in state tracker 2008-09-17 14:32:33 -06:00
Brian Paul
e6a120fefe gallium: fix tgsi sanity checker with respect to END.
Subroutine code may be found after the END instruction so it's not always
the last instruction.
At least check for presence of exactly one END instruction though.
2008-09-17 13:14:57 -06:00
Brian Paul
133693ebe8 mesa: update program->NumAddressRegs field in _slang_update_inputs_outputs() 2008-09-17 13:13:02 -06:00
Brian Paul
095ca0acd8 gallium: include prog_print.h to silence warning 2008-09-17 10:25:18 -06:00
Brian Paul
66682651b6 gallium: need to finish, not flush, in st_copy_texsubimage() 2008-09-17 10:23:00 -06:00
Brian Paul
63b915d743 gallium: new assertion on surface->texture 2008-09-17 10:23:00 -06:00
Jakob Bornecrantz
ec8398d62f tgsi: Add a ugly fix for CONSTANT problems 2008-09-17 18:13:17 +02:00
Jakob Bornecrantz
f8a5cb8cb2 tgsi: More debug printing on sanity check error 2008-09-17 18:13:17 +02:00
Brian Paul
f10e7f0d28 gallium: fix lack of surface reference counting in cso_set/save/restore_framebuffer()
Fixes asst problems with FBO / render to texture.
2008-09-17 09:47:51 -06:00
Brian Paul
0d20c88f62 mesa: fix bug in previous changes to _slang_resolve_attributes() 2008-09-17 09:05:04 -06:00
Brian Paul
e53296c928 mesa: rework GLSL vertex attribute binding
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-16 15:50:44 -06:00
Brian Paul
37607aeaf8 gallium: fix glTexImage(width=height=depth=0) case
Free old teximage/level data, then stop.
2008-09-16 13:38:10 -06:00
Brian Paul
39cb5b9f73 mesa: fix display list regression (check if save->prim_count > 0 in vbo_save_EndList()) 2008-09-16 13:31:48 -06:00
Brian Paul
8cdab20c9a gallium: fix info entries for KIL, KILP
KIL takes 1 src register.  KILP uses no registers (uses cond codes).
2008-09-16 12:52:19 -06:00
Brian Paul
ea9568dfbe mesa: fix bug in get_uniform_rows_cols(): sometimes returned too many rows 2008-09-16 08:55:54 -06:00