summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
Commit message (Collapse)AuthorAgeFilesLines
* util: assorted updates to polygon stipple helperBrian Paul2011-07-211-10/+33
|
* gallium: s/bool/boolean/Brian Paul2011-06-083-3/+3
|
* Gallium: fix indentation in u_blitter.cStéphane Marchesin2011-06-061-1/+1
|
* util: add \n to debug_checkpoint_fullMarcin Slusarz2011-06-061-1/+1
| | | | Signed-off-by: José Fonseca <[email protected]>
* u_prim: convert u_trim_pipe_prim to table driven.Dave Airlie2011-06-031-47/+24
| | | | | | | | This makes this function not be an always miss for the branch predictor. Noticed using cachegrind, makes a minor difference to gears numbers on r600g. Signed-off-by: Dave Airlie <[email protected]>
* util: faster logbase2Brian Paul2011-06-021-4/+7
|
* u_vbuf_mgr: fix max_index computation when src_offset is abused as buffer_offsetMarek Olšák2011-05-171-1/+6
|
* u_vbuf_mgr: fix max_index computation once againMarek Olšák2011-05-141-15/+47
| | | | | | | | | | | | See how I compute and use the 'unused' variable in the code. It's crucial for getting max_index right. Fixed with the help of apitrace. (bisecting the problematic draw call manually was not fun though) This should fix: https://bugs.freedesktop.org/show_bug.cgi?id=36268 https://bugs.freedesktop.org/show_bug.cgi?id=36609
* Remove redundant util_unsigned_logbase2Matt Turner2011-05-121-12/+0
| | | | | | | util_logbase2 is exactly the same function. Signed-off-by: Matt Turner <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* u_math.h: Remove redundant mingw32 ffs definitionMatt Turner2011-05-121-4/+0
| | | | | Signed-off-by: Matt Turner <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* util: implement R11G11B10_FLOAT pack/unpack functionsMarek Olšák2011-04-294-1/+336
| | | | Reviewed-by: Brian Paul <[email protected]>
* mesa, util: move RGB9E5 conversion functions to gallium/utilMarek Olšák2011-04-292-1/+165
| | | | | | | Also use MAX3 and incorporate Ian's suggestion in texformat.c. I don't think wrapping u_format_rgb9e5.h in another header and thus making it more complicated is worth it.
* util: implement R9G9B9E5 pack and unpack functionsMarek Olšák2011-04-291-5/+82
| | | | | | softpipe and llvmpipe support done (sampler only). Reviewed-by: Brian Paul <[email protected]>
* util: make macros MIN3, MAX3, MIN4, MAX4 little more efficientMarek Olšák2011-04-271-4/+4
|
* galahad,util: warn on resource target mismatch in copy_regionMarek Olšák2011-04-211-0/+3
| | | | Reviewed-by: Jakob Bornecrantz <[email protected]>
* util: add a simple memcpy path for copying buffers in util_resource_copy_regionMarek Olšák2011-04-211-9/+13
| | | | Reviewed-by: Jakob Bornecrantz <[email protected]>
* gallium: add and use generic function for querying patented format support (v2)Marek Olšák2011-04-152-0/+59
| | | | v2: Unsigned floats are allowed regardless of the configure switch.
* gallium: add A/L/LA/I floating point formatsLuca Barbieri2011-04-151-0/+8
|
* u_vbuf_mgr: fixed vbo max_index calculationpepp2011-04-111-1/+1
| | | | Signed-off-by: Marek Olšák <[email protected]>
* u_vbuf_mgr: fix crash with unsupported vertex format in hw VBOsMarek Olšák2011-04-082-2/+6
|
* util: add cpu detection for sse 4.2 and avxBrian Paul2011-04-072-0/+6
|
* util: simplify bit shifting in util_cpu_detect()Brian Paul2011-04-071-11/+11
|
* draw: Prevent out-of-bounds vertex buffer access.José Fonseca2011-04-012-0/+118
| | | | Based on some code and ideas from Keith Whitwell.
* gallium: list use inline function to avoid macro shot comingJerome Glisse2011-03-301-43/+67
| | | | | | | | | | | | | | | | | | | Macro can lead to hard to debug list bugs. For instance consider the following : LIST_ADD(item, list->prev) 3 instruction of the macro became : (list->prev)->next->prev = item which is equivalent to : list->prev = item Thus list prev field changes and next instruction in the macro (list->prev)->next = item became : item->next = item And you endup with list corruption, other case lead to similar list corruption. Inline function are not affected by this short coming Signed-off-by: Jerome Glisse <[email protected]>
* gallium: add EXT_texture_snorm supportMarek Olšák2011-03-291-0/+8
|
* gallium/util: Use PIPE_TRANSFER_DISCARD_RANGE in pipe_buffer_write.Mathias Fröhlich2011-03-151-0/+2
| | | | | | | | Additionally, to discarding the whole buffer, use PIPE_TRANSFER_DISCARD_RANGE in pipe_buffer_write when the write covers only part of the buffer. Signed-off-by: Mathias Fröhlich <[email protected]>
* util: Silence gcc unitialized member warningJosé Fonseca2011-03-131-0/+1
|
* gallium: Delay the creation of simple helper shadersJakob Bornecrantz2011-03-122-80/+116
|
* u_blitter: Do blits in linear color space.Henri Verbeet2011-03-122-22/+38
| | | | | Blits between sRGB and linear formats should happen in linear color space. This fixes piglit fbo/fbo-srgb-blit.
* gallium: remove the geom_flags param from is_format_supportedMarek Olšák2011-03-116-17/+15
|
* gallium: kill is_resource_referencedMarek Olšák2011-03-113-27/+0
| | | | Only st/xorg used it and even incorrectly with regards to pipelined transfers.
* util: Fix typo in u_upload_flush().José Fonseca2011-03-111-2/+2
| | | | upload->offset is how much we used. upload->size is the whole buffer size.
* st/mesa: remove unnecessary flushesMarek Olšák2011-03-111-2/+0
| | | | | | | The framebuffer cache flush should be implicit when calling set_framebuffer_state. There is no need to flush the command stream either.
* gallium/util: new polygon stipple utility helperBrian Paul2011-03-102-0/+490
| | | | | | | The polygon stipple fallback does not have to be implemented in the draw module (it doesn't need window coords, etc). Drivers can use this utility and avoid sw vertex fallbacks if pstipple is enabled. Note: this is WIP and not used by any driver yet.
* util: Use PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE in pipe_buffer_write.José Fonseca2011-03-091-1/+6
|
* util: add ensure_sanity checks, fix a bugKeith Whitwell2011-03-091-2/+56
| | | | | Add ensure_sanity checks. Fix a bug which caused us to misplace entries adding to a full cache.
* util: improve cache collision behaviourKeith Whitwell2011-03-091-18/+76
| | | | | | | | | | Add linear probing on collisions. Expand entry array by a fixed scale (currently 2) to help avoid collisions. Use a LRU approach to ensure that the number of entries stored in the cache doesn't exceed the requested size.
* util: Add remove to util_cacheAlex Corscadden2011-03-092-0/+26
| | | | | I need to be able to remove entries from util_cache caches. This change enables that functionality.
* util: Allow util_draw_texquad to draw quads with non-integer coordinates.Alex Corscadden2011-03-091-2/+2
|
* gallium: add timeout parameter to fence_finishMarek Olšák2011-03-081-1/+2
| | | | | This is a follow-up to the ARB_sync patch for st/mesa and completes the ARB_sync implementation.
* gallium/util: add LATC supportMarek Olšák2011-03-086-4/+465
| | | | | | Again, a lot of code is shared with RGTC. The layout is UTIL_FORMAT_LAYOUT_RGTC, because LATC is just swizzled RGTC.
* gallium: add RGTC UNORM support to u_format.Dave Airlie2011-03-025-2/+574
| | | | | | | | SNORM needs a bit of work in the state tracker in order for mipmap generation to work I believe. I'm also not sure that having unorm fetches for an snorm format is sane.
* u_vbuf_mgr: compute user buffer size for instance data from instance_countMarek Olšák2011-03-011-3/+7
|
* st/mesa & v_bug_mgr: two small instanced drawing fixesChristian König2011-02-281-1/+4
|
* util: Don't destroy shaders null shadersJakob Bornecrantz2011-02-261-2/+4
| | | | Fixes regression from a08e612fd8e7ca2ac2fef8961e56e5b094033717
* util: Don't create array texture shaders if the driver doesn't support itJakob Bornecrantz2011-02-261-4/+6
|
* gallium/util: add 1d/2d mipmap generation supportDave Airlie2011-02-251-6/+37
| | | | | | | | so far only hw mipmap generation is testing on softpipe, passes test added to piglit. this requires another patch to mesa to let array textures mipmaps even start to happen.
* gallium/utils: Fix vertex element setupFabian Bieler2011-02-241-2/+3
| | | | Check if element was translated per element instead of per buffer.
* util: Make refcnt and symbol debuggers work on windowsJakob Bornecrantz2011-02-182-2/+21
| | | | Signed-off-by: Jakob Bornecrantz <[email protected]>
* u_vbuf_mgr: initialize flag indicating that buffers have been updatedMarek Olšák2011-02-181-1/+1
| | | | | This fixes r300g errors: r300: Cannot get a relocation in radeon_drm_cs_write_reloc.