summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/cell
Commit message (Collapse)AuthorAgeFilesLines
* CELL: fix colormask code generationRobert Ellison2008-09-231-83/+78
| | | | | | | | | The colormask code generation had assumed that its input packed pixels were in RGBA format. In fact, the format they're in is dependent on the pipe color format. Now the color format is passed in to gen_colormask(), and proper color format-dependent SPU code is generated.
* cell: Fixed bug with absolute, negate, set-negative logic in source fetch ↵Jonathan White2008-09-221-9/+5
| | | | | | for TGSI instructions. The logic should operate on the origin channel not the swizzled channel. Please enter the commit message for your changes.
* cell: Added TRUNC, SWZ (extended) and XPD instructions, verified against ↵Jonathan White2008-09-221-45/+156
| | | | softpipe. Optimized FLR and FRC. Fixed writeback logic for DP3, DP4 and DPH.
* cell: Added DPH instruction and verified against softpipe.Jonathan White2008-09-221-0/+41
|
* cell: make sure the fragment ops and fragment shader code buffer is at a ↵Brian Paul2008-09-192-5/+7
| | | | | | 32-byte boundary To make sure even/odd instructions hit the right pipes.
* cell: Added FRC instructionJonathan White2008-09-191-0/+41
|
* cell: Added FLR instruction. Verified the following instructions match ↵Jonathan White2008-09-191-9/+20
| | | | softpipe: MOV, ADD, MUL, SGE, SUB, MAD, ABS, SLT, MIN, MAX, LRP, DP3, DP4, CMP, FLR
* cell: Fixed bugs with DP3 and DP4, they match softpipe results now.Jonathan White2008-09-191-3/+37
|
* cell: flesh out support for other Z/stencil formatBrian Paul2008-09-191-36/+64
| | | | | Also: improve float/int Z conversion. Use clgt instead of cgt in depth test since we're comparing unsigned values.
* cell: issue warning to stderr when using fallback fragment opsBrian Paul2008-09-191-1/+9
|
* cell: fix a commentBrian Paul2008-09-191-1/+1
|
* cell: the test for CELL_DEBUG_FRAGMENT_OP_FALLBACK in ↵Brian Paul2008-09-191-1/+1
| | | | cmd_state_fragment_ops() was inverted
* cell: change spe_complement() to take a src and dst reg, like other instructionsBrian Paul2008-09-192-4/+4
|
* CELL: add codegen for logic op, color maskRobert Ellison2008-09-191-6/+137
| | | | | | | | | | | | | | | | - rtasm_ppc_spe.c, rtasm_ppc_spe.h: added a new macro function "spe_load_uint" for loading and splatting unsigned integers in a register; it will use "ila" for values 18 bits or less, "ilh" for word values that are symmetric across halfwords, "ilhu" for values that have zeroes in their bottom halfwords, or "ilhu" followed by "iohl" for general 32-bit values. Of the 15 color masks of interest, 4 are 18 bits or less, 2 are symmetric across halfwords, 3 are zero in the bottom halfword, and 6 require two instructions to load. - cell_gen_fragment.c: added full codegen for logic op and color mask.
* CELL: mark several transient files as .gitignoreRobert Ellison2008-09-181-0/+1
| | | | | | | | | | | | | 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.
* cell: Added CMP instructionJonathan White2008-09-181-7/+7
|
* cell: Fix bug with complement logic for SGE and SLEJonathan White2008-09-181-4/+38
|
* cell: Added SGE and SLE instructions to dispatch functionJonathan White2008-09-181-0/+4
|
* cell: Added SGE and SLE instructionsJonathan White2008-09-181-0/+62
|
* CELL: finish fragment ops blending (except for unusual D3D modes)Robert Ellison2008-09-181-217/+329
| | | | | | | | | | | | | | | | | | | | - 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.
* cell: example of doing fs/fm sequence with fnms in blendingBrian Paul2008-09-171-0/+18
|
* cell: dump generated code if CELL_DEBUG=asmBrian Paul2008-09-172-8/+19
|
* CELL: fleshing out the blending fragment opsRobert Ellison2008-09-175-68/+337
| | | | | | | | | | | | | | | | | | | | | - 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...
* cell: Added RCP and RSQ instruction support.Jonathan White2008-09-161-0/+48
|
* cell: Added DP3 and DP4 instructionsJonathan White2008-09-161-0/+81
|
* cell: Optimized LERP with fmaJonathan White2008-09-161-3/+2
| | | | Please enter the commit message for your changes.
* cell: Fixed MIN/MAX algorithmJonathan White2008-09-161-7/+3
|
* cell: export CELL_DEBUG=asm to dump SPU assembly codeBrian Paul2008-09-153-29/+31
|
* cell: Added LERP instructionJonathan White2008-09-151-1/+91
|
* cell: Added support for SLT, SEQ and SNE instructionsJonathan White2008-09-151-0/+100
|
* cell: Added support for ABS instructionJonathan White2008-09-151-1/+30
|
* Added support for SUB and MAD instructionsJonathan White2008-09-151-3/+58
|
* cell: implement negation, absolute value and set-sign for src regs in code genBrian Paul2008-09-131-2/+42
|
* cell: remove old disassembly/dump code; use dumper code in SPE emitter.Brian Paul2008-09-121-76/+28
|
* cell: implement DDX/DDY codegen (untested)Brian Paul2008-09-121-0/+37
|
* cell: implement TGSI immediates in SPE code generatorBrian Paul2008-09-121-12/+63
|
* cell: initial support for IF/ELSE/ENDIF in fragment shader codegenBrian Paul2008-09-121-18/+175
| | | | Only one level of if/else/endif nesting is currently working.
* cell: evaluate multiple fragment inputsBrian Paul2008-09-121-1/+7
|
* cell: disable invalid spe_release_func() calls, fixes crash on exitBrian Paul2008-09-121-0/+4
|
* cell: implement colormask on fallback pathBrian Paul2008-09-121-54/+110
| | | | Also, some var renaming and additional comments
* cell: fix non-debug build errorBrian Paul2008-09-121-2/+0
|
* cell: implement swizzling for src regsBrian Paul2008-09-121-3/+4
|
* cell: setup fragment program inputs in SOA formatBrian Paul2008-09-121-56/+56
| | | | Also remove old code, etc.
* cell: disable calls to old gen codeBrian Paul2008-09-121-2/+4
|
* cell: initial support for fragment shader code generation.Brian Paul2008-09-1110-3/+678
| | | | | | TGSI shaders are translated into SPE instructions which are then sent to the SPEs for execution. Only a few opcodes work, no swizzling yet, no support for constants/immediates, etc.
* cell: minor improvements to fragment code-genBrian Paul2008-09-111-3/+11
|
* cell: put cell_ prefix on gen_fragment_function()Brian Paul2008-09-113-4/+4
|
* cell: more comments, stub code for colormask/logicop/etcBrian Paul2008-09-111-37/+70
|
* cell: fix typos in blend code-genBrian Paul2008-09-111-3/+3
|
* cell: remove old state CMDs, added commentsBrian Paul2008-09-111-6/+10
|