summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* llvmpipe: Take the sampler view's first_level into account when sampling.Fabian Bieler2011-04-089-30/+65
|
* 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: Fix thinko in debug warnings.José Fonseca2011-04-061-3/+3
|
* translate: Respect translate_buffer::max_index.José Fonseca2011-04-013-2/+28
|
* draw: Prevent out-of-bounds vertex buffer access.José Fonseca2011-04-0111-7/+157
| | | | Based on some code and ideas from Keith Whitwell.
* draw: Revert code reorg in previous change.José Fonseca2011-03-311-4/+4
| | | | | | | | | | Because fetch_count = max_index - min_index + 1 overflows for min_index = 0 and max_index = 0xffffffff. Fixes fdo 35815.
* draw: implement vertex color clamping, and disable SSE and PPC pathsLuca Barbieri2011-03-314-9/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (some little changes by Marek Olšák) Squashed commit of the following: commit 737c0c6b7d591ac0fc969a7590e1691eeef0ce5e Author: Luca Barbieri <[email protected]> Date: Fri Aug 27 02:13:57 2010 +0200 draw: disable SSE and PPC paths (use LLVM instead) These paths don't support vertex clamping, and are anyway obsoleted by LLVM. If you want to re-enable them, add vertex clamping and test that it works with the ARB_color_buffer_float piglit tests. commit fed3486a7ca0683b403913604a26ee49a3ef48c7 Author: Luca Barbieri <[email protected]> Date: Thu Aug 26 18:27:38 2010 +0200 draw_llvm: respect vertex color clamp commit ef0efe9f3d1d0f9b40ebab78940491d2154277a9 Author: Luca Barbieri <[email protected]> Date: Thu Aug 26 18:26:43 2010 +0200 draw: respect vertex clamping in interpreter path
* 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]>
* draw: Forgot to remove one istart usage.José Fonseca2011-03-301-1/+1
|
* draw: Fix bug when drawing ushort indices.José Fonseca2011-03-301-6/+8
| | | | | | | | | | When the condition min_index == 0 && sizeof(ib[0]) == sizeof(draw_elts[0]) was true, we were wrongly ignoring istart and processing indices 0. Reorder some statements to make the code easier to understand.
* gallium: add EXT_texture_snorm supportMarek Olšák2011-03-291-0/+8
|
* gallivm: Fix build with llvm-2.9.Vinson Lee2011-03-281-2/+2
| | | | | The build fix of commit 40ae214067673edbda79371969d1730b6194d83e does not apply to llvm-2.9 but rather to llvm-3.0svn.
* gallivm: Fix build with llvm-2.9Tobias Droste2011-03-281-3/+9
| | | | | | In llvm-2.9 Target->createMCInstPrinter() takes different arguments Signed-off-by: Tobias Droste <[email protected]>
* gallivm: Fix build with llvm-2.9.Vinson Lee2011-03-251-0/+5
| | | | | In llvm-2.9, the header file llvm/System/Host.h has been moved to llvm/Support/Host.h.
* 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]>
* gallivm: Fix build with llvm 2.6 on 32bit platformsJosé Fonseca2011-03-131-2/+4
|
* gallivm: Use LLVM MC disassembler, instead of udis86.José Fonseca2011-03-136-206/+367
| | | | | Included in LLVM 2.7+. Unlink udis86, should support all instructions that LLVM can emit.
* util: Silence gcc unitialized member warningJosé Fonseca2011-03-131-0/+1
|
* draw: Fix draw_variant_output::format's type.José Fonseca2011-03-132-3/+4
|
* tgsi: Fix parsing of properties with digits in the nameJakob Bornecrantz2011-03-131-1/+1
|
* rbug: Remove flags from flushJakob Bornecrantz2011-03-132-6/+0
|
* 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.
* draw: remove unnecessary flushMarek Olšák2011-03-111-7/+0
|
* 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-104-0/+492
| | | | | | | 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-088-4/+467
| | | | | | Again, a lot of code is shared with RGTC. The layout is UTIL_FORMAT_LAYOUT_RGTC, because LATC is just swizzled RGTC.
* llvmpipe: clamp texcoords in lp_build_sample_compare()Brian Paul2011-03-071-0/+5
| | | | | | See previous commit for more info. NOTE: This is a candidate for the 7.10 branch.
* pb: Add is_buffer_busy for malloc buffers.José Fonseca2011-03-061-1/+10
|
* os: Fix pipe_static_mutex on Windows.José Fonseca2011-03-061-1/+2
|
* draw: Silence tgsi_emit_sse2 failed messages.José Fonseca2011-03-041-1/+2
|
* tgsi: Disable SSE2 code generation.José Fonseca2011-03-041-3/+20
| | | | | | It's broken now that tgsi_exec_machine::Inputs/Ouputs are pointers. Temporary if anybody still cares about tgsi_sse2.c. Permanent otherwise.
* tgsi: Update assert.José Fonseca2011-03-031-1/+1
| | | | | Elements(mach->Inputs) is wrong now that mach->Inputs is dynamically allocated.
* tgsi: defer allocation of huge inputs/outputs until we have a gsZack Rusin2011-03-022-6/+45
|
* gallium: Add u_format_rgtc.c to SConscript.Vinson Lee2011-03-011-0/+1
|
* gallium: add RGTC UNORM support to u_format.Dave Airlie2011-03-026-2/+575
| | | | | | | | 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.