Commit graph

18641 commits

Author SHA1 Message Date
Brian Paul
02c9009bb8 mesa: updated status in cell.html 2008-10-23 10:47:17 -06:00
Michel Dänzer
6b69e3c717 scons: ppc support. 2008-10-23 10:28:48 +02:00
Michel Dänzer
06c43beee0 scons: Don't hardcode any drivers for the xlib winsys, just pick suitable ones. 2008-10-23 10:27:39 +02:00
Michel Dänzer
86099bcd9c gallium: Fix typo, PPC_FEATURE_HAS_ALTIVEC not PPC_FEATURES_... 2008-10-23 10:26:19 +02:00
Brian Paul
0ac9945781 gallium: PPC: clamp y to [-128,128] for LIT 2008-10-22 17:29:37 -06:00
Brian Paul
f8ab4feb75 gallium: remove ppc_vload_float(), rename ppc_vecmove() -> ppc_vmove(). 2008-10-22 17:21:43 -06:00
Brian Paul
abbbe876ac gallium: new PPC built-in constants array
It's hard to form PPC vector immediates so load them from an array.
2008-10-22 17:19:12 -06:00
Brian Paul
3026616c48 gallium: added ppc_vzero() 2008-10-22 17:17:11 -06:00
Brian Paul
ae81aeb128 gallium: GALLIUM_NOPPC debug var to disable PPC codegen 2008-10-22 16:58:05 -06:00
Brian Paul
9e3ee82305 gallium: PPC LIT instruction (not quite complete yet) 2008-10-22 16:57:22 -06:00
Brian Paul
77160cd97b gallium: var renaming in tgsi_ppc.c 2008-10-22 15:34:16 -06:00
Brian Paul
519c2dbed5 gallium: remove SSE remnants from tgsi_ppc.c 2008-10-22 15:30:00 -06:00
Brian Paul
7b1d08738f cell: turn on PPC assembly vertex transform
gears runs with it now (3x faster FPS than before).
2008-10-22 15:25:04 -06:00
Brian Paul
c6ff870836 cell: TGSI->PPC for RSQ, RCP and src register sign modes 2008-10-22 15:21:22 -06:00
Brian Paul
5184006560 gallium: TGSI->PPC inequality operators 2008-10-22 14:48:58 -06:00
Brian Paul
b06d072019 gallium: added ppc_vload_float(), for limited cases 2008-10-22 14:48:33 -06:00
Brian Paul
da63edd720 gallium: fix broken TGSI_FILE_CONSTANT case, use ppc_reserver_register() 2008-10-22 13:59:11 -06:00
Brian Paul
ebdc399d83 gallium: fix-up confusing register allocation masks in rtasm_ppc.c
Plus, add ppc_reserve_register() func.
2008-10-22 13:57:56 -06:00
Brian Paul
82477e485d cell: add -std=c99 flag to solve some warning/prototype issues 2008-10-22 11:13:55 -06:00
Brian Paul
ba4faef7c0 gallium: temporarily disable PPC vertex shader until more things run 2008-10-22 11:13:31 -06:00
Brian Paul
b7da4c3dc1 gallium: PPC vertex shader support
Works, but dead code lingering, debug code present, etc.
2008-10-22 11:08:45 -06:00
Brian Paul
70f4ad4498 gallium: TGSI to PPC code generation
Based on the TGSIto SSE2 code generator.
Incomplete and lots of SSE stuff still hanging around but the basic dozen
or so TGSI opcodes are functioning.
2008-10-22 11:07:35 -06:00
Brian Paul
049f57f86a gallium: added ppc_lvewx() 2008-10-22 11:06:39 -06:00
Brian Paul
3aea9c463b cell: include pthread.h 2008-10-22 11:04:29 -06:00
Brian Paul
e0c6653a5f cell: implement many more PPC instructions for code gen 2008-10-22 10:35:38 -06:00
Brian Paul
70dd4379d2 cell: implement fencing for texture buffers
If we delete a texture, we need to keep the underlying tiled data buffer
around until any rendering that references it has completed.
Keep a list of buffers referenced by a rendering batch.  Unref/free them when
the associated batch's fence is executed/signalled.
2008-10-22 10:34:13 -06:00
Brian Paul
0ae4728eb4 cell: set cell->num_textures 2008-10-22 10:30:12 -06:00
Brian Paul
0c1e98d959 cell: note that dst reg writing needs clamping 2008-10-22 08:12:42 -06:00
Brian Paul
7004582c18 gallium: implement tests for PPC/PPC64 2008-10-21 14:12:17 -06:00
Brian Paul
3a2a2d5332 gallium: remove unused var 2008-10-21 14:10:09 -06:00
Brian Paul
2278107b24 mesa: more test options in progs/demos/textures.c 2008-10-20 17:43:05 -06:00
Brian Paul
abfc32a68c cell: minor improvements to batch buffer functions 2008-10-20 15:44:22 -06:00
Brian Paul
6cec79dc4f cell: temporarily disable freeing of tiled texture memory
Allows glDrawPixels to work for now...
2008-10-20 09:35:18 -06:00
Brian Paul
81724da4f6 cell: use an approximation in compute_lambda_2d() to avoid sqrt
Though, the logf() call still needs attention.
2008-10-17 14:14:23 -06:00
Brian Paul
9fa8671c73 cell: add new debug flag (cache) to report texture cache stats on exit 2008-10-17 14:14:23 -06:00
Brian Paul
cb8ebc9124 cell: more efficient state emit for textures/samplers 2008-10-17 14:14:23 -06:00
Brian Paul
fa7b838806 cell: use 7-bit weights in sample_texture_2d_bilinear_int()
This allows us to use 16-bit signed mul/add instructions.  Had to
used unsigned mul before and there's no unsigned mul/add instruction.
2008-10-17 14:14:23 -06:00
Brian Paul
87a6fe57e8 Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts:

	progs/trivial/tri.c
2008-10-17 14:13:00 -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
Alan Hourihane
b50a0b89d9 build "GLX" egl driver by default and egl demos 2008-10-16 23:42:12 +01:00
Brian Paul
51ffab362b cell: pass spu_texture_level ptr to get_four_texels() 2008-10-16 13:54:17 -06:00
Brian Paul
033c90f4c1 cell: implement KIL instruction 2008-10-16 13:49:42 -06:00
Brian Paul
8bff2fccc9 cell: CELL_NUM_SPUS env var 2008-10-16 11:48:05 -06:00
Brian Paul
5191429b15 cell: trilinear mipmap interpolation 2008-10-16 11:19:22 -06:00
Brian Paul
f0c70f9aab cell: update comments 2008-10-16 09:52:02 -06:00
Brian Paul
1da8f9b005 cell: call proper sampler function in sample_texture_cube() 2008-10-16 09:33:45 -06:00
Brian Paul
926b8dbb3e cell: clean up various texture-related things
Distinguish among texture targets in codegen.
progs/demos/cubemap.c runs correctly now too.
2008-10-16 09:00:05 -06:00
Brian Paul
0116ee1d1c cell: start some performance measurements
Use the spu_write_decrementer() and spu_read_decrementer() functions to
measure time.  Convert to milliseconds according to the system timebase value.
2008-10-15 20:56:55 -06:00
Brian Paul
1c915b14a5 cell: updated debug code 2008-10-15 20:56:55 -06:00