summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
AgeCommit message (Collapse)Author
2009-12-10gallium/util: added framebuffer compare, copy util funcsBrian Paul
2009-12-09Revert "Simplify the redundant meaning of format layout."Michal Krol
This reverts commit eb926ddf9eee1095c7fc12013f0b8375bbaeca6f.
2009-12-09util: Document the meaning of util_format_layout.José Fonseca
The util_format_layout name was unfortunate and there are as been a lot of confusion due to this. Hopefully this will shed some light on what it was meant for. Bottom line is: do not rely on these values unless you're automatically code generating pixel packing/unpacking routines. Suggestions for better names than util_format_layout are welcome!
2009-12-08Simplify the redundant meaning of format layout.Michal Krol
We really just need to know whether the format is compressed or not. For more detailed information format colorspace should suffice.
2009-12-08Merge branch 'gallium-strict-aliasing'Roland Scheidegger
2009-12-08util/format: Take advantage of sequential nature of pipe_format enum.Michal Krol
Make sure the format descriptor table can be indexed directly.
2009-12-08util/format: Remove unreferenced local.Michal Krol
2009-12-08Remove remaining pipe format utility functions.Michal Krol
Depricate pf_type(), pf_size_*(), pf_layout() and pf_exp2(). Map depricated PIPE_FORMAT_TYPE to new UTIL_FORMAT_ values: UNKNOWN = TYPE_VOID UNORM = TYPE_UNSIGNED + LAYOUT_ARITH SNORM = TYPE_SIGNED + LAYOUT_ARITH FIXED = TYPE_FIXED FLOAT = TYPE_FLOAT USCALED = TYPE_UNSIGNED + LAYOUT_ARRAY SSCALED = TYPE_SIGNED + LAYOUT_ARRAY SRGB = TYPE_COLORSPACE_SRGB
2009-12-07gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safeRoland Scheidegger
use pointer to union instead of void pointer. gcc complained a lot, depending what the pointer originally actually was. Looks like it's in fact maybe legal to cast for instance uint pointers to union pointers as long as union contains a uint type, hence use this with some callers, other just use union util_color in the first place.
2009-12-07util/tile: Support R8G8B8A8_UNORM format.Michal Krol
2009-12-03gallium/util: Initialize variables in u_pack_color.h.Vinson Lee
(cherry picked from commit 36e2074b63e3e5bc489eb74cad0cd97eafcedb40)
2009-12-04Merge branch 'gallium-noblocks'Roland Scheidegger
Conflicts: src/gallium/state_trackers/xorg/xorg_exa.c
2009-12-03Move pf_get_component_bits() to u_format auxiliary module.Michal Krol
2009-12-03Move pf_get_bits/size() to u_format auxiliary module.Michal Krol
2009-12-03Move pf_get_block() to u_format auxiliary module.Michal Krol
2009-12-03Move pf_is_depth_and_stencil() to u_format auxiliary module.Michal Krol
2009-12-03Move pf_is_depth_stencil() to u_format auxiliary module.Michal Krol
2009-12-03Move pf_is_compressed() to u_format auxiliary module.Michal Krol
2009-12-02gallium/util: __builtin_bswap32() is in only gcc 4.3 or laterBrian Paul
2009-12-03util: Fix generated swizzle comments.José Fonseca
2009-12-01Merge commit 'origin/mesa_7_7_branch'Keith Whitwell
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
2009-11-30gallium: interface cleanups, remove nblocksx/y from pipe_texture and moreRoland Scheidegger
This patch removes nblocksx, nblocksy arrays from pipe_texture (can be recalculated if needed). Furthermore, pipe_format_block struct is gone completely (again, contains just derived state). nblocksx, nblocksy, block are also removed from pipe_transfer, together with the format enum (can be obtained from the texture associated with the transfer).
2009-11-28util: Fix bad code.Corbin Simpson
Uf. How embarrassing.
2009-11-28util: Improve bitcount.Corbin Simpson
Sorry for not pushing this before, it got lost in stashes.
2009-11-27gallium/util: added util_bswap32()Christoph Bumiller
2009-11-27Merge branch 'width0'Roland Scheidegger
Conflicts: src/gallium/drivers/r300/r300_texture.c src/gallium/state_trackers/xorg/xorg_exa.c src/mesa/state_tracker/st_cb_texture.c
2009-11-26gallium: fix more statetrackers/drivers for not using texture ↵Roland Scheidegger
width/height/depth arrays
2009-11-24util: Describe a few more formats.José Fonseca
2009-11-25util: also print out memory statisticsZack Rusin
2009-11-23gallium/util: added util_bitcount()Brian Paul
2009-11-23Merge commit 'origin/mesa_7_7_branch'Maciej Cencora
2009-11-20gallium/util: Initialize variables in u_pack_color.h.Vinson Lee
2009-11-20util: Add MAX3 and MIN3.Corbin Simpson
2009-11-19gallium: don't use arrays for texture width,height,depthKeith Whitwell
2009-11-17gallium/util: replace //-style commentsBrian Paul
2009-11-04util: Remove homegrown Windows KM profiler.José Fonseca
It's not sampling based so its results are biased towards functions called many times.
2009-10-31i965g: more work on compilationKeith Whitwell
2009-10-28util: Drop return value from cpuid().José Fonseca
2009-10-28util: Fix cpuid on MSVC.José Fonseca
2009-10-25gallium: Move enum pipe_error into p_defines.h.José Fonseca
It's really just another define. No need for its own header.
2009-10-25util: Human readable output of texture states.José Fonseca
2009-10-25i965g: more work on compiling, particularly the brw_draw filesKeith Whitwell
2009-10-22util: Set cpu endianness too.José Fonseca
2009-10-21gallium/util: fix cpu detection on ppcMarc Dietrich
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.
2009-10-17gallium: Permit surface_copy and surface_fill to be NULL.Corbin Simpson
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.
2009-10-17util: Rename from u_* to util_* while we're at it.José Fonseca
To be consistent with the rest.
2009-10-16util: Change function names to begin with u_.Corbin Simpson
Avoids link-time clashes with Mesa's internal hash table.
2009-10-14util: Fix cpu detection on Windows. Cleanup.José Fonseca
2009-10-09util: Force ESI register for cpuid's ebx result.José Fonseca
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.
2009-10-09util: Force ESI register for cpuid's ebx result.José Fonseca
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.