summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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: fix incorrect bitmask in spe_load_uint()Brian Paul
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-10gallium: silence warningAlan Hourihane
2008-10-09mesa: rasterizer state depends on ST_NEW_VERTEX_PROGRAMBrian Paul
Check for per-vertex point size must be done when vertex program changes.
2008-10-09Gallivm: cleanup soa storage.Stephane Marchesin
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-08gallium: asst. clean-upsBrian Paul
Don't use register qualifier. Doxygen-ize comments. Remove 'extern'.
2008-10-08gallium: better instruction printing for SPE codeBrian Paul
2008-10-08mesa: in _mesa_combine_programs() take new STATE_CURRENT_ATTRIB color into ↵Brian Paul
account Commit 1680ef869625dc1fe9cf481b180382a34e0738e7 changed the texenv program to get color from a state register instead of a constant-valued vertex attribute. This broke program concatenation (so glDraw/CopyPixels broke). Now check if the second program get's color from a constant register and handle that case appropriately.
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-07Gallivm: reorder the functions alphabetically so I can work on it.Stephane Marchesin
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: added general-purpose key->data map/lookup containerBrian Paul
2008-10-07Mesa: fix the case where there are no vertex attributes.Stephane Marchesin
This is a backport of 8e8208d6db8b764568539784a6473d545dec2265 to gallium-0.1
2008-10-07Gallivm: don't say hello, it's rude.Stephane Marchesin
2008-10-07Merge branch 'gallium-0.2' of ↵Stephane Marchesin
git+ssh://marcheu@git.freedesktop.org/git/mesa/mesa into gallium-0.2
2008-10-07Gallivm: fix the constant layout, this gets a bunch of progs/ working. ↵Stephane Marchesin
Notably, gears doesn't.
2008-10-07mesa: replace GLuint with GLbitfield to be clearer about usageBrian Paul
Also, fix up some comments to be doxygen style.
2008-10-07draw: don't assume output buffer pointer is alignedKeith Whitwell
2008-10-07mesa: update state after binding vertex list in dlist pathKeith Whitwell
2008-10-07mesa: protect against segfault in get_fp_input_mask()Keith Whitwell
2008-10-07draw: add switch for drivers to force vertex data passthroughKeith Whitwell
2008-10-07mesa: remove old assertionBrian 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-06gallium: replace assertion with conditional/recovery codeBrian
The assertion failed when we ran out of exec memory. Found with conform texcombine test.
2008-10-06mesa: fix convolve/convolution mix-upsBrian
2008-10-06Mesa: fix the case where there are no vertex attributes.Stephane Marchesin
2008-10-06mesa: add missing GLcontext param to _mesa_delete_query().Brian Paul
Fixes vtk crash and others.
2008-10-06draw: Fix compiler errors on Windows.Michal Krol
2008-10-06rtasm: fix debug buildKeith Whitwell
2008-10-06make draw's vertex_info struct smaller/quicker to compare with memcmp()Keith Whitwell
2008-10-04mesa: handle vertex program enabled case also in texenvprogram.cKeith 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-10-03mesa: avoid generating constant vertex attributes in fixedfunc programsKeith Whitwell
Keep track of enabled/active vertex attributes. Keep track of potential vertex program outputs. When generating fragment program, replace references to fragment attributes which are effectively non-varying and non-computed passthrough attributes with references to the new CURRENT_ATTRIB tracked state value. Only downside is slight ugliness in VBO code where we need to validate state twice in succession.
2008-10-03Mesa: short-circuit case when looking up the same program twice in cacheKeith Whitwell
2008-10-03mesa: add new internal state for tracking current vertex attribsKeith Whitwell
2008-10-03mesa: add missing state dependencies for various tracked constantsKeith Whitwell
2008-10-03mesa: shrink texenvprogram state key structKeith Whitwell
2008-10-03rtasm: add sse_movntpsKeith Whitwell
2008-10-02draw: modify prefetching slightlyKeith Whitwell