summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/cell/ppu
AgeCommit message (Collapse)Author
2008-03-26cell: Implement code-gen for logic opIan Romanick
This also implements code-gen for the float-to-packed color conversion. It's currently hardcoded for A8R8G8B8, but that can easily be fixed as soon as other color depths are supported by the Cell driver.
2008-03-26gallium: Change pipe->flush() interface to optionally return a fence.Michel Dänzer
The cell driver still uses an internal CELL_FLUSH_WAIT flag, in the long run proper fencing should be implemented for it.
2008-03-21cell: Generate blend / depth test code when state atom is createdIan Romanick
Code generation should be performed when the device-specific state atom is created, not when it is bound.
2008-03-21cell: Change code-gen for CONST_COLOR blend factorIan Romanick
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.
2008-03-21Tabs to spacesIan Romanick
2008-03-20cell: Fix several bugs in blend code-genIan Romanick
- 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.
2008-03-20cell: Call the correct function to generate blending codeIan Romanick
Cut-and-paste for the lose. :(
2008-03-20cell: Use code-gen for alpha blendIan Romanick
So far this is only tested when GL_BLEND is disabled.
2008-03-20cell: use pipe_framebuffer_state.width, heightBrian
2008-03-19gallium: add face, dirtyLevels params to pipe->texture_update()Brian Paul
This provides better information about which images in texture object have changed. Also, call texture_update() from more places previously missed.
2008-03-18cell: Fix various stencil test code-gen bugsIan Romanick
2008-03-18cell: Fix added whitespace errors.Ian Romanick
2008-03-18cell: Move and (conditionally) silence debug codeIan Romanick
2008-03-17cell: Don't segfault when unbinding alpha / stencil / depth test stateIan Romanick
2008-03-17cell: Initial code-gen for alpha / stencil / depth testingIan Romanick
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.
2008-03-13cell: Fix to work with commit fa9e7e9a8debb68611909ac2ffab527c6c39a3e5Ian Romanick
2008-03-11cell: check for NULL shader pointer in cell_bind_vs_state()Brian
2008-03-10Move SPE register allocator to rtasm codeIan Romanick
Move the register allocator to a common location. There is more code on the way that will make use of this interface.
2008-03-10cell: sync up with sampler/texture state-setting changesBrian
2008-02-28cell: convert all points/lines to tris for the time beingBrian
Allows more programs to look correct. We'll want native points/lines someday.
2008-02-28cell: remove obsolete texture fieldBrian
2008-02-27cell: fix minor get_tex_surface() breakageBrian
2008-02-27gallium: remove pipe_context->texture_create/release/get_tex_surface()Brian
These functions are now per-screen, not per-context.
2008-02-27gallium: move is_format_supported() to pipe_screen structBrian
2008-02-27gallium: start removing pipe_context->get_name/vendor/param/paramfBrian
These are now per-screen functions, not per-context. State tracker updated, code in drivers and p_context.h disabled.
2008-02-27Cell: implement pipe_screen for cell driverBrian
2008-02-26cell: insert a (disabled) call to spe_cpu_info_get()Brian
Found on the Cell devel forum, but doesn't appear to be available in SDK 2.1.
2008-02-26gallium: remove pipe parameter from pipe_texture_reference()Brian
Added pipe field to pipe_texture (temporary, see comments). First step toward context-less texture creation...
2008-02-26cell: Multiple rendering contexts don't work yetIan Romanick
Log a message and forcibly exit. This prevents silly fools from thinking there's a bug...instead of just an unimplemented feature. :)
2008-02-25cell: Additional changes to match changes in draw/draw_vertex_shader.cIan Romanick
2008-02-25cell: Trivial compiler warning clean-ups.Ian Romanick
2008-02-22cell: added function prototypes to silence warningsBrian
2008-02-22cell: fix build: s/dest/vertex/Brian
2008-02-21Cell: Initial pass at unified data cacheIan Romanick
2008-02-20cell: use pipe_texture_reference()Brian
2008-02-20gallium: replace some ordinary assignments with pipe_reference_texture()Brian
This fixes at least one instance of dereferencing an invalid texture pointer.
2008-02-20cell: rename cell_state_fs.c -> cell_state_shader.cBrian
2008-02-20cell: init shader-related functions in cell_init_shader_functions()Brian
2008-02-20cell: #includes to silence warningsBrian
2008-02-20cell: plug in cell_set_sampler_textureBrian
2008-02-20Remove obsolete files replaced by cell_pipe_state.cBrian
2008-02-20cell: put most simple state-setter functions in new cell_pipe_state.c fileBrian
Also, re-org of texture/surface functions.
2008-02-20gallium: new pipe->texture_update() functionBrian
Called whenever texture data is changed (glTexImage, glTexSubImage, glCopyTexSubImage, etc).
2008-02-19gallium: updated cell buildBrian
Building on Ian's Cell build fix. Put libcell.a in the gallium/drivers/cell/ directory. General Makefile clean-up, simplification, updated comments.
2008-02-19Cell: emit vertex shaders and uniforms more intelligentlyIan Romanick
2008-02-19Bring in ppc spe rtasm into gallium's rtasm module.José Fonseca
Moving files since these are not being used outside gallium.
2008-02-19More llvm -> gallivm.José Fonseca
Forgot this one on the last commit.
2008-02-15Cell: Enable code gen for SPE attribute fetchIan Romanick
Doubles are still unsupported.
2008-02-15Move cell_vertex_fetch.c for recent code reorg.Ian Romanick
2008-02-15Code reorganization: s/aux/auxiliary/ -- update build.José Fonseca