summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
AgeCommit message (Collapse)Author
2009-12-15util/blitter: allocate most of the state objects on-demandMarek Olšák
2009-12-15util/blitter: use PIPE_MAX_* limits, and fix a memory leakMarek Olšák
2009-12-15util: add blitterMarek Olšák
2009-12-15util: add a function which converts 2D coordinates to cubemap coordinatesMarek Olšák
The code was taken over from u_gen_mipmap.
2009-12-15util: add new fragment shaders to simple_shadersMarek Olšák
New shaders: * Fragment shader which writes depth sampled from a texture * Fragment shader which copies COLOR[0] to multiple render targets Additional improvements: * The fragment 'tex' shaders now take a sampler type (TGSI_TEXTURE_*) so that they can sample from any type of texture, not only from a 2D one.
2009-12-15util: Fix unity value for swizzle 1.José Fonseca
It should be 255 for ubytes, and not 1. Thanks Michal for spotting this.
2009-12-15util: Add dl wrappers.José Fonseca
Borrowed from Mesa, slightly changed for more type safety.
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.