summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* util: Cleanup u_cpu_detect, build. Support X86_64 and detect SSE4.1 too.José Fonseca2009-09-294-415/+410
| | | | | | | | | | I was waiting for the need to use this code to arise, and it finally came. I've tested building this on Linux and Windows, both x86 and x64_64. But it might break other platforms. Please bear with me and help me fix it. Many thanks to Dennis Smit who submitted this, and Eric Anholt whose work this was based on.
* Merge branch 'mesa_7_6_branch'Brian Paul2009-09-281-0/+11
|\
| * Merge branch 'mesa_7_5_branch' into mesa_7_6_branchBrian Paul2009-09-281-0/+11
| |\
| | * gallium/util: add sanity check assertionsBrian Paul2009-09-281-0/+11
| | |
* | | g3dvl: Fix MSVC build.José Fonseca2009-09-285-52/+95
| | | | | | | | | | | | pipe/p_compiler for integer types. No declarations out of scope.
* | | g3dvl: Missing semicolon.Younes Manton2009-09-271-1/+1
| | |
* | | g3dvl: Formatting and cleanups.Younes Manton2009-09-274-195/+113
| | |
* | | g3dvl: pipe_video_context interface, softpipe impl, auxiliary libsYounes Manton2009-09-2710-0/+2872
| | |
* | | util: Add util_next_power_of_two() for rounding a uint up to a POT.Younes Manton2009-09-271-0/+20
| | |
* | | Merge branch 'mesa_7_6_branch'Brian Paul2009-09-241-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/r600/r700_assembler.c src/mesa/drivers/dri/r600/r700_chip.c src/mesa/drivers/dri/r600/r700_render.c src/mesa/drivers/dri/r600/r700_vertprog.c src/mesa/drivers/dri/r600/r700_vertprog.h src/mesa/drivers/dri/radeon/radeon_span.c
| * | tgsi/sse: Pass the lodbias, not zero. More comments.Brian Paul2009-09-241-5/+5
| | | | | | | | | | | | This fixes the glean/glsl1 "texture2D(), with bias" test when using SSE.
* | | tgsi/sse: remove old commentsBrian Paul2009-09-241-8/+0
| | |
* | | tgsi/sse: implement SEQ, SGT, SLE, SNEBrian Paul2009-09-241-4/+4
| | |
* | | pipebuffer: fix printf warningsKeith Whitwell2009-09-241-1/+1
| | |
* | | pipebuffer: fix warningsKeith Whitwell2009-09-241-2/+2
| | |
* | | draw: fix warningKeith Whitwell2009-09-241-1/+1
| | |
* | | Merge branch 'softpipe-opt'Keith Whitwell2009-09-231-0/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: progs/demos/cubemap.c src/gallium/drivers/softpipe/sp_tex_sample.c src/gallium/drivers/softpipe/sp_texture.c
| * | | util: add util_is_power_of_two functionKeith Whitwell2009-08-211-0/+8
| | | |
| * | | softpipe: shortcircuit repeated lookups of the same tileKeith Whitwell2009-07-221-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sp_tile_cache is often called repeatedly to look up the same tile. Add a cache (to the cache) of the single tile most recently retreived and make a quick inline check to see if this matches the subsequent request. Add a tile_address bitfield struct to make this check easier.
| * | | util: _debug_printf should print even when DEBUG is not definedKeith Whitwell2009-07-221-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The leading underscore is meaningful... This function is used by _warning and _error functions as well as the more common debug_printf(). debug_printf (without underscore) gets turned off when DEBUG is disabled, but warning/error messages still use this function to get their message out.
* | | | 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
| | |