summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Gallivm: cleanup soa storage.Stephane Marchesin2008-10-092-34/+12
|
* cell: implement function calls from shader code. fslight demo runs now.Brian Paul2008-10-084-76/+182
| | | | | | | | | | | | Used for SIN, COS, EXP2, LOG2, POW instructions. TEX next. Fixed some bugs in MIN, MAX, DP3, DP4, DPH instructions. In rtasm code: Special-case spe_lqd(), spe_stqd() functions so they take byte offsets but low-order 4 bits are shifted out. This makes things consistant with SPU assembly language conventions. Added spe_get_registers_used() function.
* cell: implement more built-in shader functions, link spu code with -lmBrian Paul2008-10-081-21/+44
|
* cell: increase SPU_MAX_FRAGMENT_PROGRAM_INSTSBrian Paul2008-10-081-1/+1
|
* gallium: asst. clean-upsBrian Paul2008-10-081-11/+17
| | | | Don't use register qualifier. Doxygen-ize comments. Remove 'extern'.
* gallium: better instruction printing for SPE codeBrian Paul2008-10-081-10/+36
|
* cell: add support for fragment shader constant buffersBrian Paul2008-10-077-7/+63
|
* cell: fix incorrect extended swizzle term code in get_src_reg()Brian Paul2008-10-071-24/+26
|
* cell: fix formattingBrian Paul2008-10-071-6/+3
|
* cell: remove old codeBrian Paul2008-10-071-26/+0
|
* Gallivm: reorder the functions alphabetically so I can work on it.Stephane Marchesin2008-10-071-121/+119
|
* cell: memset() key to zeroBrian Paul2008-10-071-0/+1
|
* cell: use new keymap to save/re-use fragment ops codeBrian Paul2008-10-073-0/+103
|
* gallium: added general-purpose key->data map/lookup containerBrian Paul2008-10-074-2/+381
|
* Gallivm: don't say hello, it's rude.Stephane Marchesin2008-10-071-1/+0
|
* Merge branch 'gallium-0.2' of ↵Stephane Marchesin2008-10-075-4/+12
|\ | | | | | | git+ssh://[email protected]/git/mesa/mesa into gallium-0.2
| * gallium: Introduce PIPE_ARCH_SSE define for SSE support.José Fonseca2008-10-075-4/+12
| | | | | | | | | | | | | | Besides meaning x86 and x86-64 architecture, it also depends on SSE2 support enabled on gcc. This fixes the linux-debug build.
* | Gallivm: fix the constant layout, this gets a bunch of progs/ working. ↵Stephane Marchesin2008-10-076-21/+78
|/ | | | Notably, gears doesn't.
* Mesa: fix the case where there are no vertex attributes.Stephane Marchesin2008-10-061-0/+2
|
* CELL: changes to generate SPU code for stencilingRobert Ellison2008-10-0312-146/+1091
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This set of code changes are for stencil code generation support. Both one-sided and two-sided stenciling are supported. In addition to the raw code generation changes, these changes had to be made elsewhere in the system: - Added new "register set" feature to the SPE assembly generation. A "register set" is a way to allocate multiple registers and free them all at the same time, delegating register allocation management to the spe_function unit. It's quite useful in complex register allocation schemes (like stenciling). - Added and improved SPE macro calculations. These are operations between registers and unsigned integer immediates. In many cases, the calculation can be performed with a single instruction; the macros will generate the single instruction if possible, or generate a register load and register-to-register operation if not. These macro functions are: spe_load_uint() (which has new ways to load a value in a single instruction), spe_and_uint(), spe_xor_uint(), spe_compare_equal_uint(), and spe_compare_greater_uint(). - Added facing to fragment generation. While rendering, the rasterizer needs to be able to determine front- and back-facing fragments, in order to correctly apply two-sided stencil. That requires these changes: - Added front_winding field to the cell_command_render block, so that the state tracker could communicate to the rasterizer what it considered to be the front-facing direction. - Added fragment facing as an input to the fragment function. - Calculated facing is passed during emit_quad().
* draw: modify prefetching slightlyKeith Whitwell2008-10-021-4/+15
|
* draw: don't keep refetching constant inputsKeith Whitwell2008-10-026-62/+144
|
* rtasm: add prefetch instructionsKeith Whitwell2008-10-022-0/+31
|
* draw: add streamlined paths for fetching linear vertsKeith Whitwell2008-10-023-66/+134
|
* mesa: Fix compiler warnings on Windows.Michal Krol2008-10-022-2/+2
|
* Gallivm: add slt. glxgears should be running, except it isn't.Stephane Marchesin2008-10-024-66/+101
|
* Gallivm: port to llvm 2.4.Stephane Marchesin2008-10-025-149/+149
|
* Gallivm: fix off-by-one.Stephane Marchesin2008-10-021-1/+1
|
* Gallivm: more instructions.Stephane Marchesin2008-10-023-8/+73
|
* Gallivm: make it compile again, add some opcodes.Stephane Marchesin2008-10-025-485/+771
|
* mesa: fix temp register allocation problems.Brian Paul2008-10-021-0/+15
| | | | Complex texcombine modes were running out of registers (>32 registers for 8 tex units).
* egl: check for null ptr/nameBrian Paul2008-10-021-1/+4
|
* egl: remove space after -L flagBrian Paul2008-10-021-1/+1
|
* util: No-op u_sse.h outside PIPE_ARCH_X86/X86_64.José Fonseca2008-10-011-1/+6
|
* tgsi: Include p_config.h.José Fonseca2008-10-011-0/+2
|
* cell: Fixed usage of MAX_INSTRUCTIONS to use new MAX_PROGRAM_INSTRUCTIONS ↵Jonathan White2008-09-301-10/+4
| | | | instead of old MAX_NV_XXX definitions in order to allow Cell TGSI fragment program generator to work again.
* cell: Moved X86 checks to wrap #include section so that Cell targets will ↵Jonathan White2008-09-301-2/+2
| | | | compile again.
* util: Fix util_fast_pow/exp2/log2.José Fonseca2008-10-012-69/+64
| | | | | | | | | | | - Use a lookup table for log2. - Compute (float) (1 << ipart) by tweaking with the exponent directly to avoid integer overflow and float conversion. - Also table negative exponents to avoid float division and branching. - Implement util_fast_exp as function of util_fast_exp2.
* tgsi: SSE2 optimized exp2, log2 and pow implementations.José Fonseca2008-09-301-76/+211
| | | | | | | | | | | | Special care must be taken when calling compiler generated SSE2 functions from the runtime generated SSE2: saving the xmm registers, and notify gcc the stack is not 16byte aligned. It would be more efficient to keep the stack pointer 16byte aligned, but too hairy, and not consistent in all x86 architectures. This has been tested in linux x86 and windows x86 userspace. Not tested on x86-64 because it is broken for other reasons (even without this change).
* util: Header for SSE2 intrinsics portability.José Fonseca2008-09-301-0/+72
|
* rtasm: Implement immediate group 1 instructions. Fix SIB emition.José Fonseca2008-09-292-15/+62
|
* cell: checkpoint: more work in emit_function_call()Brian Paul2008-09-261-6/+39
| | | | Simple function call works now, but we don't save/restore the caller's registers yet.
* cell: stub-out sin/cos function bodies to avoid trashing caller's stack for nowBrian Paul2008-09-261-0/+10
|
* gallium: SPU register commentsBrian Paul2008-09-261-2/+2
|
* cell: move command processing code into new spu_command.c fileBrian Paul2008-09-264-556/+611
|
* cell: move debug-related declarationsBrian Paul2008-09-262-2/+8
|
* cell: move debug macros into new spu_debug.hBrian Paul2008-09-262-27/+63
|
* cell: move really_clear_tiles()Brian Paul2008-09-263-40/+41
|
* cell: align instruction buffers to 8-byte, not 32-byte boundaryBrian Paul2008-09-263-8/+8
|
* cell: asst clean-up, var renamingBrian Paul2008-09-261-10/+9
|