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
95c04cccfe
mesa: move convolution image adjustment code for glCopyTexSubImage1/2/3D()
...
Do it after initial error checking, after we know the texture's internal format.
2008-10-22 07:53:26 -06:00
Brian Paul
9dfd54fa83
mesa: some re-org of glCopyTexSubImage1/2/3D() error checking
2008-10-22 07:48:37 -06:00
Brian Paul
22e442544b
mesa: in textore.c, only adjust image for convolution if image is a color format
...
Makes things consistant with the code in teximage.c.
We only want to apply convolution to color formats (not depth/index formats)
2008-10-22 07:36:33 -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
Kristof Ralovich
0970de3171
glx: updated comment
2008-10-21 08:20:43 -06:00
Xiang, Haihao
b4bf9acc32
i915: fix carsh in i830_emit_state. (bug #17766 )
2008-10-21 10:30:39 +08: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
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
Younes Manton
3354e668f0
g3dvl: Get rid of state tracker unit tests, stale and not useful atm.
2008-10-17 17:31:26 -04:00
Younes Manton
e52630e296
g3dvl: Bad test, use proper picture height.
2008-10-17 17:31:26 -04: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
893ea47e44
glxswapcontrol: added -fullscreen option
2008-10-16 14:33:27 -06:00
Brian Paul
9a84d78c18
glxgears: for fullscreen, disable window borders the right way
2008-10-16 14:33:27 -06: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
Roland Scheidegger
73e1193632
fix span issue with really old ddx and non-tcl r100 chips
2008-10-16 16:25:52 +02:00
Brian Paul
a7b24ac02f
mesa: fix error codes in _mesa_GetObjectParameterivARB(), bug 17861
2008-10-16 08:23:53 -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
Brian Paul
5ecb4f9694
cell: updated status in docs/cell.html
2008-10-15 15:46:53 -06:00
Brian Paul
224c19a758
cell: get rid of last usage of float4 union/typedef
...
Results in slightly tighter code.
2008-10-15 15:34:02 -06:00
Brian Paul
30d3b58112
cell: simplify triangle front/back face determination
2008-10-15 15:20:09 -06:00
Brian Paul
ec7d6c6561
cell: send rasterizer state to SPUs in proper way, remove front_winding hack
2008-10-15 14:39:16 -06:00