summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'origin/mesa_7_7_branch'Keith Whitwell2009-12-011-0/+7
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/svga/svga_screen_texture.c src/gallium/state_trackers/xorg/xorg_composite.c src/gallium/state_trackers/xorg/xorg_exa.c src/gallium/state_trackers/xorg/xorg_renderer.c src/gallium/state_trackers/xorg/xorg_xv.c src/mesa/main/texgetimage.c src/mesa/main/version.h
| * util: also print out memory statisticsZack Rusin2009-11-251-0/+7
| |
* | util: Fix bad code.Corbin Simpson2009-11-281-1/+1
| | | | | | | | Uf. How embarrassing.
* | util: Improve bitcount.Corbin Simpson2009-11-281-4/+8
| | | | | | | | Sorry for not pushing this before, it got lost in stashes.
* | gallium/util: added util_bswap32()Christoph Bumiller2009-11-271-0/+17
| |
* | Merge branch 'width0'Roland Scheidegger2009-11-274-34/+35
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_texture.c src/gallium/state_trackers/xorg/xorg_exa.c src/mesa/state_tracker/st_cb_texture.c
| * | gallium: fix more statetrackers/drivers for not using texture ↵Roland Scheidegger2009-11-261-4/+4
| | | | | | | | | | | | width/height/depth arrays
| * | gallium: don't use arrays for texture width,height,depthKeith Whitwell2009-11-194-30/+31
| | |
* | | util: Describe a few more formats.José Fonseca2009-11-241-0/+10
| | |
* | | gallium/util: added util_bitcount()Brian Paul2009-11-231-0/+20
| | |
* | | Merge commit 'origin/mesa_7_7_branch'Maciej Cencora2009-11-231-1/+4
|\ \ \ | | |/ | |/|
| * | gallium/util: Initialize variables in u_pack_color.h.Vinson Lee2009-11-201-1/+4
| | |
* | | util: Add MAX3 and MIN3.Corbin Simpson2009-11-201-0/+3
|/ /
* / gallium/util: replace //-style commentsBrian Paul2009-11-171-3/+3
|/
* util: Remove homegrown Windows KM profiler.José Fonseca2009-11-043-332/+0
| | | | | It's not sampling based so its results are biased towards functions called many times.
* util: Drop return value from cpuid().José Fonseca2009-10-281-10/+6
|
* util: Fix cpuid on MSVC.José Fonseca2009-10-281-1/+5
|
* gallium: Move enum pipe_error into p_defines.h.José Fonseca2009-10-253-3/+3
| | | | It's really just another define. No need for its own header.
* util: Human readable output of texture states.José Fonseca2009-10-252-0/+92
|
* util: Set cpu endianness too.José Fonseca2009-10-222-0/+4
|
* gallium/util: fix cpu detection on ppcMarc Dietrich2009-10-211-5/+9
| | | | | | As we are compiling with -D_BSD_SOURCE, sigjmp_buf and siglongjmp should be replaced by the non-sig functions (see man 3 setjmp). Tested on linux/cell.
* gallium: Permit surface_copy and surface_fill to be NULL.Corbin Simpson2009-10-172-8/+27
| | | | | | | | | | | | | Uf. Lots of files touched. Would people with working vega, xorg, dri1, etc. please make sure you are not broken, and fix yourself up if you are. There were only two or three places where the code did not have painful fallbacks, so I would advise st maintainers to find less painful workarounds, or consider overhauling util_surface_copy and util_surface_fill. Per ymanton, darktama, and Dr_Jakob's suggestions, clear has been left as-is. I will not add PIPE_CAP_BLITTER unless it is deemed necessary.
* util: Rename from u_* to util_* while we're at it.José Fonseca2009-10-173-62/+62
| | | | To be consistent with the rest.
* util: Change function names to begin with u_.Corbin Simpson2009-10-162-36/+38
| | | | Avoids link-time clashes with Mesa's internal hash table.
* util: Fix cpu detection on Windows. Cleanup.José Fonseca2009-10-141-10/+9
|
* util: Force ESI register for cpuid's ebx result.José Fonseca2009-10-091-1/+1
| | | | | | Fixes a segfault and better code. Unfortunately using an arbitrary register ("=r") causes the gcc to abort when the code is optimized saying it can't satisfy the constraint. Setting seems to do the trick.
* util: do some more util_blit_pixels cases without temporariesKeith Whitwell2009-10-071-90/+73
| | | | | | When the source surface is pointing at a 2d texture with only one mipmap level, use that directly rather than creating a temporary. Probably want to cover more cases, but this is a start.
* Merge branch 'mesa_7_6_branch'Brian Paul2009-10-053-2/+3
|\ | | | | | | | | | | Conflicts: src/gallium/auxiliary/util/u_cpu_detect.c
| * gallium: replace // comments with /* */Brian Paul2009-10-023-3/+3
| |
| * gallium/util: silence uninitialized var warningBrian Paul2009-10-011-0/+1
| |
* | util: Improve the cpuid assembly.José Fonseca2009-10-051-10/+12
| | | | | | | | | | | | No need to save ebx on 64bit. Use just xchgl. Refer to gcc's cpuid.h header. Thanks to Uros Bizjak for pointing this out.
* | util: add lost code to util_make_fragment_tex_shader_writemask()Keith Whitwell2009-10-051-1/+9
| | | | | | | | | | This got ported to ureg at some point, but lost the code that distinguishes it from regular util_make_fragment_tex_shader().
* | util: Make assert a no-op on non-debug builds.José Fonseca2009-10-041-1/+4
| | | | | | | | | | | | | | | | | | This ensures that an assertion like assert(expensive_test()); won't have any penalty on release builds. It also implies that no vital code should be in assert expressions.
* | util: Fix cpuid invocation for x86_64.José Fonseca2009-10-041-11/+23
| |
* | gallium: Preparations for adding more PIPE_TRANSFER_* usage flags.Michel Dänzer2009-10-021-2/+2
| | | | | | | | | | | | Always test for PIPE_TRANSFER_READ/WRITE using the bit-wise and operator, and add a pipe_transfer_buffer_flags() helper for getting the buffer usage flags corresponding to them.
* | util: Enable sockets on BSDRobert Noland2009-10-012-4/+4
| | | | | | | | | | | | | | I think this should be safe for all of the BSDs. Signed-off-by: Robert Noland <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* | 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
| | |
| * | 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 util_next_power_of_two() for rounding a uint up to a POT.Younes Manton2009-09-271-0/+20
| | |
* | | 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]>
* | | | 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/ureg: VS inputs don't have any semantic tags, just an indexKeith Whitwell2009-09-121-3/+1
| | | | | | | | | | | | | | | | Fix ureg_DECL_vs_input to reflect this and fix up all callers.