summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
AgeCommit message (Collapse)Author
2008-12-30gallium: Remove unused variables.José Fonseca
2008-12-30rtasm: Remove spurious semi-colons after function bodies.José Fonseca
2008-12-22Merge commit 'origin/gallium-0.1' into gallium-0.2José Fonseca
Conflicts: src/gallium/auxiliary/util/Makefile
2008-12-22gallium: const correctness.José Fonseca
2008-12-20gallium: Fix typo in define name.José Fonseca
2008-12-19gallium: begin adapting Ian's 3D mipmap gen code to gallium utility libBrian Paul
Unfinished, a big no-op for now.
2008-12-19gallium: Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REVBrian Paul
This is copied from Ian's commit a330933bb75c38148668637cd22b90d75d39506f
2008-12-19gallium: Simple and efficient cache.José Fonseca
Fixed size hash table. Collisions are handled by simply destroying the previous entry. It hasn't received much testing yet.
2008-12-19gallium: replace #elif with #elseBrian Paul
2008-12-19gallium: replace #elif with #elseBrian Paul
2008-12-18tgsi: scan for additional info: uses_fogcoord, uses_frontfacingBrian Paul
2008-12-18tgsi: scan for additional info: uses_fogcoord, uses_frontfacingBrian Paul
2008-12-18Gallium: fix for conform testRobert Ellison
The following construction in util_surface_copy() in gallium/auxiliary/util/u_rect.c, introduced in commit d177c9ddda2c452cf7d6696d89cf4458ef986f98, incorrectly inverts the Y coordinate in the last parameter to pipe_copy_rect(). /* If do_flip, invert src_y position and pass negative src stride */ pipe_copy_rect(dst_map, &dst->block, dst->stride, dst_x, dst_y, w, h, src_map, do_flip ? -(int) src->stride : src->stride, src_x, do_flip ? w - src_y : src_y); The intention is to start at the last Y coordinate line and move backwards, in the case of a flip; in that case, the correct calculation is "src_y + h - 1", not "w - src_y". This fixes a Gallium assertion failure in the conformance tests: u_rect.c:65:pipe_copy_rect: Assertion `src_y >= 0' failed. debug_get_bool_option: GALLIUM_ABORT_ON_ASSERT = TRUE Trace/breakpoint trap
2008-12-18Gallium: fix for conform testRobert Ellison
The following construction in util_surface_copy() in gallium/auxiliary/util/u_rect.c, introduced in commit d177c9ddda2c452cf7d6696d89cf4458ef986f98, incorrectly inverts the Y coordinate in the last parameter to pipe_copy_rect(). /* If do_flip, invert src_y position and pass negative src stride */ pipe_copy_rect(dst_map, &dst->block, dst->stride, dst_x, dst_y, w, h, src_map, do_flip ? -(int) src->stride : src->stride, src_x, do_flip ? w - src_y : src_y); The intention is to start at the last Y coordinate line and move backwards, in the case of a flip; in that case, the correct calculation is "src_y + h - 1", not "w - src_y". This fixes a Gallium assertion failure in the conformance tests: u_rect.c:65:pipe_copy_rect: Assertion `src_y >= 0' failed. debug_get_bool_option: GALLIUM_ABORT_ON_ASSERT = TRUE Trace/breakpoint trap
2008-12-18gallium: Enable memory debugging on all windows platforms.José Fonseca
2008-12-17gallium: fix memory corruption in u_gen_mipmap.cBrian Paul
Remove the old/initial vbuf allocation in util_create_gen_mipmap(). We were allocating a small vbuf at this point so get_next_slot() didn't have as large of buffer as it expected. So all but the first set_vertex_data() was writing out of bounds. Also added some comments.
2008-12-17gallium: fix memory corruption in u_gen_mipmap.cBrian Paul
Remove the old/initial vbuf allocation in util_create_gen_mipmap(). We were allocating a small vbuf at this point so get_next_slot() didn't have as large of buffer as it expected. So all but the first set_vertex_data() was writing out of bounds. Also added some comments.
2008-12-16tgsi: use flr(), not trunc() for ARLBrian Paul
2008-12-16gallium: fix some assertsAlan Hourihane
2008-12-15Merge commit 'origin/gallium-0.1' into gallium-0.2Alan Hourihane
Conflicts: src/gallium/winsys/gdi/SConscript
2008-12-12Merge branch 'no-validate' into gallium-0.1Keith Whitwell
2008-12-12gallium: avoid mapping same vertex buffer in subsequent framesKeith Whitwell
Quite a few util modules were maintaining a single vertex buffer over multiple frames, and potentially reusing it in subsequent frames. Unfortunately that would force us into syncrhonous rendering as the buffer manager would be forced to wait for the previous rendering to complete prior to allowing the map. This resolves that issue, but requires the state tracker to issue a few new flush() calls at the end of each frame.
2008-12-12Revert "pipebuffer: Implement proper buffer validation."Keith Whitwell
This reverts commit a6d866f72c88d48d2bcfb3e3c882fdb639b5a8ce.
2008-12-12Revert "pipebuffer: Ondemand buffer manager."Keith Whitwell
This reverts commit 17849eafaacfbb2124d86f561a91b707317d3b31.
2008-12-12Revert "pipebuffer: Fix buffer overflow."Keith Whitwell
This reverts commit 55839ae064d64b7fcc180fcddb364bf31ab760dc.
2008-12-12gallium: fixes for srgb, new srgb formatsRoland Scheidegger
add some more srgb texture formats, including compressed ones various fixes relating to srgb formats issues: the util code for generating mipmaps will not handle srgb formats correctly (would need to use a linear->srgb conversion shader)
2008-12-11gallium: catch vertex overflow higher upAlan Hourihane
2008-12-11draw: Silencium compiler warnings on Windows.Michal Krol
2008-12-10gallium: added missing brace to fix broken buildBrian Paul
2008-12-10Merge commit 'origin/gallium-0.1' into gallium-0.2Brian Paul
2008-12-10gallium: added draw_set_mrd() function to fix polygon offsetBrian Paul
The Minimum Resolvable Depth factor depends on the driver and can't just be computed from the number of Z buffer bits. Glean's polygon offset test now passes with softpipe. Still need to determine the MRD factor for other gallium drivers, if they use the draw module's polygon offset stage...
2008-12-10gallium: change 65535 to UNDEFINED_VERTEX_IDAlan Hourihane
2008-12-10util: new funcs for triming/validating primitivesKeith Whitwell
2008-12-10draw: add const qualifiersKeith Whitwell
2008-12-10gallium: more vertex count checksAlan Hourihane
2008-12-10gallium: temporary check for > 65535 verticesAlan Hourihane
2008-12-09Merge commit 'origin/gallium-0.1' into gallium-0.2Alan Hourihane
2008-12-09gallium: Abort by default on windows user space.José Fonseca
2008-12-04gallium: added draw_texture_samplers() to support texture fetches from ↵Brian
vertex shaders This may only be practical for the softpipe driver at this time.
2008-12-01gallium: minor texture-related clean-ups, comments, etcBrian
2008-11-26tgsi: Reenable OPCODE_ARR.Michal Krol
2008-11-26tgsi: Fix build.Michal Krol
2008-11-26tgsi: Implement OPCODE_ROUND for SSE2 backend.Michal Krol
2008-11-26tgsi: Implement OPCODE_SSG/SGN.Michal Krol
2008-11-26gallium: disable TGSI_OPCODE_ARR case until emit_rnd() is redone.Brian Paul
2008-11-26Revert "tgsi: Implement OPCODE_ROUND for SSE2 backend."Brian Paul
This reverts commit 685fd2c035e284db2447ede0f6da278adaa70a0d. Does not compile since emit_rnd() is trying to pass 4 params to emit_func_call_dst() which takes 3 params.
2008-11-26tgsi: Implement OPCODE_SSG/SGN.Michal Krol
2008-11-26tgsi: Implement OPCODE_ARR.Michal Krol
2008-11-26tgsi: Implement OPCODE_ROUND for SSE2 backend.Michal Krol
2008-11-26tgsi: Implement OPCODE_ARR.Michal Krol