summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
Commit message (Collapse)AuthorAgeFilesLines
* softpipe: minor tweaks, clean-upsBrian2008-12-011-13/+4
|
* softpipe: compute nearest/linear texcoords four at a time.Brian2008-12-011-335/+413
| | | | A small step toward SIMD-izing the code.
* gallium: minor texture-related clean-ups, comments, etcBrian2008-12-012-17/+17
|
* Nouveau: nv{10,20} set_primitive API fixPekka Paalanen2008-11-303-5/+15
| | | | | | | Also changes nvgl_primitive() to return zero, i.e. error, on unknown primitive. Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: nv20 build fix: forgotten includePekka Paalanen2008-11-301-0/+1
| | | | Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: fix minor API change in surface_copyPekka Paalanen2008-11-304-4/+4
| | | | Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: update nouveau_class.hPekka Paalanen2008-11-303-60/+1807
| | | | | | Fresh from renouveau. Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: nv20 (nv10) immediate vertex submissionPekka Paalanen2008-11-301-35/+191
| | | | | | This is nv10 commands, but is in nv20 source files. Signed-off-by: Pekka Paalanen <[email protected]>
* Nouveau: properly redo nv20_vertex_layout.Pekka Paalanen2008-11-301-15/+68
| | | | | | This is still for NV10 hardware. Signed-off-by: Pekka Paalanen <[email protected]>
* softpipe: Fix function prototype.Michal Krol2008-11-252-2/+2
|
* gallium: massage sp_vbuf_draw() and sp_vbuf_draw_arrays() to look more alikeBrian Paul2008-11-241-12/+17
| | | | Also, update some comments.
* softpipe: remove old/unneeded dependencies between TGSI exec and softpipeBrian2008-11-237-135/+210
| | | | | Use tgsi_sampler struct as a base class. Softpipe subclasses it and adds the fields it needs.
* CELL: use variant-length fragment ops programsRobert Ellison2008-11-218-64/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a set of changes that optimizes the memory use of fragment operation programs (by using and transmitting only as much memory as is needed for the fragment ops programs, instead of maximal sizes), as well as eliminate the dependency on hard-coded maximal program sizes. State that is not dependent on fragment facing (i.e. that isn't using two-sided stenciling) will only save and transmit a single fragment operation program, instead of two identical programs. - Added the ability to emit a LNOP (No Operation (Load)) instruction. This is used to pad the generated fragment operations programs to a multiple of 8 bytes, which is necessary for proper operation of the dual instruction pipeline, and also required for proper SPU-side decoding. - Added the ability to allocate and manage a variant-length struct cell_command_fragment_ops. This structure now puts the generated function field at the end, where it can be as large as necessary. - On the PPU side, we now combine the generated front-facing and back-facing code into a single variant-length buffer (and only use one if the two sets of code are identical) for transmission to the SPU. - On the SPU side, we pull the correct sizes out of the buffer, allocate a new code buffer if the one we have isn't large enough, and save the code to that buffer. The buffer is deallocated when the SPU exits. - Commented out the emit_fetch() static function, which was not being used.
* CELL: improve twiddling/untwiddling error textRobert Ellison2008-11-201-2/+2
| | | | | | As suggested by Brian Paul: in the case of a twiddling error, instead of reporting the bad format number (which is all but unusable), report the more useful enum name.
* i915: Silence warningsJakob Bornecrantz2008-11-163-4/+8
|
* CELL: fix stencil twiddling, stencil invertRobert Ellison2008-11-131-2/+4
| | | | | | | | | | | | | Many stencil tests were failing because of a failure to read the stencil buffer, due to "twiddling" (or "untwiddling") "an unsupported texture format". This is fixed for the case of a stencil/Z S824Z format (which twiddles just like the 32-bit color formats). tests/stencilwrap.c was failing on the GL_INVERT test, because the emitted code for "spe_xori" turned out not to be an actual "xori" instruction, but rather a "stqd" instruction, because of a typo in the rtasm code. This is now fixed, and tests/stencil_wrap now works.
* Merge branch 'gallium-0.2' of ↵Stephane Marchesin2008-11-13126-0/+30680
|\ | | | | | | git+ssh://[email protected]/git/nouveau/mesa into gallium-0.2
| * nv04..nv30: fix pipe_surface initPekka Paalanen2008-11-124-0/+8
| | | | | | | | Signed-off-by: Pekka Paalanen <[email protected]>
| * Merge commit 'origin/gallium-0.1' into gallium-0.2Pekka Paalanen2008-11-1217-0/+3299
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'origin/gallium-0.1': Mesa: fix number of buffers in st_draw_vbo(). Nouveau: fix nv20_vertex_layout() Nouveau: update nv20 miptree according to nv40. Nouveau: build, link and use nv20. Nouveau: name replace for nv20. Nouveau: Rename nv20/ files as nv20. Nouveau: copy nv30_vertprog.c to nv20. Nouveau: start nv20 by copying the nv10 tree.
| | * Nouveau: fix nv20_vertex_layout()Pekka Paalanen2008-11-091-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | The function should update nv20->vertex_info, and not just a local struct that's thrown away immediately. Fixes a SIGFPE due to vbuf->vertex_size = 0 in vbuf_alloc_vertices(). Signed-off-by: Pekka Paalanen <[email protected]>
| | * Nouveau: update nv20 miptree according to nv40.Pekka Paalanen2008-11-081-11/+18
| | | | | | | | | | | | | | | | | | glxinfo doesn't degfault anymore. Signed-off-by: Pekka Paalanen <[email protected]>
| | * Nouveau: build, link and use nv20.Pekka Paalanen2008-11-081-0/+6
| | | | | | | | | | | | Signed-off-by: Pekka Paalanen <[email protected]>
| | * Nouveau: name replace for nv20.Pekka Paalanen2008-11-0816-662/+662
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No functional changes, only changed function, struct, macro etc. names. nv10 -> nv20 nv30 -> nv20 celsius -> kelvin Did not touch fifo command macros. Don't try to build nv20_vertprog.c for now. Signed-off-by: Pekka Paalanen <[email protected]>
| | * Nouveau: Rename nv20/ files as nv20.Pekka Paalanen2008-11-0816-12/+13
| | | | | | | | | | | | Signed-off-by: Pekka Paalanen <[email protected]>
| | * Nouveau: copy nv30_vertprog.c to nv20.Pekka Paalanen2008-11-081-0/+838
| | | | | | | | | | | | Signed-off-by: Pekka Paalanen <[email protected]>
| | * Nouveau: start nv20 by copying the nv10 tree.Pekka Paalanen2008-11-0815-0/+2447
| | | | | | | | | | | | Signed-off-by: Pekka Paalanen <[email protected]>
| * | nv40: init pipe_surface correctlyBen Skeggs2008-11-101-0/+2
| | |
| * | Merge remote branch 'origin/gallium-0.2' into gallium-0.2Ben Skeggs2008-11-1018-219/+497
| |\ \
| * | | nv40: rename some vars in texture layout codeBen Skeggs2008-10-291-25/+27
| | | |
| * | | Merge remote branch 'nouveau/gallium-0.1' into gallium-0.2Ben Skeggs2008-10-274-16/+78
| |\ \ \ | | | |/ | | |/|
| | * | nouveau: add flag for swizzled surface uploadPatrice Mandin2008-09-212-15/+20
| | | |
| | * | nv50: use 3D engine clears, 2D engine doesn't understand zeta formatsBen Skeggs2008-09-181-1/+56
| | | |
| | * | nv50: hack surface alloc a bit for nowBen Skeggs2008-09-181-0/+2
| | | |
| | * | Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1Ben Skeggs2008-09-182-3/+5
| | |\ \
| * | \ \ Merge remote branch 'origin/gallium-0.2' into gallium-0.2Ben Skeggs2008-10-2728-451/+1056
| |\ \ \ \
| * \ \ \ \ Merge remote branch 'origin/gallium-0.2' into gallium-0.2Ben Skeggs2008-10-1530-1019/+2634
| |\ \ \ \ \
| * \ \ \ \ \ Merge remote branch 'origin/gallium-0.2' into gallium-0.2Ben Skeggs2008-09-3024-995/+2959
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge remote branch 'upstream/gallium-0.2' into nouveau-gallium-0.2Ben Skeggs2008-09-131-2/+4
| |\ \ \ \ \ \ \ | | |_|_|_|/ / / | |/| | | | | |
| * | | | | | | Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1Ben Skeggs2008-09-1219-535/+2257
| |\ \ \ \ \ \ \
| * | | | | | | | nouveau: gallium directory structure changed again..Ben Skeggs2008-09-1144-76/+55
| | | | | | | | |
| * | | | | | | | Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1Ben Skeggs2008-09-11128-2181/+2941
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configs/default
| * | | | | | | | | nv30: set fp samplers with fragprog generationPatrice Mandin2008-08-312-5/+3
| | | | | | | | | |
| * | | | | | | | | nv30: activate fp texture units when needed, to get texturingPatrice Mandin2008-08-301-0/+4
| | | | | | | | | |
| * | | | | | | | | nv30: add some opcodes.Stephane Marchesin2008-08-182-0/+17
| | | | | | | | | |
| * | | | | | | | | nv30: set mipmap min/max lod accordinglyPatrice Mandin2008-08-141-2/+2
| | | | | | | | | |
| * | | | | | | | | nv30: disable setting nv40 RECT bit, this is not the same on nv30, plus ↵Patrice Mandin2008-08-141-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gallium does not support rectangle textures currently, only full POT or NPOT
| * | | | | | | | | nv30: does not support mirror clamp, only mirror repeatPatrice Mandin2008-08-141-0/+4
| | | | | | | | | |
| * | | | | | | | | nv30/nv40: KIL/KILP swapped meaningsBen Skeggs2008-08-142-4/+4
| | | | | | | | | |
| * | | | | | | | | Merge remote branch 'origin/gallium-0.1' into nouveau-gallium-0.1Ben Skeggs2008-08-149-158/+139
| |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | nouveau: pf_sprint_name -> pf_nameBen Skeggs2008-08-117-33/+13
| | | | | | | | | | |