summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
Commit message (Collapse)AuthorAgeFilesLines
* gallium: Fix computation of Z values when not using early Z.Brian2008-03-281-9/+12
| | | | This fixes the missing bitmaps in the engine and fogcoord demos.
* gallium: remove redundant compare bit in sampler stateRoland Scheidegger2008-03-281-2/+1
|
* gallium: replace PIPE_ATTRIB_MAX with PIPE_MAX_ATTRIBSBrian2008-03-2719-42/+42
| | | | | The later follows the naming scheme of other limits. Keep the old definition until all possible usage is updated.
* cell: include cell_state_per_fragment.h to silence warningBrian2008-03-271-0/+1
|
* cell: added (uint64_t) cast to silence warningBrian2008-03-271-1/+1
|
* cell: fix unclosed commentBrian2008-03-271-1/+1
|
* cell: Implement code-gen for logic opIan Romanick2008-03-268-33/+349
| | | | | | | 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.
* gallium: Change pipe->flush() interface to optionally return a fence.Michel Dänzer2008-03-2615-44/+44
| | | | | The cell driver still uses an internal CELL_FLUSH_WAIT flag, in the long run proper fencing should be implemented for it.
* gallium: added fragment emit/write debug countersBrian2008-03-251-0/+30
|
* gallium: wrap decls in extern "C"José Fonseca2008-03-231-0/+10
|
* gallium: remove temporary _screen suffix from function namesBrian2008-03-221-10/+10
|
* 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.
* i915: added to-do note about setting the max_lod register to get proper ↵Brian2008-03-211-0/+6
| | | | min/mag filter selection
* 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.
* gallium: use new framebuffer width, height fieldsBrian2008-03-205-22/+7
|
* cell: use pipe_framebuffer_state.width, heightBrian2008-03-202-13/+4
|
* gallium: added fb_width/height fields to softpipe contextBrian Paul2008-03-195-13/+18
| | | | | These are convenience fields. Otherwise, we have to check cbuf[0] or zsbuf in various places.
* gallium: add face, dirtyLevels params to pipe->texture_update()Brian Paul2008-03-194-4/+8
| | | | | This provides better information about which images in texture object have changed. Also, call texture_update() from more places previously missed.
* gallium: set tc->surface_map = NULL after unmappingBrian2008-03-191-0/+1
|
* 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.
* gallium: improvements, or extensions at least, to the passthrough pathKeith Whitwell2008-03-172-7/+18
| | | | Passthrough is actually more tricky than you'd think...
* gallium: finish remaining prim types for sp_vbuf_draw_arrays()Brian2008-03-161-0/+73
| | | | Not totally tested, but easily fixed if glitches are found.
* gallium: remove DOS carriage returnsBrian2008-03-143-654/+654
|
* gallium: remove DOS carriage returnsBrian2008-03-141-195/+195
|
* i915: check for NULL const buffer ptrBrian2008-03-141-1/+1
|
* gallium: fix some compiler warningsKeith Whitwell2008-03-142-2/+4
|
* gallium: need to all draw_flush() in softpipe_unmap_constant_buffers()Brian2008-03-131-0/+8
| | | | | Otherwise, we won't have our constants when we run the fragment shader. Fixes crash in glsl tests when SP_VBUF=1.
* gallium: in softpipe_get_vertex_info() generate a vbuf vertex_info with real ↵Brian2008-03-131-0/+12
| | | | | | attribs Can't use the EMIT_ALL shortcut/optimization anymore because of passthrough mode.
* gallium: plug in new sp_vbuf_draw_arrays() functionBrian2008-03-131-0/+57
| | | | | | Will be used for pass-through mode. Also, call draw_set_render() to register the vbuf stage. Should probably rename that function to something like draw_set_vbuf_stage().
* gallium: set surface status to CLEAR or DEFINED in clearing/drawing code.Brian2008-03-132-0/+13
| | | | | Otherwise, we were never setting these flags. This confused the state tracker. Fixes progs/demos/texenv.c, probably others.
* 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
* i915: handle NULL object in i915_bind_rasterizer_state()Brian2008-03-121-5/+6
|
* remove reference to obsolete ExtDivideBrian2008-03-121-4/+0
|
* tgsi: Remove ExtDivide field from existence. Implement OPCODE_TXP.Michal Krol2008-03-121-7/+5
|
* gallium: Add TEX_FILTER_ANISO img filterKeith Whitwell2008-03-123-30/+30
| | | | | | Hardware almost universally expects us to set a special filtering mode when anisotropic filtering is enabled, as opposed to varying a max-aniso values. Do this once in the state tracker & simplify the driver code.
* cell: check for NULL shader pointer in cell_bind_vs_state()Brian2008-03-111-1/+2
|