summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
AgeCommit message (Collapse)Author
2011-02-28st/mesa & v_bug_mgr: two small instanced drawing fixesChristian König
2011-02-26util: Don't destroy shaders null shadersJakob Bornecrantz
Fixes regression from a08e612fd8e7ca2ac2fef8961e56e5b094033717
2011-02-26util: Don't create array texture shaders if the driver doesn't support itJakob Bornecrantz
2011-02-25gallium/util: add 1d/2d mipmap generation supportDave Airlie
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.
2011-02-24gallium/utils: Fix vertex element setupFabian Bieler
Check if element was translated per element instead of per buffer.
2011-02-18util: Make refcnt and symbol debuggers work on windowsJakob Bornecrantz
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-02-18u_vbuf_mgr: initialize flag indicating that buffers have been updatedMarek Olšák
This fixes r300g errors: r300: Cannot get a relocation in radeon_drm_cs_write_reloc.
2011-02-17util: Fix typo in last commit.José Fonseca
2011-02-17util: Cleanup symbol name resolution on Windows.José Fonseca
- Support symbol name resolution on MinGW. - Use dbghelp.dll (which should allow 64bit support), but untested yet. - Cleanup.
2011-02-16gallium/util: init key with memset()Brian Paul
To silence missing initializers warning.
2011-02-16Revert "util: fix DXT1 RGBA texture compression if the source color is (0, ↵Dave Airlie
0, 0, 0)" This reverts commit 6e7d782da506da233b2ac695b022ac393e1c719e. Oops, I just had this locally for testing and forgot to remove it before pushing.
2011-02-16util: fix DXT1 RGBA texture compression if the source color is (0, 0, 0, 0)Marek Olšák
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 <airlied@redhat.com>
2011-02-15gallium: add usage parameter to pipe_buffer_createMarek Olšák
And set a reasonable buffer usage flag everywhere instead of just PIPE_USAGE_DEFAULT.
2011-02-14gallium: notify drivers about possible changes in user buffer contentsMarek Olšák
Also implement the redefine_user_buffer hook in the drivers.
2011-02-14gallium: remove pipe_vertex_buffer::max_indexMarek Olšák
This is redundant to pipe_draw_info::max_index and doesn't really fit in the optimizations I plan.
2011-02-14gallium: always save and restore vertex buffers using cso_cacheMarek Olšák
2011-02-14u_index_modify: map buffers with PIPE_TRANSFER_UNSYNCHRONIZEDMarek Olšák
2011-02-12u_vbuf_mgr: fix segfaultMarek Olšák
max_index could have been less than min_index, which later caused integer underflow followed by a segfault in memcpy.
2011-02-11util: Define round and roundf on MSVC.José Fonseca
2011-02-10u_upload_mgr: Use PIPE_TRANSFER_FLUSH_EXPLICIT.José Fonseca
This can avoid DMAing the whole buffer when just a fraction was changed.
2011-02-10u_blitter: let the driver check whether there's a recursionMarek Olšák
2011-02-08u_vbuf_mgr: add a way to specify the BIND flag for the upload bufferMarek Olšák
2011-02-08u_vbuf_mgr: remove tabsMarek Olšák
2011-02-08u_vbuf_mgr: make the uploader publicMarek Olšák
2011-02-07util: import a new vertex buffer managerMarek Olšák
This code has originally matured in r300g and was ported to r600g several times. It was obvious it's a code duplication. See also comments in the header file.
2011-02-03util: Change u_get_transfer_vtbl usage argument type to match prototype.Vinson Lee
The type of u_get_transfer_vtbl of the usage argument in u_transfer.h is unsigned and not enum pipe_transfer_usage. This patch changes the type of usage to unsigned to match the prototype in the header file.
2011-02-03util: Prevent transfer dangling pointer on map failure.José Fonseca
2011-01-30util: Call tables should be const.Henri Verbeet
2011-01-29u_blitter: use user buffers instead of real buffersMarek Olšák
User buffers may be the fastest way to upload data.
2011-01-28util: Fix leak of transfers in upload managerJakob Bornecrantz
2011-01-27util: fix parsing debug optionsMarek Olšák
So that 'foo' can be found in: OPTION=prefixfoosuffix,foo Also allow that debug options can be separated by a non-alphanumeric characters instead of just commas.
2011-01-27r300g: fix some bugs with zbuffer compression (v4)Marek Olšák
This drops the memblock manager for ZMASK. Instead, only one zbuffer can be compressed at a time. Note that this does not necessarily have to be slower. When there is a large number of zbuffers, compression might be used more often than it was before. It's also easier to debug. How it works: 1) 'clear' turns the compression on. 2) If some other zbuffer is set or the currently-bound zbuffer is used for texturing, the driver decompresses it and then turns the compression off. Notes: - The ZMASK clear has been refactored, so that only one packet3 is used to clear ZMASK. - The 8x8 compression mode is disabled. I couldn't make it work without issues. - Also removed driver-specific stuff from u_blitter. Driver status: - RV530 and R580 appear to just work (finally). - RV570 should work, but there may be an issue that we don't correctly calculate the number of dwords to clear, resulting in a partially uninitialized zbuffer. - RS690 misrenders as if no ZMASK clear happened. No idea what's going on. - RV350 may even hardlock. This issue was already present and this patch doesn't fix it. I think we are still missing some hardware info we need to make the zbuffer compression work fully. Note that there is also an issue with HiZ, resulting in a sort of blocky zigzagged corruption around some objects.
2011-01-26util: require debug options to be separated by commasMarek Olšák
Let's assume there are two options with names such that one is a substring of another. Previously, if we only specified the longer one as a debug option, the shorter one would be considered specified as well (because of strstr). This commit fixes it by checking that each option is surrounded by commas. (a regexp would be nicer, but this is not a performance critical code)
2011-01-25u_blitter: remove bogus assertionMarek Olšák
The module uses the 3D engine, so it can blit non-compatible formats.
2011-01-25u_blitter: report recursion, update commentsMarek Olšák
2011-01-24util: Add function logger helpersJakob Bornecrantz
2011-01-22gallium/util: added pipe_put_tile_rgba_format()Brian Paul
2011-01-22gallium/util: simplify pipe_get_tile_rgba()Brian Paul
Implement it in terms of pipe_get_tile_rgba_format()
2011-01-22gallium/softpipe: replace pipe_get_tile_swizzle()Brian Paul
The new function, pipe_get_tile_rgba_format(), no longer takes a swizzle (we weren't actually using it anywhere). Rename it to indicate that the format is passed explicitly.
2011-01-22gallium/util: added util_format_linear()Brian Paul
2011-01-13util: Undo spurious changes in last commit.José Fonseca
2011-01-13util: Don't limit debug_printf message length on unices.José Fonseca
2011-01-06util: add comments to u_upload_mgr and u_inlinesMarek Olšák
2011-01-06gallium: drivers should reference vertex buffersMarek Olšák
So that a state tracker can unreference them after set_vertex_buffers.
2011-01-06u_upload_mgr: new featuresMarek Olšák
- Added a parameter to specify a minimum offset that should be returned. r300g needs this to better implement user buffer uploads. This weird requirement comes from the fact that the Radeon DRM doesn't support negative offsets. - Added a parameter to notify a driver that the upload flush occured. A driver may skip buffer validation if there was no flush, resulting in a better performance. - Added a new upload function that returns a pointer to the upload buffer directly, so that the buffer can be filled e.g. by the translate module.
2011-01-06u_upload_mgr: keep the upload buffer mapped until it is flushedMarek Olšák
The map/unmap overhead can be significant even though there is no waiting on busy buffers. There is simply a huge number of uploads. This is a performance optimization for Torcs, a car racing game.
2010-12-30util: Add forward declarations in u_index_modify.h.Vinson Lee
2010-12-29util: add a way to store translated indices to a user memory in u_index_modifyMarek Olšák
I am about to use the upload buffer in r300g instead.
2010-12-23gallium: add new formats L16A16_UNORM, A16_UNORM, I16_UNORM, B2G3R3_UNORMMarek Olšák
2010-12-20gallium: remove unused 'buf' parameter in pipe_buffer_unmapMarek Olšák