summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* tgsi: remove redundant CND0 opcodeKeith Whitwell2009-09-015-21/+2
| | | | Can be implemented with CMP src2, src1, src0
* util: Auto generate pixel format accessor functions fromJosé Fonseca2009-08-308-93/+699
| | | | | | | | | | | | This has several advantages over the u_ - not hand written - no intermediate memcpy of raw pixels - supports 4 ubytes in addition to floats - no need to pass a pipe_transfer It also has (hopefully temporary) limitations: - no support for YUV - no support for SRGB
* Merge branch 'mesa_7_5_branch'Michel Dänzer2009-08-301-2/+6
|\ | | | | | | | | Conflicts: src/glx/x11/glxcmds.c
| * util: Reset size to zero when failed to allocate buffer.José Fonseca2009-08-281-2/+6
| |
* | util: Add util_unsigned_logbase2.José Fonseca2009-08-291-0/+12
| | | | | | | | Cherry picked from Keith's commit f911c3b9897b90132c8621a72bfeb824eb3b01e5.
* | util: Dump PIPE_FUNC_x value names.José Fonseca2009-08-292-0/+29
| |
* | util: Fix SCons build.José Fonseca2009-08-291-0/+4
| |
* | util: Auto-generate u_format_table.c from SConscript.José Fonseca2009-08-291-0/+7
| |
* | util: Fix blend factor dumping.José Fonseca2009-08-291-0/+2
| |
* | util: New file dedicated to dump state in human/machine readable format.José Fonseca2009-08-294-0/+225
| |
* | util: Make pixel format layout more meaningful.José Fonseca2009-08-293-109/+114
| | | | | | | | | | Namelly, explicitly distinguish formats coded by arithmetic manipulation, from formats layed out in array.
* | util: Don't commit u_format_table.cJosé Fonseca2009-08-292-1925/+1
| | | | | | | | At least not until stabilizes, to reduce noise.
* | util: Fix r5g6b5 description.José Fonseca2009-08-293-10/+13
| |
* | util: Pixel format database.José Fonseca2009-08-297-0/+2397
| | | | | | | | | | | | | | There are some inconsistencies in pipe_format, but above all, there simply aren't enough bits in an enum to conveniently store all information about a pixel format we need to be able to dynamically generate pixel packing/unpacking code.
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-08-272-0/+206
|\|
| * gallium/util: added support for SRGB formatsBrian Paul2009-08-271-0/+196
| | | | | | | | Fixes glean/texture_srgb failure, bug #23449.
| * gallium/util: added cases for SRGB formatsBrian Paul2009-08-271-0/+10
| |
| * tgsi: check for SOA dependencies in SSE and PPC code generatorsBrian Paul2009-08-202-0/+8
| | | | | | | | Fall back to interpreter for now. This doesn't happen very often.
| * tgsi: handle SOA dependencies for MOV/SWZBrian Paul2009-08-202-14/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SOA dependencies can happen when a register is used both as a source and destination and the source is swizzled. For example: MOV T, T.yxwz; would expand into: MOV t0, t1; MOV t1, t0; MOV t2, t3; MOV t3, t2; The second instruction will produce the wrong result since we wrote to t0 in the first instruction. We need to use an intermediate temporary to fix this. This will take more work to fix for all TGSI instructions. This seems to happen with MOV instructions more than anything else so fix that case now and warn on others. Fixes piglit glsl-vs-loop test (when not using SSE). See bug 23317.
| * tgsi: added tgsi_full_instruction::Flags fieldBrian Paul2009-08-202-0/+3
| | | | | | | | Users of the parser can make use of this.
* | tgsi: Fix build error due to commit acc7da90Cooper Yuan2009-08-241-6/+6
| |
* | tgsi: Only free temp uregs.José Fonseca2009-08-241-2/+3
| | | | | | | | | | Shorthand. (cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b)
* | tgsi: Pass pipe_context as a parameter to ureg_create_shader.José Fonseca2009-08-242-14/+30
| | | | | | | | | | Simplifies migration to tgsi_ureg. (cherry picked from commit f574398c07c41cb8d31249a7186fc178ef7d552a)
* | tgsi: add generic instruction builderKeith Whitwell2009-08-242-0/+33
| | | | | | | | | | | | When translating an incoming shader (rather than building one from scratch) it's preferable to be able to call a single, generic instruction emitter rather than figuring out which of the opcode-specific functions to call.
* | tgsi: when printing/dumping programs indent loops and conditionalsBrian Paul2009-08-201-0/+35
| |
* | tgsi: check for SOA dependencies in SSE and PPC code generatorsBrian Paul2009-08-202-0/+8
| | | | | | | | Fall back to interpreter for now. This doesn't happen very often.
* | tgsi: handle SOA dependencies for MOV/SWZBrian Paul2009-08-202-14/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SOA dependencies can happen when a register is used both as a source and destination and the source is swizzled. For example: MOV T, T.yxwz; would expand into: MOV t0, t1; MOV t1, t0; MOV t2, t3; MOV t3, t2; The second instruction will produce the wrong result since we wrote to t0 in the first instruction. We need to use an intermediate temporary to fix this. This will take more work to fix for all TGSI instructions. This seems to happen with MOV instructions more than anything else so fix that case now and warn on others. Fixes piglit glsl-vs-loop test (when not using SSE). See bug 23317.
* | tgsi: added tgsi_full_instruction::Flags fieldBrian Paul2009-08-202-0/+3
| | | | | | | | Users of the parser can make use of this.
* | gallium: rename copy/fill_rect utility functionsBrian Paul2009-08-193-8/+8
| |
* | tgsi: Add missing include.José Fonseca2009-08-191-0/+1
| | | | | | | | (cherry picked from commit d2787c02c130b1fe20d0c032d468622f2fdaef79)
* | tgsi: Fix typo in ureg constant creation.José Fonseca2009-08-191-1/+1
| | | | | | | | (cherry picked from commit aa40c9abc7787fdf46cb661a4d0bb8bec513fc63)
* | tgsi: silence compiler warningKeith Whitwell2009-08-191-1/+1
| |
* | tgsi: remove unused function argumentKeith Whitwell2009-08-191-4/+2
| |
* | tgsi: add missing functionality to support instructions with labelsKeith Whitwell2009-08-192-1/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Could previously emit opcodes with label arguments, but was no way to patch them with the actual destinations of those labels. Adds two functions: ureg_get_instruction_number - to get the id of the next instruction to be emitted ureg_fixup_label - to patch an emitted label to point to a given instruction number. Need some more complex examples than u_simple_shader, so far this has only been compile-tested.
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-08-182-0/+9
|\|
| * tgsi/ppc: we don't implement saturation modes yetBrian Paul2009-08-181-0/+5
| |
| * tgsi/sse: we don't implement saturation modes yetBrian Paul2009-08-181-0/+4
| | | | | | | | Fixes piglit fp-generic tests/shaders/generic/lrp_sat.fp, bug 23316.
* | gallium: memset() tgsi_exec_machine to all zeros in tgsi_exec_machine_create()Brian Paul2009-08-171-8/+2
| | | | | | | | This fixes invalid values for CondStackTop, LoopStackTop, etc.
* | tgsi: add simple facility for releasing and reusing temporariesKeith Whitwell2009-08-132-4/+40
| |
* | tgsi: rename ureg src/dest convertersKeith Whitwell2009-08-131-3/+3
| | | | | | | | Also fix a typo in ureg_src().
* | draw: Remove unused variable.José Fonseca2009-08-131-1/+0
| |
* | Merge branch 'mesa_7_5_branch'Keith Whitwell2009-08-131-22/+55
|\|
| * draw: cope with more primitives in draw_pipeline_runKeith Whitwell2009-08-131-22/+55
| | | | | | | | | | | | | | | | This previously was used only for decomposed (POINT/LINE/TRI) primitives, but for some time a full range of primitives could end up in here. Fixes trivial/lineloop-clip on softpipe, among others. (cherry picked from commit 87cd8a3b8a2407b30916be418ff2f95dfea5d2ad)
| * util: fix incorrect assertionBrian Paul2009-08-061-1/+1
| | | | | | | | Check that the dest surface/format is renderable.
| * util: include u_surface.h, added commentBrian Paul2009-08-061-0/+2
| |
| * util: use util_same_surface() to compare surface pointersBrian Paul2009-08-061-3/+3
| |
| * util: added util_same_surface() helper functionBrian Paul2009-08-061-0/+17
| |
* | tgsi: turn off debuggingKeith Whitwell2009-08-131-1/+1
| |
* | tgsi: use REALLOC for growing token poolKeith Whitwell2009-08-131-11/+5
| |
* | util: silence warnings for third REALLOC argumentKeith Whitwell2009-08-131-1/+7
| | | | | | | | | | | | Our fallback realloc path requires an old_size argument, but the posix varient doesn't need this. Add some code to avoid gcc unused variable warnings for this extra argument.