summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/cell
Commit message (Collapse)AuthorAgeFilesLines
* cell: Generate blend / depth test code when state atom is createdIan Romanick2008-03-211-21/+9
| | | | | Code generation should be performed when the device-specific state atom is created, not when it is bound.
* cell: Change code-gen for CONST_COLOR blend factorIan Romanick2008-03-215-49/+53
| | | | | | | | | | | | Previously the constant color blend factor was compiled into the generated code. This meant that the code had to be regenerated each time the constant color was changed. This doesn't fit with the model used in Gallium. As-is, the code could be better. The constant color is loaded for every quad processed, even if it is not used. Also, if a lot of (1-x) blend factors are used, 1.0 will be loaded and reloaded into registers many times.
* Tabs to spacesIan Romanick2008-03-211-27/+27
|
* cell: Remove unnecessary default_blend work-aroundIan Romanick2008-03-211-21/+0
| | | | | I suspect that there was some other bug in the blend code-gen that made this work-around necessary.
* cell: Fix several bugs in blend code-genIan Romanick2008-03-201-20/+92
| | | | | | | | | | - Alpha factor set to a _COLOR mode was mishandled - Cases when either dst factor or src factor was ZERO were mishandled - MIN and MAX cases were backwards - Case when blend was disabled was mishandled - Incorrect comments about number of instructions generated The tests blendminmax and blendsquare run correctly.
* cell: Call the correct function to generate blending codeIan Romanick2008-03-201-1/+1
| | | | Cut-and-paste for the lose. :(
* cell: Fix bus error when there is no depth bufferIan Romanick2008-03-201-0/+3
|
* cell: Use code-gen for alpha blendIan Romanick2008-03-209-132/+129
| | | | So far this is only tested when GL_BLEND is disabled.
* cell: use pipe_framebuffer_state.width, heightBrian2008-03-202-13/+4
|
* gallium: add face, dirtyLevels params to pipe->texture_update()Brian Paul2008-03-191-1/+2
| | | | | This provides better information about which images in texture object have changed. Also, call texture_update() from more places previously missed.
* cell: Fix various stencil test code-gen bugsIan Romanick2008-03-181-27/+43
|
* cell: Correctly load stencil for PIPE_FORMAT_S8Z24_UNORMIan Romanick2008-03-181-3/+2
|
* cell: Fix depth read / write for s8z24.Ian Romanick2008-03-182-2/+24
| | | | Stencil is still broken.
* cell: Fix added whitespace errors.Ian Romanick2008-03-181-2/+2
|
* cell: Minor changes to make stencil not crashIan Romanick2008-03-182-5/+11
| | | | | | I'm not sure these are quite correct. The reflect demo doesn't assert anymore, but it doesn't produce correct results either. SPE-based vertex shader code needs to be disabled for relfect to run.
* cell: Move and (conditionally) silence debug codeIan Romanick2008-03-182-10/+39
|
* cell: Don't segfault when unbinding alpha / stencil / depth test stateIan Romanick2008-03-173-13/+29
|
* cell: Initial code-gen for alpha / stencil / depth testingIan Romanick2008-03-1715-170/+1409
| | | | | | | | Alpha test is currently broken because all per-fragment testing occurs before alpha is calculated. Stencil test is currently broken because the Z-clear code asserts if there is a stencil buffer.
* cell: Fix to work with commit fa9e7e9a8debb68611909ac2ffab527c6c39a3e5Ian Romanick2008-03-133-32/+15
|
* Replicate TXP changes in the SPU version of TGSI execIan Romanick2008-03-131-31/+14
| | | | | Replicate changes from commit ba75e82b6ebaf88dd2e4a8f764b2d296d715bf8a in spu_exec.c
* cell: check for NULL shader pointer in cell_bind_vs_state()Brian2008-03-111-1/+2
|
* Move SPE register allocator to rtasm codeIan Romanick2008-03-101-72/+29
| | | | | Move the register allocator to a common location. There is more code on the way that will make use of this interface.
* cell: sync up with sampler/texture state-setting changesBrian2008-03-103-12/+28
|
* cell: convert all points/lines to tris for the time beingBrian2008-02-281-0/+4
| | | | Allows more programs to look correct. We'll want native points/lines someday.
* cell: remove obsolete texture fieldBrian2008-02-281-1/+0
|
* cell: fix minor get_tex_surface() breakageBrian2008-02-271-1/+2
|
* cell: Use unified data cache for textures tooIan Romanick2008-02-273-117/+72
|
* gallium: remove pipe_context->texture_create/release/get_tex_surface()Brian2008-02-271-30/+0
| | | | These functions are now per-screen, not per-context.
* gallium: move is_format_supported() to pipe_screen structBrian2008-02-272-23/+19
|
* gallium: start removing pipe_context->get_name/vendor/param/paramfBrian2008-02-271-29/+0
| | | | | These are now per-screen functions, not per-context. State tracker updated, code in drivers and p_context.h disabled.
* Cell: implement pipe_screen for cell driverBrian2008-02-277-63/+249
|
* cell: insert a (disabled) call to spe_cpu_info_get()Brian2008-02-261-0/+3
| | | | Found on the Cell devel forum, but doesn't appear to be available in SDK 2.1.
* gallium: remove pipe parameter from pipe_texture_reference()Brian2008-02-261-2/+1
| | | | | Added pipe field to pipe_texture (temporary, see comments). First step toward context-less texture creation...
* cell: Multiple rendering contexts don't work yetIan Romanick2008-02-261-0/+10
| | | | | Log a message and forcibly exit. This prevents silly fools from thinking there's a bug...instead of just an unimplemented feature. :)
* cell: Additional changes to match changes in draw/draw_vertex_shader.cIan Romanick2008-02-251-1/+2
|
* cell: Fix off-by-one error in spu_dcache_fetch_unalignedIan Romanick2008-02-251-18/+32
| | | | | This time the off-by-one error caused an extra qword to be fetched under certain circumstances when the source ea was not qword aligned.
* cell: Trivial compiler warning clean-ups.Ian Romanick2008-02-254-5/+8
|
* Cell: Remove unnecessary include filesIan Romanick2008-02-252-4/+0
|
* Cell: Use multiple DMA tags for the dcache.Ian Romanick2008-02-252-2/+5
|
* cell: added function prototypes to silence warningsBrian2008-02-222-0/+6
|
* cell: fix build: s/dest/vertex/Brian2008-02-221-1/+1
|
* Cell: Remove erroneous ALIGN16_ATTRIB attributesIan Romanick2008-02-211-3/+3
| | | | | | | If a structure is marked as being aligned the SPE compiler performs extra optimizations (sadly, only -O2 is used) when reading the structure. Since most of the structures sent in batch buffers are only 8-byte aligned, this resulted in mysterous bugs with -O2.
* Cell: Add spu_dcache.c to Makefile.Ian Romanick2008-02-211-0/+1
| | | | This was erroneously missing in previous commits.
* Cell: Initial scalar implementation of spu_dcache_mark_dirtyIan Romanick2008-02-211-6/+16
|
* Cell: Fix off-by-one error in spu_dcache_fetch_unalignedIan Romanick2008-02-212-6/+6
| | | | | An off-by-one error caused an extra qword to be fetched under certain alignment / size combinations.
* Cell: Initial pass at unified data cacheIan Romanick2008-02-218-95/+194
|
* cell: use pipe_texture_reference()Brian2008-02-201-1/+3
|
* gallium: replace some ordinary assignments with pipe_reference_texture()Brian2008-02-201-0/+1
| | | | This fixes at least one instance of dereferencing an invalid texture pointer.
* cell: rename cell_state_fs.c -> cell_state_shader.cBrian2008-02-202-1/+1
|
* cell: init shader-related functions in cell_init_shader_functions()Brian2008-02-204-36/+55
|