summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* util: Add PIPE_OS_APPLE back to auxiliary/util/u_time.h.Vinson Lee2009-09-101-1/+1
| | | | Fixes typo from commit c6c44bf48124dd5b4661014a8d58482c5a54557f.
* util: Fix depth/stencil format description.José Fonseca2009-09-091-4/+4
| | | | Inverse channel order.
* Merge branch 'mesa_7_6_branch'Brian Paul2009-09-097-15/+20
|\
| * Merge branch 'mesa_7_5_branch' into mesa_7_6_branchBrian Paul2009-09-091-2/+0
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile configs/default progs/glsl/Makefile src/gallium/auxiliary/util/u_simple_shaders.c src/gallium/state_trackers/glx/xlib/xm_api.c src/mesa/drivers/dri/i965/brw_draw_upload.c src/mesa/drivers/dri/i965/brw_vs_emit.c src/mesa/drivers/dri/intel/intel_context.h src/mesa/drivers/dri/intel/intel_pixel.c src/mesa/drivers/dri/intel/intel_pixel_read.c src/mesa/main/texenvprogram.c src/mesa/main/version.h
| | * util: add version of u_blit_pixels which takes a writemaskKeith Whitwell2009-09-024-15/+100
| | | | | | | | | | | | Values outside the writemask are set in the destination to {0,0,0,1}
| | * draw: remove unused variableKeith Whitwell2009-09-021-1/+0
| | |
| * | gallium: Added HaikuOS platformaljen2009-09-096-13/+20
| | |
* | | gallium: added r8g8b8_get/put_tile_rgba()Brian Paul2009-09-081-1/+53
| | |
* | | util: Add super simple fifoJakob Bornecrantz2009-09-091-0/+94
| | |
* | | util: Utility function to check if a number is a power of two.José Fonseca2009-09-071-0/+10
|/ /
* | tgsi: Document differencies between vs_1_1 and vs_2_0 for EXPP and LOGP.Michal Krol2009-09-041-2/+12
| |
* | util: add version of u_blit_pixels which takes a writemaskKeith Whitwell2009-09-034-15/+69
| | | | | | | | Values outside the writemask are set in the destination to {0,0,0,1}
* | aux/tgsi: pull back ureg work from 0.1 branchKeith Whitwell2009-09-0311-174/+429
| | | | | | | | | | Manual merge of ureg changes on the branch. Too much unrelated stuff for a proper merge.
* | 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.