summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
AgeCommit message (Collapse)Author
2008-10-14cell: fall-through case for TGSI_OPCODE_TXBBrian Paul
2008-10-14cell: support NPOT textures, clamp/repeat mode, normalized/unorm texcoordsBrian Paul
glDrawPixels works now.
2008-10-14cell: fix npot texture tiling bugsBrian Paul
2008-10-14cell: fix broken negative texcoord conversionBrian Paul
2008-10-14cell: use minify vs magnify filtersBrian Paul
2008-10-14cell: fix assertionsBrian Paul
2008-10-14cell: basic mipmap filtering works nowBrian Paul
Though, only GL_MIPMAP_NEAREST / GL_LINEAR works right now.
2008-10-14cell: fix tex image stride bugsBrian Paul
2008-10-14cell: now do texture twiddling in the right way, at the right time.Brian Paul
Also handles images smaller than 32x32 now.
2008-10-14cell: remove old code, clean-ups, etc.Brian Paul
2008-10-13cell: more clean-up in spu_tri.cBrian Paul
2008-10-13cell: remove dead code, clean-up, reformattingBrian Paul
2008-10-13cell: finish-up perspective-corrected interpolationBrian Paul
2008-10-13cell: initial work for mipmap texture filteringBrian Paul
2008-10-13cell: remove old texture-related fieldsBrian Paul
2008-10-13cell: use fewer memory references in sample_texture4_bilinear_2()Brian Paul
2008-10-13cell: remove more old texture codeBrian Paul
2008-10-13cell: bilinear texture filtering using integer arithmeticBrian Paul
Fewer float/int conversions involved.
2008-10-13cell: remove old texture codeBrian Paul
2008-10-13cell: do texture sampling/filtering for four pixels at a time.Brian Paul
2008-10-13cell: added spu_unpack_A8R8G8B8_transpose4()Brian Paul
Plus, clearer shuffle masks in other funcs.
2008-10-10cell: more instruction scheduling optimizations (MIN/MAX/LERP/etc)Brian Paul
Also, optimize register->memory stores.
2008-10-10cell: pass texture unit (sampler number) to txp() functionBrian Paul
The glsl/multitex demo runs now.
2008-10-10cell: fix function prologue/epilogue code for large stack framesBrian Paul
The ai instruction is limited to a 10-bit signed immediate value.
2008-10-10CELL: fixing stencil bugsRobert Ellison
These are the defects found and fixed so far. Several more have been observed; I'm working on them. - Fixed an error in spe_load_uint() that caused incorrect values to be loaded if the given unsigned value had the low 18 bits as 0, and that caused inefficient code to be emitted if the given value had the high 14 bits as 0. - Fixed a problem in stencil code generation where optional registers weren't tracked correctly. - Fixed a problem that the stencil function NEVER was acting as ALWAYS. - Fixed several problems that could occur if stenciling were enabled but depth was disabled. - Fixed a problem with two-sided stencil writemask handling that could cause a stencil writemask to not be applied. - Fixed several state permutations that were incorrectly flagged as not requiring stencil values to be calculated.
2008-10-10cell: call cell_flush_int() at end of cell_create_context()Brian Paul
Ensures that SPUs are initialized/ready before proceeding. This fixes a spurious assertion failure when the SPU-side shader function info hasn't been returned to the PPU before shader codegen.
2008-10-10cell: fix LERP when dst reg is a src regBrian Paul
Also, bump up frame size and fix some assertions.
2008-10-10cell: fix fm/fs copy & paste bug from a few commits agoBrian Paul
2008-10-10cell: fix bug in emit_FLR() when src reg == dst regBrian Paul
2008-10-10cell: fix bug in emit_FRC() when src register == dst register.Brian Paul
With this fix, the glsl/brick demo runs.
2008-10-10cell: updates in response to draw's struct vertex_info changesBrian Paul
2008-10-10Merge commit 'origin/gallium-0.1' into gallium-0.2Keith Whitwell
Conflicts: src/gallium/auxiliary/gallivm/instructionssoa.cpp src/gallium/auxiliary/gallivm/soabuiltins.c src/gallium/auxiliary/rtasm/rtasm_x86sse.c src/gallium/auxiliary/rtasm/rtasm_x86sse.h src/mesa/main/texenvprogram.c src/mesa/shader/arbprogparse.c src/mesa/shader/prog_statevars.c src/mesa/state_tracker/st_draw.c src/mesa/vbo/vbo_exec_draw.c
2008-10-09cell: implement basic TXP instruction in fragment shadersBrian Paul
Lots of restrictions for now (one 2D texture, no mipmaps, etc.) for now but basic texture demos work. TEX, TXD, TXP do the same thing for the time being.
2008-10-09cell: better immediate value allocation, better commentsBrian Paul
2008-10-09cell: massage the emit functions to get better instruction schedulingBrian Paul
2008-10-09cell: more accurate commentsBrian Paul
2008-10-08cell: implement function calls from shader code. fslight demo runs now.Brian Paul
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.
2008-10-08cell: implement more built-in shader functions, link spu code with -lmBrian Paul
2008-10-08cell: increase SPU_MAX_FRAGMENT_PROGRAM_INSTSBrian Paul
2008-10-07cell: add support for fragment shader constant buffersBrian Paul
2008-10-07cell: fix incorrect extended swizzle term code in get_src_reg()Brian Paul
2008-10-07cell: fix formattingBrian Paul
2008-10-07cell: remove old codeBrian Paul
2008-10-07cell: memset() key to zeroBrian Paul
2008-10-07cell: use new keymap to save/re-use fragment ops codeBrian Paul
2008-10-07gallium: Introduce PIPE_ARCH_SSE define for SSE support.José Fonseca
Besides meaning x86 and x86-64 architecture, it also depends on SSE2 support enabled on gcc. This fixes the linux-debug build.
2008-10-06make draw's vertex_info struct smaller/quicker to compare with memcmp()Keith Whitwell
2008-10-03CELL: changes to generate SPU code for stencilingRobert Ellison
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().
2008-09-26cell: checkpoint: more work in emit_function_call()Brian Paul
Simple function call works now, but we don't save/restore the caller's registers yet.
2008-09-26cell: stub-out sin/cos function bodies to avoid trashing caller's stack for nowBrian Paul