summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
AgeCommit message (Collapse)Author
2010-08-11auxiliary: fix u_split_prim naming conventionLuca Barbieri
Current practice is to start identifiers with "util_" instead of "u_".
2010-08-11auxiliary: move Ben Skeggs' primitive splitter to common codeLuca Barbieri
This is a simple framework that handles splitting primitives in an abstract way. The user has to specify the primitive start, start index and count. Then, it can ask the primitive splitter to "draw" a chunk of the primitive, staying under a given vertex/index budget. The primitive splitter will then call user-supplied functions to emit a range of vertices/indices, as well as switch the edgeflag on or off. This is particularly useful for hardware that either has limits on the vertex count field, or where vertices are pushed on a FIFO or temporary buffer of limited size. Note that unlike other splitters, it does not manipulate data in any way, and merely asks a callback to do so, in vertex intervals.
2010-08-10util: Add util_format_srgb().José Fonseca
To convert RGB -> SRGB format.
2010-08-09util: Move _mm_shuffle_epi8() to u_sse.h.José Fonseca
It's bound to be useful elsewhere.
2010-08-06gallium: remove stray semicolonsBrian Paul
2010-08-05util: Add option to not dump cpu capsJakob Bornecrantz
2010-08-05r300g: implement hyper-z support. (v4)Dave Airlie
This implements fast Z clear, Z compression, and HiZ support for r300->r500 GPUs. It also allows cbzb clears when fast Z clears are being used for the ZB. It requires a kernel with hyper-z support. Thanks to Marek Olšák <maraeo@gmail.com>, who started this off, and Alex Deucher at AMD for providing lots of hints. v2: squashed zmask ram size fix] squashed r300g/blitter: fix Z readback when compressed] v3: rebase around texture changes in master - .1 fix more bits v4: migrated to using u_mm in r300_texture to manage hiz/zmask rams consistently disabled HiZ when using OQ flush z-cache before turning hyper-z off update hyper-z state on dsa state change store depthclearvalue across cbzb clears and replace it afterwards. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-03gallium/draw: forgot about PIPE_PRIM_LINE_STRIP_ADJACENCYZack Rusin
2010-08-03gallium/util: add extra primitives to the trimmerZack Rusin
2010-08-02util: Fix unpacking of R8G8Bx_SNORM format.Michal Krol
Apparently, we must always use integers to perform calculations, otherwise the results won't match D3D's CxV8U8 definition.
2010-07-30util: Fix the range of util_draw_elements_instanced.Chia-I Wu
Keep min_index and max_index at their defaults (0 and ~0).
2010-07-30util: more helpers for old draw codeKeith Whitwell
2010-07-29util: add uint version of pack_z_stencilKeith Whitwell
Useful for packing mask values.
2010-07-29util: Don't include xmmintrin.h.José Fonseca
Unnecessary.
2010-07-29gallium: Use unified pipe_context::draw_vbo.Chia-I Wu
Update u_draw_quad, st/vega, and st/mesa to use pipe_context::draw_vbo.
2010-07-29gallium: Implement draw_vbo and set_index_buffer for all drivers.Chia-I Wu
Some drivers define a generic function that is called by all drawing functions. To implement draw_vbo for such drivers, either draw_vbo calls the generic function or the prototype of the generic function is changed to match draw_vbo. Other drivers have no such generic function. draw_vbo is implemented by calling either draw_arrays and draw_elements. For most drivers, set_index_buffer does not mark the state dirty for tracking. Instead, the index buffer state is emitted whenever draw_vbo is called, just like the case with draw_elements. It surely can be improved.
2010-07-26util: fix unused function warning on non-x86Brian Paul
2010-07-26util: fix CPU detection on OS Xnobled
s/PIPE_OS_DARWIN/PIPE_OS_APPLE, since there is no PIPE_OS_DARWIN. Acked-by: Vinson Lee <vlee@vmware.com>
2010-07-26util: fix another mutex leak in mempoolMarek Olšák
By fixing one, I introduced another. Crap.
2010-07-26util: fix mutex leaks in mempoolMarek Olšák
2010-07-23util: Add PIPE_OS_CYGWIN to u_network.Vinson Lee
2010-07-20util: mempool: initialize last block's magic number in a pageMarek Olšák
2010-07-19util: remove the dummy field in mempoolMarek Olšák
It should allocate less memory now.
2010-07-19util: add dummy field to empty structure typesBrian Paul
Empty structure types aren't allowed with MSVC. I haven't tested this change. Hope I haven't broken it...
2010-07-19util: add a memory pool for equally sized memory allocationsMarek Olšák
malloc/free are in O(1).
2010-07-12u_blitter: add draw_rectangle callback which can be overridden by a driverMarek Olšák
2010-07-12u_blitter: clean up the texcoord computationsMarek Olšák
2010-07-12u_blitter: simplify blitter_set_rectangleMarek Olšák
2010-07-12u_blitter: rename blitter->base, add a way to get a pipe context from blitterMarek Olšák
2010-07-07util: print help for debug options on non-debug buildsMarek Olšák
I'd like to see the help when I request it.
2010-07-05auxiliary/util: Add SM3 meta-cap list.Corbin Simpson
2010-07-02util: Add a fetch_rgba_8unorm.José Fonseca
Not always implemented, but useful in situations where we want 8unorms and the samples comes as 8unorms as we needlessly convert to/from floats.
2010-07-02util: Expose util_format_fits_8unorm().José Fonseca
2010-07-02r600: use gallium list macros instead of making our own.Dave Airlie
before this change, r600 glxinfo segfaulted in the list code, and I wasn't debugging another linked list implementation, its 2010 after all. So add the two missing list macros to the gallium header from X.org list header file (after fixing them), then port all r600 lists to the new header. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-06-29util: reference surfaces and sampler views in blitter when saving themMarek Olšák
Ooops. This should possibly fix some bugs...
2010-06-27util: fix a memory leak in blitterMarek Olšák
2010-06-25gallium/util: fix pipe_sampler_view_reference() callsBrian Paul
The conditionals aren't needed.
2010-06-22u_math: Add align function npot alignmentsJakob Bornecrantz
2010-06-16util: add alloc checkAlan Hourihane
2010-06-14util: Use int type for format field width.José Fonseca
As suggested by gcc warning.
2010-06-14util: Add a func_to_pointer util function too.José Fonseca
2010-06-10draw: geometry shader fixesZack Rusin
don't overwrite the inputs and make sure the correct primitive is used on entry
2010-06-09util: reference vertex buffers in blitterMarek Olšák
2010-06-07util: implement util_clear_depth_stencil fallbackRoland Scheidegger
this doesn't really look terribly useful for drivers to use, but until drivers use their own implementation provide this since some state trackers really want to use these functions.
2010-06-07util: new file u_dirty_flags.hKeith Whitwell
2010-06-07util: add u_box_3dKeith Whitwell
2010-06-07util: add util_framebuffer_min_sizeKeith Whitwell
2010-06-07util: allocate larger tmp_row in util_format_translateKeith Whitwell
The tmp_row storage allocation took into account the format's y block size by allocating y_step rows of data. However, the x block size was not being taken into account when deciding how wide those rows need to be. Now make sure that tmp_row is at least x_step by y_step in size.
2010-06-03util: Remove unnecessary header.Vinson Lee
2010-06-03Merge branch 'gallium-newclear'Roland Scheidegger
Conflicts: src/gallium/state_trackers/python/p_context.i