summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
Commit message (Collapse)AuthorAgeFilesLines
* util: add GALLIUM_LOG_FILE option for logging output to a fileBrian Paul2012-05-251-3/+3
| | | | Useful for logging different runs to files and diffing, etc.
* gallium: remove user_buffer_create from the interfaceMarek Olšák2012-05-122-9/+1
| | | | Nothing uses it now.
* gallium/graw: stop using user_buffer_createMarek Olšák2012-05-121-0/+13
| | | | This is compile-tested.
* gallium/util: remove unused parameter nr_vertex_buffers in util_draw_max_indexMarek Olšák2012-05-122-2/+0
|
* auxiliary/util: Ensure pipe_constant_buffer::user_buffer is initialized.José Fonseca2012-05-121-0/+1
|
* Merge branch 'gallium-userbuf'Marek Olšák2012-05-119-69/+125
|\ | | | | | | | | | | | | | | Conflicts: src/gallium/docs/source/screen.rst src/gallium/drivers/nv50/nv50_state.c src/gallium/include/pipe/p_defines.h src/mesa/state_tracker/st_draw.c
| * u_vbuf: set user buffer pointer for drivers which support user buffersMarek Olšák2012-05-011-0/+2
| | | | | | | | | | It's not common to end up in u_vbuf and at the same time support user buffers in a driver, but such a combination should work.
| * st/vega: don't use user_buffer_createMarek Olšák2012-04-302-0/+24
| |
| * gallium/util: stop using user buffers in util_draw_texquadMarek Olšák2012-04-301-2/+3
| |
| * gallium: add void *user_buffer in pipe_index_bufferMarek Olšák2012-04-303-45/+69
| | | | | | | | | | | | | | Adapted drivers: i915, llvmpipe, r300, r600, radeonsi, softpipe. User index buffers have been disabled in nv30, nv50, nvc0 and svga to keep things working.
| * gallium: remove pipe_context::redefine_user_bufferMarek Olšák2012-04-302-13/+0
| |
| * gallium: add void *user_buffer in pipe_vertex_bufferMarek Olšák2012-04-302-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | This reduces CPU overhead in st_draw_vbo and removes a lot of unnecessary code in that function which was required only to comply with the gallium interface, but wasn't any useful really. Adapted drivers: i915, llvmpipe, r300, softpipe. No changes required in: r600, radeonsi. User vertex buffers have been disabled in nv30, nv50, nvc0 and svga to keep things working.
| * gallium: change set_constant_buffer to be UBO-friendlyMarek Olšák2012-04-301-0/+15
| |
* | gallium/tgsi: Redefine the TGSI_TEXTURE_UNKNOWN texture target.José Fonseca2012-05-111-1/+1
| | | | | | | | | | | | | | | | | | Some code relies on the existing of an invalid texture target. It seems safer to bring it back than to deal with unintended consequences. This partially reverts commit a4ebb04214bab1cd9bd41967232ec89441e31744. Reviewed-by: Brian Paul <[email protected]>
* | gallium/util: Define util_strchrnul.Francisco Jerez2012-05-111-6/+18
| | | | | | | | Reviewed-by: Jakob Bornecrantz <[email protected]>
* | gallium/tgsi: Define the TGSI_BUFFER texture target.Francisco Jerez2012-05-111-1/+1
| | | | | | | | | | | | This texture type was already referred to by the documentation but it was never defined. Define it as 0 to match the pipe_texture_target enumeration values.
* | gallium/tgsi: Move interpolation info from tgsi_declaration to a separate token.Francisco Jerez2012-05-111-1/+2
| | | | | | | | | | | | Move Interpolate, Centroid and CylindricalWrap from tgsi_declaration to a separate token -- they only make sense for FS inputs and we need room for other flags in the top-level declaration token.
* | llvmpipe: Added support for color masks in AoS blending.James Benton2012-05-021-0/+13
|/ | | | Signed-off-by: José Fonseca <[email protected]>
* u_vbuf: unbind vertex buffers on destroyMarek Olšák2012-04-291-0/+2
|
* u_blitter: fix resource leakMarek Olšák2012-04-291-0/+1
|
* u_vbuf: don't call u_vbuf_upload_buffers if there's nothing to uploadMarek Olšák2012-04-241-2/+8
|
* u_vbuf: don't upload user buffers if the driver supports themMarek Olšák2012-04-241-1/+1
|
* u_vbuf: optimize u_vbuf_translate_find_free_vb_slotsMarek Olšák2012-04-241-27/+15
|
* u_vbuf: turn bool arrays into bitmasks and loops into bitwise operationsMarek Olšák2012-04-241-110/+88
| | | | | | Optimized functions: - u_vbuf_need_minmax_index - u_vbuf_mapping_vertex_buffer_blocks
* u_vbuf: take advantage of all new vertex fetch capsMarek Olšák2012-04-242-9/+16
|
* u_vbuf: simplify u_vbuf_set_vertex_buffersMarek Olšák2012-04-241-23/+16
|
* u_vbuf: rename native_attribs -> driver_attribsMarek Olšák2012-04-241-5/+5
|
* gallium: make user vertex buffers optionalMarek Olšák2012-04-242-183/+171
| | | | | | | | | | | This couldn't be split because it would break bisecting. Summary: * r300g,r600g: stop using u_vbuf * r300g,r600g: also report that the FIXED vertex type is unsupported * u_vbuf: refactor for use in the state tracker * cso: wire up u_vbuf with cso_context * st/mesa: conditionally install u_vbuf
* u_vbuf: pull u_vbuf_draw_max_vertex_count into r300gMarek Olšák2012-04-242-51/+0
|
* u_vbuf: make use of the new CAPs to determine what to doMarek Olšák2012-04-242-30/+35
| | | | | | | This adds the ability to initialize u_vbuf_caps before creating u_vbuf itself. It will be useful for determining if u_vbuf should be used or not. Also adapt r300g and r600g.
* u_vbuf: remove u_vbuf_resourceMarek Olšák2012-04-241-13/+0
|
* u_vbuf: use user_ptr from pipe_resourceMarek Olšák2012-04-242-11/+12
|
* u_vbuf: override draw_vboMarek Olšák2012-04-242-25/+32
|
* u_vbuf: override create/bind/destroy_vertex_elements_stateMarek Olšák2012-04-242-56/+48
|
* u_vbuf: override set_vertex_buffersMarek Olšák2012-04-242-49/+50
|
* u_vbuf: override set_index_bufferMarek Olšák2012-04-242-11/+30
| | | | This makes u_vbuf_mgr call the driver instead of the other way around.
* gallium/util: use cso_draw_arrays in util_draw_vertex_bufferMarek Olšák2012-04-241-5/+4
| | | | Reviewed-by: Brian Paul <[email protected]>
* gallium/u_gen_mipmap: don't release vertex buffer at end of frame / in glFlushMarek Olšák2012-04-182-19/+4
| | | | | There's no reason to do that. The buffer being used for rendering is always mapped as unsynchronized.
* gallium/u_blit: don't release vertex buffer at end of frame / in glFlushMarek Olšák2012-04-182-18/+4
| | | | | There's no reason to do that. The buffer being used for rendering is always mapped as unsynchronized.
* gallium: remove PIPE_TRANSFER_NOOVERWRITE, use equivalent UNSYNCHRONIZEDMarek Olšák2012-04-181-1/+1
|
* u_blitter: align vertex buffer suballocations to 4Marek Olšák2012-04-131-1/+1
|
* util: add dual blend helper function (v2)Dave Airlie2012-04-131-0/+26
| | | | | | | | This is just a function to tell if a certain blend mode requires dual sources. v2: move to inlines as per Brian's suggestion Signed-off-by: Dave Airlie <[email protected]>
* util: fix uninitialized tableDylan Noblesmith2012-04-131-4/+5
| | | | | | | | | | | | | | | | | | | Most of the 256 values in the 'generic_to_slot' table were supposed to be initialized with the default value 0xff, but were left at zero (from CALLOC_STRUCT()) instead. Noticed by clang: u_linkage.h:60:31: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(table, 0xff, sizeof(table)); ~~~~~ ^~~~~ Also fix a signed/unsigned comparison and a comment typo here. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Brian Paul <[email protected]>
* util: fix undefined behaviorDylan Noblesmith2012-04-131-5/+10
| | | | | | | | | container_of() can legally return anything, even invalid addresses that cause segfaults, when 'sample' is an uninitialized pointer. Bug exposed by clang. NOTE: This is a candidate for the 8.0 branch.
* u_blitter: don't use user buffersMarek Olšák2012-04-031-18/+23
|
* gallium/util: add helper function util_query_clear_resultMarek Olšák2012-03-301-0/+30
|
* gallium: add R8G8_R8B8 and G8R8_B8R8 formatsChristian König2012-03-093-0/+96
| | | | | | | v2: simplify implementation by using correct swizzle v3: fix mix with successor patch Signed-off-by: Christian König <[email protected]>
* u_format: fix a comment about subsampled formatsChristian König2012-03-091-1/+1
| | | | Signed-off-by: Christian König <[email protected]>
* util: replace format equality test with compatibility test in blit codeBrian Paul2012-02-291-1/+21
| | | | | | | | | | This lets us use the resource_copy_region() path when blitting from R8G8B8A8 to R8G8B8x8, for example. v2: be smarter when src_format==dst_format Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: José Fonseca <[email protected]>
* util: better comment for util_is_format_compatible()Brian Paul2012-02-291-2/+3
|