summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* tgsi: add tgsi_declaration fields for centroid sampling, invariant optimizationBrian Paul2008-11-243-1/+13
|
* gallium: massage sp_vbuf_draw() and sp_vbuf_draw_arrays() to look more alikeBrian Paul2008-11-241-12/+17
| | | | Also, update some comments.
* util: Add generic tile and detile functionsJakob Bornecrantz2008-11-243-0/+130
|
* softpipe: remove old/unneeded dependencies between TGSI exec and softpipeBrian2008-11-239-148/+216
| | | | | 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-2111-68/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* gdi: Reimplement using the WGL statetracker.José Fonseca2008-11-217-2464/+352
|
* 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.
* Merge commit 'origin/gallium-0.1' into gallium-0.2Keith Whitwell2008-11-197-98/+333
|\
| * python/retrace: Dump constants.José Fonseca2008-11-201-2/+15
| |
| * python: Allow to read from buffers.José Fonseca2008-11-202-1/+31
| |
| * python/retrace: Fix formatting of shaders.José Fonseca2008-11-191-5/+11
| |
| * python/retrace: Ignore irrelevant calls.José Fonseca2008-11-191-0/+10
| |
| * python/retrace: Highlight the trace dump to help to visualize.José Fonseca2008-11-194-35/+185
| |
| * python/retrace: Use the usual BSD-style license.José Fonseca2008-11-193-54/+78
| |
| * gallium: Use costum log2 for all windows builds.José Fonseca2008-11-171-6/+8
| |
| * gallium: State when there are no memory leaks detected.José Fonseca2008-11-171-0/+6
| |
| * gallium: Make handle_table reentrant.José Fonseca2008-11-171-8/+26
| | | | | | | | | | | | | | Ensure that the object has consistent state also when calling the destroy callback. Namely, ensure the object passed to the callback is removed from the table prior to calling the destroy callback to avoid a infinite loop or double free.
* | tgsi: Return 0.0 for negative constant register indices.Michal Krol2008-11-181-8/+16
| |
* | tgsi: Keep address register as a floating point.Michal Krol2008-11-181-20/+9
| |
* | scons: Support MinGW32 cross compiler.José Fonseca2008-11-181-0/+6
| | | | | | | | | | | | | | | | To build an alternative opengl32.dll with Gallium's software-rasterizer from a debian-based distribution run: sudo apt-get install mingw32 scons platform=windows toolchain=crossmingw machine=x86 winsys=gdi dri=no
* | gallium: State when there are no memory leaks detected.José Fonseca2008-11-171-0/+6
| |
* | gallium: Make handle_table reentrant.José Fonseca2008-11-171-8/+26
| | | | | | | | | | | | | | Ensure that the object has consistent state also when calling the destroy callback. Namely, ensure the object passed to the callback is removed from the table prior to calling the destroy callback to avoid a infinite loop or double free.
* | gallivm: fix some small stuff.Stephane Marchesin2008-11-162-3/+3
| |
* | i915: Silence warningsJakob Bornecrantz2008-11-163-4/+8
| |
* | Merge commit 'origin/gallium-0.1' into gallium-0.2Keith Whitwell2008-11-154-118/+212
|\| | | | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_util.c
| * gallium: increase table size for fast log/pow functionsBrian Paul2008-11-142-4/+6
| | | | | | | | The various conformance tests pass now.
| * util: Use OpenGL rasterization rules in blits and mipmap generation.Brian Paul2008-11-142-0/+2
| |
| * translate: pull in prefetch and other optimizations from draw_vs_aos.cKeith Whitwell2008-11-142-112/+204
| |
| * util: Optimise log2().Michal Krol2008-11-121-1/+2
| |
| * util: Add log2() definition for MSC.Michal Krol2008-11-121-0/+5
| |
| * draw: Add missing include.Michal Krol2008-11-121-0/+1
| |
| * gallium: fix comment again. A half-closed interval was intended.Brian2008-11-101-2/+2
| | | | | | | | Never saw the [a,b[ notation before.
* | i915: Silence warningJakob Bornecrantz2008-11-151-1/+1
| |
* | CELL: fix stencil twiddling, stencil invertRobert Ellison2008-11-132-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-13205-0/+43419
|\ \ | | | | | | | | | 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-1220-2/+3306
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-084-2/+13
| | | | | | | | | | | | | | | | 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]>
| * | | nouveau: remove previous hack around x86_64 breakageBen Skeggs2008-11-101-2/+0
| | | | | | | | | | | | | | | | This hack now causes breakage *doh*. :)
| * | | nv40: init pipe_surface correctlyBen Skeggs2008-11-101-0/+2
| | | |
| * | | nouveau: pass object handle not pointer to GPU...Ben Skeggs2008-11-101-1/+1
| | | |
| * | | Merge remote branch 'origin/gallium-0.2' into gallium-0.2Ben Skeggs2008-11-1048-584/+1806
| |\ \ \
| * | | | 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-2741-1088/+452
| |\ \ \ \ | | | |/ / | | |/| |