Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gallium/util: new polygon stipple utility helper | Brian Paul | 2011-03-10 | 4 | -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é Fonseca | 2011-03-09 | 1 | -1/+6 |
| | |||||
* | util: add ensure_sanity checks, fix a bug | Keith Whitwell | 2011-03-09 | 1 | -2/+56 |
| | | | | | Add ensure_sanity checks. Fix a bug which caused us to misplace entries adding to a full cache. | ||||
* | util: improve cache collision behaviour | Keith Whitwell | 2011-03-09 | 1 | -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_cache | Alex Corscadden | 2011-03-09 | 2 | -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 Corscadden | 2011-03-09 | 1 | -2/+2 |
| | |||||
* | gallium: add timeout parameter to fence_finish | Marek Olšák | 2011-03-08 | 1 | -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 support | Marek Olšák | 2011-03-08 | 8 | -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 Paul | 2011-03-07 | 1 | -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é Fonseca | 2011-03-06 | 1 | -1/+10 |
| | |||||
* | os: Fix pipe_static_mutex on Windows. | José Fonseca | 2011-03-06 | 1 | -1/+2 |
| | |||||
* | draw: Silence tgsi_emit_sse2 failed messages. | José Fonseca | 2011-03-04 | 1 | -1/+2 |
| | |||||
* | tgsi: Disable SSE2 code generation. | José Fonseca | 2011-03-04 | 1 | -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é Fonseca | 2011-03-03 | 1 | -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 gs | Zack Rusin | 2011-03-02 | 2 | -6/+45 |
| | |||||
* | gallium: Add u_format_rgtc.c to SConscript. | Vinson Lee | 2011-03-01 | 1 | -0/+1 |
| | |||||
* | gallium: add RGTC UNORM support to u_format. | Dave Airlie | 2011-03-02 | 6 | -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. | ||||
* | draw: setup pipe's draw pointer for the aapoint stage | Brian Paul | 2011-02-28 | 1 | -0/+2 |
| | | | | | | The other draw stages like aaline and pstipple were already doing this. If the driver used the aapoint stage but not the others it would crash because of a null pipe->draw pointer. | ||||
* | u_vbuf_mgr: compute user buffer size for instance data from instance_count | Marek Olšák | 2011-03-01 | 1 | -3/+7 |
| | |||||
* | st/mesa & v_bug_mgr: two small instanced drawing fixes | Christian König | 2011-02-28 | 1 | -1/+4 |
| | |||||
* | gallivm: Initialize stack values | Jakob Bornecrantz | 2011-02-26 | 1 | -8/+8 |
| | | | | | valgrind gives me a warning with llvmpipe with profile builds but not debug builds, this seems to fix the issue at least. | ||||
* | util: Don't destroy shaders null shaders | Jakob Bornecrantz | 2011-02-26 | 1 | -2/+4 |
| | | | | Fixes regression from a08e612fd8e7ca2ac2fef8961e56e5b094033717 | ||||
* | util: Don't create array texture shaders if the driver doesn't support it | Jakob Bornecrantz | 2011-02-26 | 1 | -4/+6 |
| | |||||
* | gallium/tgsi: shuffle ureg_src structure to work around gcc4.6.0 issue | Jerome Glisse | 2011-02-25 | 1 | -14/+14 |
| | | | | | | | | | | | | There is an issue with gcc 4.6.0 that leads to segfault/assert with mesa due to ureg_src size, reshuffling the structure member to better better alignment work around the issue. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47893 7.9 + 7.10 candidate Signed-off-by: Jerome Glisse <[email protected]> | ||||
* | gallium/util: add 1d/2d mipmap generation support | Dave Airlie | 2011-02-25 | 1 | -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 setup | Fabian Bieler | 2011-02-24 | 1 | -2/+3 |
| | | | | Check if element was translated per element instead of per buffer. | ||||
* | gallivm: Use simple scaling plus casting in more unorm->float cases. | José Fonseca | 2011-02-19 | 1 | -25/+34 |
| | |||||
* | util: Make refcnt and symbol debuggers work on windows | Jakob Bornecrantz | 2011-02-18 | 2 | -2/+21 |
| | | | | Signed-off-by: Jakob Bornecrantz <[email protected]> | ||||
* | u_vbuf_mgr: initialize flag indicating that buffers have been updated | Marek Olšák | 2011-02-18 | 1 | -1/+1 |
| | | | | | This fixes r300g errors: r300: Cannot get a relocation in radeon_drm_cs_write_reloc. | ||||
* | util: Fix typo in last commit. | José Fonseca | 2011-02-17 | 1 | -1/+1 |
| | |||||
* | draw: update comments, rename vars in pstipple code | Brian Paul | 2011-02-17 | 1 | -16/+18 |
| | |||||
* | util: Cleanup symbol name resolution on Windows. | José Fonseca | 2011-02-17 | 2 | -39/+1310 |
| | | | | | | - Support symbol name resolution on MinGW. - Use dbghelp.dll (which should allow 64bit support), but untested yet. - Cleanup. | ||||
* | gallium/util: init key with memset() | Brian Paul | 2011-02-16 | 1 | -1/+3 |
| | | | | To silence missing initializers warning. | ||||
* | rtasm: add dummy return statement to silence MSVC warning | Brian Paul | 2011-02-16 | 1 | -1/+2 |
| | | | | | And use assert(0) instead of abort() to be consistent with rest of Gallium. | ||||
* | Revert "util: fix DXT1 RGBA texture compression if the source color is (0, ↵ | Dave Airlie | 2011-02-16 | 1 | -14/+2 |
| | | | | | | | | 0, 0, 0)" This reverts commit 6e7d782da506da233b2ac695b022ac393e1c719e. Oops, I just had this locally for testing and forgot to remove it before pushing. | ||||
* | util: fix DXT1 RGBA texture compression if the source color is (0, 0, 0, 0) | Marek Olšák | 2011-02-16 | 1 | -2/+14 |
| | | | | | | | | | This is a workaround for a bug in libtxc_dxtn. Fixes: - piglit/GL_EXT_texture_compression_s3tc/fbo-generatemipmap-formats Signed-off-by: Dave Airlie <[email protected]> | ||||
* | gallium: add usage parameter to pipe_buffer_create | Marek Olšák | 2011-02-15 | 5 | -1/+8 |
| | | | | | And set a reasonable buffer usage flag everywhere instead of just PIPE_USAGE_DEFAULT. | ||||
* | pb_bufmgr_cache: add is_buffer_busy hook and use it instead of non-blocking map | Marek Olšák | 2011-02-14 | 2 | -7/+14 |
| | | | | This is cleaner and implementing the hook is optional. | ||||
* | gallium: notify drivers about possible changes in user buffer contents | Marek Olšák | 2011-02-14 | 3 | -6/+15 |
| | | | | Also implement the redefine_user_buffer hook in the drivers. | ||||
* | gallium: remove pipe_vertex_buffer::max_index | Marek Olšák | 2011-02-14 | 8 | -25/+10 |
| | | | | | This is redundant to pipe_draw_info::max_index and doesn't really fit in the optimizations I plan. | ||||
* | gallium: always save and restore vertex buffers using cso_cache | Marek Olšák | 2011-02-14 | 7 | -10/+75 |
| | |||||
* | draw: Don't define the last two mipmap levels in aa lines. | José Fonseca | 2011-02-14 | 1 | -5/+11 |
| | | | | | | Some hardware needs to make a seperate copy of all levels to obey max_lod, so simply do not define the last two levels instead of clamping. | ||||
* | u_index_modify: map buffers with PIPE_TRANSFER_UNSYNCHRONIZED | Marek Olšák | 2011-02-14 | 1 | -3/+12 |
| | |||||
* | u_vbuf_mgr: fix segfault | Marek Olšák | 2011-02-12 | 1 | -1/+1 |
| | | | | | max_index could have been less than min_index, which later caused integer underflow followed by a segfault in memcpy. | ||||
* | draw: tweak AA line texture minimum alpha | Brian Paul | 2011-02-11 | 1 | -1/+1 |
| | | | | | AA lines drawn as textured quads look a little better with this change. Conformance/piglit tests still pass. | ||||
* | draw: Don't use the pipeline when drawing lines with fractional widths. | José Fonseca | 2011-02-11 | 3 | -5/+6 |
| | | | | Spotted by Jakob Bornecrantz. | ||||
* | util: Define round and roundf on MSVC. | José Fonseca | 2011-02-11 | 1 | -1/+13 |
| | |||||
* | u_upload_mgr: Use PIPE_TRANSFER_FLUSH_EXPLICIT. | José Fonseca | 2011-02-10 | 1 | -2/+9 |
| | | | | This can avoid DMAing the whole buffer when just a fraction was changed. | ||||
* | u_blitter: let the driver check whether there's a recursion | Marek Olšák | 2011-02-10 | 2 | -6/+9 |
| | |||||
* | u_vbuf_mgr: add a way to specify the BIND flag for the upload buffer | Marek Olšák | 2011-02-08 | 2 | -1/+3 |
| |