Commit graph

18118 commits

Author SHA1 Message Date
José Fonseca
984a7c4e9c gallium: Fix doxygen comments. 2008-09-19 10:40:42 +09:00
José Fonseca
5f88d871ea softpipe: Obey const qualifier. 2008-09-19 10:21:52 +09:00
Robert Ellison
4485ac87c2 CELL: mark several transient files as .gitignore
progs/demos: added new demo "fbo_firecube"

progs/glsl: added new demo "pointcoord"

src/gallium/drivers/cell/spu: added the g3d_spu executable, a Cell SPU
executable file, which seems to be occasionally built as part of the
cell driver

src/glu/sgi: added "exptmp", a byproduct of the "mklib" process that
sometimes gets deleted and sometimes not.
2008-09-18 16:36:37 -06:00
Jonathan White
698bffb884 cell: Added CMP instruction 2008-09-18 14:49:34 -06:00
Keith Whitwell
a8d1521f30 Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts:

	src/mesa/shader/slang/slang_link.c
2008-09-18 19:07:33 +01:00
Keith Whitwell
89ab66448e Merge commit 'origin/master' into gallium-0.2
Conflicts:

	progs/trivial/Makefile
	src/mesa/glapi/glthread.c
2008-09-18 19:03:02 +01:00
Keith Whitwell
1074e8e4e4 mesa: bring sources into line with sources.mak, but omit gallium code 2008-09-18 18:52:14 +01:00
George Sapountzis
841205e365 dri/swrast: fix swapBuffers after dri2 2008-09-18 18:52:14 +01:00
Xiang, Haihao
3bb8646829 i965: Add support for G41 chipset which is another 4 series. 2008-09-18 18:52:13 +01:00
Jonathan White
15fceac040 cell: Fix bug with complement logic for SGE and SLE 2008-09-18 11:11:49 -06:00
Jonathan White
3d2449247a cell: Added SGE and SLE instructions to dispatch function 2008-09-18 10:37:45 -06:00
Jonathan White
c868a1c32d cell: Added SGE and SLE instructions 2008-09-18 10:36:16 -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
Jakob Bornecrantz
fa7529335c progs/fp: Add a bit of local variable testing to fp-tri 2008-09-18 14:14:56 +02:00
Robert Ellison
f8bba34d4e CELL: finish fragment ops blending (except for unusual D3D modes)
- Added new "macro" functions spe_float_min() and spe_float_max()
  to rtasm_ppc_spe.{ch}.  These emit instructions that cause
  the minimum or maximum of each element in a vector of floats
  to be saved in the destination register.

- Major changes to cell_gen_fragment.c to implement all the blending
  modes (except for the mysterious D3D-based PIPE_BLENDFACTOR_SRC1_COLOR,
  PIPE_BLENDFACTOR_SRC1_ALPHA, PIPE_BLENDFACTOR_INV_SRC1_COLOR, and
  PIPE_BLENDFACTOR_INV_SRC1_ALPHA).

- Some revamping of code in cell_gen_fragment.c: use the new spe_float_min()
  and spe_float_max() functions (instead of expanding these calculations
  inline via macros); create and use an inline utility function for handling
  "optional" register allocation (for the {1,1,1,1} vector, and the
  blend color vectors) instead of expanding with macros; use the Float
  Multiply and Subtract (fnms) instruction to simplify and optimize many
  blending calculations.
2008-09-18 01:29:41 -06: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
3b3d34d637 egl: print multisample info 2008-09-17 15:29:59 -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
5e530d8384 mesa: fix bug in previous changes to _slang_resolve_attributes() 2008-09-17 09:13:55 -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
f631093ce7 cell: example of doing fs/fm sequence with fnms in blending 2008-09-17 08:17:02 -06:00
Brian Paul
05aeb92a09 cell: dump generated code if CELL_DEBUG=asm 2008-09-17 08:14:09 -06:00
Robert Ellison
858ced0515 CELL: fleshing out the blending fragment ops
- Added two new debug flags (to be used with the CELL_DEBUG environment
  variable).  The first, "CELL_DEBUG=fragops", activates SPE fragment
  ops debug messages.  The second, "CELL_DEBUG=fragopfallback", will
  eventually be used to disable the use of generated SPE code for
  fragment ops in favor of the default fallback reference routine.
  (During development, though, the parity of this flag is reversed:
  all users will get the reference code *unless* CELL_DEBUG=fragopfallback
  is set.  This will prevent hiccups in code generation from affecting
  the other developers.)

- Formalized debug message usage and macros in spu/spu_main.c.

- Added lots of new code to ppu/cell_gen_fragment.c to extend the
  number of supported source RGB factors from 4 to 15, and to
  complete the list of supported blend equations.

More coming, to complete the source and destination RGB and alpha
factors, and to complete the rest of the fragment operations...
2008-09-17 02:32:43 -06:00
Eric Anholt
904f31a624 intel: Destroy bufmgr in screen destroy, not context.
Caused server crashes on second context creation since
7e0bbdcf03.

Bug #17600.
2008-09-16 17:02:41 -07:00
Brian Paul
27341a97a1 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 16:28:36 -06:00
Jonathan White
a3a797ffa8 cell: Added RCP and RSQ instruction support. 2008-09-16 16:00:42 -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
Jonathan White
fbbaad14a6 cell: Added DP3 and DP4 instructions 2008-09-16 13:57:29 -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
d43951192b mesa: fix display list regression (check if save->prim_count > 0 in vbo_save_EndList()) 2008-09-16 13:23:01 -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
Michal Krol
2010cd7810 st: hash-warning not recognised on Windows. 2008-09-16 19:28:16 +02:00
Jonathan White
dd75ca89eb cell: Optimized LERP with fma
Please enter the commit message for your changes.
2008-09-16 09:42:28 -06:00
Jonathan White
2c54a6ee79 cell: Fixed MIN/MAX algorithm 2008-09-16 09:36:47 -06:00