summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Nouveau: move the definition of log2i() to headerPekka Paalanen2008-12-137-156/+33
| | | | | | | Also make the type unsigned instead of signed, since negative values do not make sense. Signed-off-by: Pekka Paalanen <[email protected]>
* nouveau: remove useless NOUVEAU_BO_SWIZZLED flag, copy/paste nv40 work to ↵Patrice Mandin2008-12-126-42/+167
| | | | swizzle textures
* Merge commit 'origin/gallium-0.1' into gallium-0.2Brian Paul2008-12-101-0/+20
|\
| * gallium: added draw_set_mrd() function to fix polygon offsetBrian Paul2008-12-101-0/+20
| | | | | | | | | | | | | | | | The Minimum Resolvable Depth factor depends on the driver and can't just be computed from the number of Z buffer bits. Glean's polygon offset test now passes with softpipe. Still need to determine the MRD factor for other gallium drivers, if they use the draw module's polygon offset stage...
* | nouveau: make nv20 use NV{20,25}TCL objectsPekka Paalanen2008-12-076-252/+367
| | | | | | | | | | | | | | Up till now, nv20 driver has been using NV10TCL, and being really an nv10 driver. That has changed. Signed-off-by: Pekka Paalanen <[email protected]>
* | i915: Silence warningsJakob Bornecrantz2008-12-051-0/+2
| |
* | softpipe: plug in softpipe's texture samplers into draw module.Brian2008-12-042-0/+18
| |
* | gallium: added PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS queryBrian2008-12-041-0/+2
| |
* | nouveau: Calc pitch for swizzled textures appropriately.Younes Manton2008-12-021-4/+3
| |
* | nouveau: Use swizzled textures & render targets on nv40 when possible.Younes Manton2008-12-025-10/+130
| |
* | nouveau: nv04-nv40 linear <-> swizzled conversion.Younes Manton2008-12-021-0/+2
| |
* | 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
| |\ \ \ \ \ \ \ \