summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
AgeCommit message (Collapse)Author
2008-12-19gallium: replace #elif with #elseBrian Paul
2008-12-18Gallium: fix for conform testRobert Ellison
The following construction in util_surface_copy() in gallium/auxiliary/util/u_rect.c, introduced in commit d177c9ddda2c452cf7d6696d89cf4458ef986f98, incorrectly inverts the Y coordinate in the last parameter to pipe_copy_rect(). /* If do_flip, invert src_y position and pass negative src stride */ pipe_copy_rect(dst_map, &dst->block, dst->stride, dst_x, dst_y, w, h, src_map, do_flip ? -(int) src->stride : src->stride, src_x, do_flip ? w - src_y : src_y); The intention is to start at the last Y coordinate line and move backwards, in the case of a flip; in that case, the correct calculation is "src_y + h - 1", not "w - src_y". This fixes a Gallium assertion failure in the conformance tests: u_rect.c:65:pipe_copy_rect: Assertion `src_y >= 0' failed. debug_get_bool_option: GALLIUM_ABORT_ON_ASSERT = TRUE Trace/breakpoint trap
2008-12-18gallium: Enable memory debugging on all windows platforms.José Fonseca
2008-12-17gallium: fix memory corruption in u_gen_mipmap.cBrian Paul
Remove the old/initial vbuf allocation in util_create_gen_mipmap(). We were allocating a small vbuf at this point so get_next_slot() didn't have as large of buffer as it expected. So all but the first set_vertex_data() was writing out of bounds. Also added some comments.
2008-12-12gallium: avoid mapping same vertex buffer in subsequent framesKeith Whitwell
Quite a few util modules were maintaining a single vertex buffer over multiple frames, and potentially reusing it in subsequent frames. Unfortunately that would force us into syncrhonous rendering as the buffer manager would be forced to wait for the previous rendering to complete prior to allowing the map. This resolves that issue, but requires the state tracker to issue a few new flush() calls at the end of each frame.
2008-12-10util: new funcs for triming/validating primitivesKeith Whitwell
2008-12-09gallium: Abort by default on windows user space.José Fonseca
2008-11-17gallium: Use costum log2 for all windows builds.José Fonseca
2008-11-17gallium: State when there are no memory leaks detected.José Fonseca
2008-11-17gallium: Make handle_table reentrant.José Fonseca
Ensure that the object has consistent state also when calling the destroy callback. Namely, ensure the object passed to the callback is removed from the table prior to calling the destroy callback to avoid a infinite loop or double free.
2008-11-14gallium: increase table size for fast log/pow functionsBrian Paul
The various conformance tests pass now.
2008-11-14util: Use OpenGL rasterization rules in blits and mipmap generation.Brian Paul
2008-11-12util: Optimise log2().Michal Krol
2008-11-12util: Add log2() definition for MSC.Michal Krol
2008-11-10gallium: fix comment again. A half-closed interval was intended.Brian
Never saw the [a,b[ notation before.
2008-11-10gallium: fix typos in commentsBrian Paul
2008-11-10gallium: actually flip the coordinatesZack Rusin
2008-11-09util: Fix util_fast_pow/exp2/log2.Brian
- Use a lookup table for log2. - Compute (float) (1 << ipart) by tweaking with the exponent directly to avoid integer overflow and float conversion. - Also table negative exponents to avoid float division and branching. - Implement util_fast_exp as function of util_fast_exp2. -------- Cherry-picked from gallium-0.2: 8415d06d90a197e16554dab98d160334fd9f9f93 This fixes some pow() glitches seen in fslight.c, spectex.c, etc. Conflicts: src/gallium/auxiliary/util/u_math.h
2008-11-09gallium: _debug_vprintf() should be silent if DEBUG is not definedBrian
2008-10-29gallium: new sanity assertions in mmAllocMem()Brian Paul
2008-09-18util: A few more memory debugging checks.José Fonseca
2008-09-18util: Add missing p_debug.h include.José Fonseca
2008-09-13gallium: add another value check to util_fast_pow()Brian Paul
Fixes glitches seen in morph3d demo.
2008-09-09util: Ensure we always have a full qualified file name on windows display.José Fonseca
2008-09-09util: Enable u_stream_std.c for PIPE_SUBSYSTEM_WINDOWS_USER.Michal Krol
2008-09-08util: Allow to define the maximum file size.José Fonseca
This avoids splitting the bitmaps in many files.
2008-09-08util: Dump surfaces to BMP.José Fonseca
This allows quick inspection of surfaces in mass scale.
2008-09-08util: Rip-off trace's os-independent stream code.José Fonseca
2008-09-05gallium: remove debug code from prev commitBrian Paul
2008-09-05gallium: new util_unpack_color_ub() functionBrian Paul
2008-09-05gallium: Pass 512 bytes max to EngDebugPrint.José Fonseca
2008-09-04gallium: new util_surface_copy() and util_surface_fill() helpersBrian Paul
These are plug-in fallbacks for the pipe->surface_copy() and pipe->surface_fill() functions.
2008-09-04gallium: Fix typo.José Fonseca
2008-09-04gallium: Use pipe_buffer_* inlines as much as possible.José Fonseca
2008-09-03gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.José Fonseca
We want to use the pipe_buffer_* inlines everywhere, but a pipe context is not always available nor is it needed.
2008-09-01util: make timed_winsys os independentKeith Whitwell
2008-09-01util: add func to return time as uint64 microsecondsKeith Whitwell
2008-09-01add u_timed_winsys.[ch]Keith Whitwell
2008-08-31util: Fix compiler errors in the release build of C++ sources.José Fonseca
2008-08-25gallium: include p_debug.h for non-HAVE_POSIX_MEMALIGNBrian
2008-08-25gallium: Add missing includes.Michal Krol
2008-08-24gallium: remove old tile util filesBrian Paul
2008-08-24gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul
Also, rename p_tile.[ch] to u_tile.[ch]
2008-08-23util: Silence compiler warnings on Windows.Michal Krol
2008-08-23util: Include missing u_rect.h.Michal Krol
2008-08-22gallium: rename p_util.c to u_rect.c (it only contains rect copy/fill helpers)Brian Paul
2008-08-22gallium: move pipe_copy_rect(), pipe_fill_rect() protos into new u_rect.h headerBrian Paul
2008-08-22gallium: insert __cplusplus/extern wrappingsBrian Paul
2008-08-22gallium: move math macros from p_util.h to u_math.hBrian Paul
More can be done...
2008-08-22gallium: new u_math.[ch] files for math functionsBrian Paul
So far, optimized/low-precision versions of exp(), exp2(), log2(), pow().