Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gallium: Unify reference counting. | Michel Dänzer | 2009-03-04 | 2 | -46/+25 |
| | | | | | | | | | | | | | | The core reference counting code is centralized in p_refcnt.h. This has some consequences related to struct pipe_buffer: * The screen member of struct pipe_buffer must be initialized, or pipe_buffer_reference() will crash trying to destroy a buffer with reference count 0. u_simple_screen takes care of this, but I may have missed some of the drivers not using it. * Except for rare exceptions deep in winsys code, buffers must always be allocated via pipe_buffer_create() or via screen->*buffer_create() rather than via winsys->*buffer_create(). | ||||
* | cell: overhaul cell teximage code | Brian Paul | 2009-02-24 | 5 | -266/+119 |
| | | | | | | Updated to use the new pipe_transfer functions, etc. Texturing is working again. Though there's some bugs in mipmap texturing but I believe those predate the pipe_transfer changes. | ||||
* | cell: don't need tex transfer for drawing surfaces | Brian Paul | 2009-02-24 | 1 | -30/+24 |
| | |||||
* | cell: patch up cell_texture.c so it compiles | Brian Paul | 2009-02-18 | 1 | -6/+135 |
| | | | | | | | Start adding some new pipe_transfer code. Texturing is totally broken at this point but non-texture programs seem to run OK. | ||||
* | cell: updates for new pipe_transfer changes | Brian Paul | 2009-02-18 | 2 | -23/+81 |
| | | | | Update framebuffer color/z/stencil mapping/unmapping. | ||||
* | cell: update vbuf code to catch up to recent changes | Brian Paul | 2009-02-18 | 1 | -5/+28 |
| | |||||
* | cell: remove unused var | Brian Paul | 2009-02-18 | 1 | -1/+0 |
| | |||||
* | cell: start adding new cell_transfer types/code | Brian Paul | 2009-02-18 | 1 | -0/+19 |
| | |||||
* | cell: remove old surface_map code | Brian Paul | 2009-02-18 | 1 | -5/+0 |
| | |||||
* | util: Move p_debug.h into util module. | José Fonseca | 2009-02-18 | 1 | -1/+1 |
| | | | | | The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible. | ||||
* | cell: use some SPU intrinsics to get slightly better code in eval_inputs() | Brian Paul | 2009-02-16 | 1 | -4/+7 |
| | | | | Suggested by Jonathan Adamczewski. There may be more places to do this... | ||||
* | cell: minor Makefile clean-up | Brian Paul | 2009-02-15 | 1 | -2/+3 |
| | |||||
* | cell: new/tighter code for computing fragment program inputs | Brian Paul | 2009-02-15 | 1 | -91/+76 |
| | |||||
* | cell: combine eval_z(), eval_w() functions | Brian Paul | 2009-02-15 | 1 | -20/+27 |
| | |||||
* | cell: remove unused var | Brian Paul | 2009-02-07 | 1 | -1/+0 |
| | |||||
* | cell: compile fix: many updates to cell texture code for new surface mapping | Brian Paul | 2009-02-07 | 1 | -39/+42 |
| | | | | The Cell texture code really needs a thorough inspection and clean-up someday... | ||||
* | cell: compile fix: alpha.ref is now alpha.ref_value | Brian Paul | 2009-02-07 | 2 | -2/+2 |
| | |||||
* | cell: compile fix: pipe_constant_buffer no longer has size field | Brian Paul | 2009-02-07 | 2 | -2/+1 |
| | |||||
* | cell: compile fix: pipe_constant_buffer no longer has size field | Brian Paul | 2009-02-07 | 1 | -3/+3 |
| | |||||
* | gallium: initialize simple screen in drivers | Zack Rusin | 2009-01-31 | 1 | -0/+2 |
| | |||||
* | gallium: make p_winsys internal | Zack Rusin | 2009-01-30 | 6 | -11/+11 |
| | | | | | move it to pipe/internal/p_winsys_screen.h and start converting the state trackers to the screen usage | ||||
* | gallium: give the screen priority when it comes to buffer allocations | Zack Rusin | 2009-01-29 | 3 | -15/+15 |
| | | | | | | allows the driver to overwrite buffer allocation, first step on the way to making winsys interface internal to the drivers. state trackers and the code above it will go through the screen | ||||
* | gallium: standardize api on the prefix "nr" | Zack Rusin | 2009-01-27 | 1 | -1/+1 |
| | |||||
* | gallium: standardize naming of masks | Zack Rusin | 2009-01-27 | 2 | -29/+29 |
| | |||||
* | Merge commit 'origin/gallium-0.2' into gallium-xlib-rework | Keith Whitwell | 2009-01-19 | 11 | -522/+570 |
|\ | |||||
| * | cell: Specify constant as float for CEILF(). | Jonathan Adamczewski | 2009-01-14 | 1 | -1/+1 |
| | | | | | | | | | | | | Without the f, the constant is treated as a double, resulting in slower arithmetic and libgcc conversion calls each time CEILF() is used. | ||||
| * | cell: Add missing suffix to SHUFFLE macro | Jonathan Adamczewski | 2009-01-13 | 1 | -1/+1 |
| | | |||||
| * | cell: allocate batch buffers w/ 16-byte alignment | Jonathan Adamczewski | 2009-01-12 | 8 | -143/+111 |
| | | | | | | | | | | | | | | | | | | | | | | Replace cell_batch{align,alloc)*() with cell_batch_alloc16(), allocating multiples of 16 bytes that are 16 byte aligned. Opcodes are stored in preferred slot of SPU machine word. Various structures are explicitly padded to 16 byte multiples. Added STATIC_ASSERT(). | ||||
| * | cell: optimize unpack_colors() function, saving 12 cycles | Brian Paul | 2009-01-11 | 1 | -31/+34 |
| | | |||||
| * | cell: move color unpacking code into separate function | Brian Paul | 2009-01-11 | 1 | -76/+89 |
| | | |||||
| * | cell: re-order the z/stencil fetch/extract/convert instructions for better perf | Brian Paul | 2009-01-11 | 1 | -55/+51 |
| | | | | | | | | The new instruction order is 10 cycles faster. | ||||
| * | cell: simplify the 'optional register' code | Brian Paul | 2009-01-11 | 1 | -62/+50 |
| | | |||||
| * | cell: asst datatype clean-ups | Brian Paul | 2009-01-11 | 1 | -73/+75 |
| | | |||||
| * | cell: move depth/stencil code into separate function | Brian Paul | 2009-01-11 | 1 | -179/+213 |
| | | |||||
| * | cell: clean-up, re-indent, comments | Brian Paul | 2009-01-11 | 1 | -95/+139 |
| | | |||||
* | | Merge commit 'origin/gallium-0.2' into gallium-xlib-rework | Keith Whitwell | 2009-01-11 | 2 | -101/+28 |
|\| | |||||
| * | cell: use tgsi_dump_instruction() instead of spe_comment() | Brian Paul | 2009-01-10 | 1 | -101/+25 |
| | | |||||
| * | cell: added rule to produce .s assembly files | Brian Paul | 2009-01-10 | 1 | -0/+3 |
| | | |||||
* | | Merge commit 'origin/gallium-0.2' into gallium-xlib-rework | Keith Whitwell | 2009-01-09 | 5 | -745/+987 |
|\| | | | | | | | | | | | Conflicts: progs/glsl/Makefile | ||||
| * | cell: replace 0 with -1 in SPE_COUNT_USABLE_SPES query | Jonathan Adamczewski | 2009-01-06 | 1 | -1/+1 |
| | | |||||
| * | cell: fix code emit for RSQ/RCP when src arg == dst arg | Brian Paul | 2009-01-05 | 1 | -6/+8 |
| | | | | | | | | Fixes moire-like artifacts seen in fslight demo. | ||||
| * | cell: SIMDize sorting in setup_sort_vertices() | Jonathan Adamczewski | 2009-01-05 | 1 | -55/+42 |
| | | | | | | | | | | | | Put setup.v{min,mid,max,provoke} into a union with qword vertex_headers. Rewrite vertex sorting to more efficiently handle the packed data items. Reduces spu_tri.o by ~128 bytes. | ||||
| * | cell: SIMDize some subtractions | Jonathan Adamczewski | 2009-01-05 | 1 | -8/+10 |
| | | | | | | | | | | | | | | Put edge.{dx,dy} into a union with a vector and perform subtractions in setup_sort_vertices() on vectors. Reduces spu_tri.o by ~300 bytes. | ||||
| * | cell: improvements to spu_tri.c | Jonathan Adamczewski | 2009-01-04 | 1 | -42/+52 |
| | | | | | | | | | | | | | | Replace int setup.span{left,right}[2] with vec_uint4 setup.span.quad SIMDize calculate_mask() and inline into into flush_spans() Set setup.span.quad members using spu_shuffle() or spu_sel(). Reduces spu_tri.o by ~116 bytes. | ||||
| * | cell: new spu_shuffle.h header | Jonathan Adamczewski | 2009-01-04 | 1 | -0/+186 |
| | | | | | | | | | | | | | | Facilitates creation of shuffle patterns for use with spu_shuffle() and si_shufb() intrinsics. To be used by subsequent patches. | ||||
| * | cell: initial codegen support for fragment shader loops | Brian Paul | 2009-01-04 | 1 | -26/+193 |
| | | | | | | | | | | | | Basic for/while loops work now. Only one level of loop nesting is supported at this time (same for if/else). The progs/glsl/mandelbrot demo works, but the colors are too dim. | ||||
| * | cell: add support for PIPE_CAP_TEXTURE_MIRROR_REPEAT query | Brian Paul | 2009-01-04 | 1 | -0/+4 |
| | | | | | | | | We don't really support this texwrap mode yet, but this enables GL 2.1 | ||||
| * | cell: clean-up, improve SPU code generation | Brian Paul | 2009-01-04 | 1 | -622/+506 |
| | | | | | | | | Start on ARL and address-relative indexing too. | ||||
| * | cell: fix typo (s/10/0) | Brian | 2009-01-03 | 1 | -2/+2 |
| | | |||||
* | | cell: fix breakage from xlib re-org | Brian Paul | 2009-01-08 | 1 | -2/+1 |
| | | | | | | | | Some of these fixes are quick band-aids for now. |