summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* gallium debug: Add gcc printf hint to debug_printfNicolai Hähnle2009-09-211-3/+11
| | | | | | | This causes gcc to issue warnings when format parameters do not match up with the format string in calls to debug_printf. Signed-off-by: Nicolai Hähnle <[email protected]>
* tgsi: Scan input interpolators, too.Michal Krol2009-09-172-0/+2
|
* util: Add _BitScanForward intrinsic's declaration.José Fonseca2009-09-141-1/+3
| | | | It is missing in some Microsoft DDKs.
* util: Fix a1r5g5b5's format description.José Fonseca2009-09-141-1/+1
|
* tgsi: handle some src/dst aliasing in tgsi_sse2.cKeith Whitwell2009-09-131-8/+23
| | | | | | | | | | | | Src/Dst aliasing (aka SOA dependencies) requires some care to ensure intermediate results do not overwrite yet-to-be read source registers. This change ensures that MOV/SWZ handle this correctly, which is poor but no worse than the current tgsi_exec.c path. Remove the fallback as there is nothing to be gained correctness-wise between the two implementations now. Fixing this properly looks like a bit of work in this code, but might be easily achieved by sending destination writes to temporary storage.
* tgsi: implement saturationKeith Whitwell2009-09-121-17/+26
| | | | Fix recent performance regression.
* tgsi: add missing implementation of constant decl changeKeith Whitwell2009-09-121-8/+61
|
* ureg: add a mechanism to get the built tokens rather than a full shaderKeith Whitwell2009-09-122-0/+30
| | | | | | Previously ureg would always call the driver's create-shader function. This allows the caller the opportunity to hold onto the tokens if it needs to reuse them, eg. to create an internal draw shader.
* ureg: add generic emitters for tex and branch instructionsKeith Whitwell2009-09-122-11/+80
| | | | Couldn't previously emit these except by calling the opcode-specific helper.
* tgsi/ureg: give ureg_DECL_constant an explicit index parameterKeith Whitwell2009-09-122-2/+6
| | | | | Avoid the need to emit all constant declarations in order. Makes referring to a specific constant in the constant buffer much easier.
* tgsi/ureg: VS inputs don't have any semantic tags, just an indexKeith Whitwell2009-09-123-41/+38
| | | | Fix ureg_DECL_vs_input to reflect this and fix up all callers.
* tgsi: free tokens on errorKeith Whitwell2009-09-121-0/+3
|
* tgsi: sanity check ureg programsKeith Whitwell2009-09-121-0/+10
|
* tgsi: add const qualifierKeith Whitwell2009-09-122-2/+2
|
* util: remove unneeded #includesBrian Paul2009-09-101-6/+0
|
* util: minor clean-ups, reformattingBrian Paul2009-09-101-17/+12
|
* Merge branch 'mesa_7_6_branch'Brian Paul2009-09-102-14/+43
|\
| * tgsi: use new tgsi_call_record to handle execution mask stacksBrian Paul2009-09-102-14/+43
| | | | | | | | This fixes some issues when "return"ing from nested loops/conditionals.
| * gallium: Add PIPE_OS_APPLE back to auxiliary/util/u_time.h.Vinson Lee2009-09-101-1/+1
| | | | | | | | Fixes typo from commit c6c44bf48124dd5b4661014a8d58482c5a54557f.
* | 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.