summaryrefslogtreecommitdiff
path: root/src/gallium
AgeCommit message (Collapse)Author
2009-09-28gallium/util: add sanity check assertionsBrian Paul
2009-09-24softpipe: Increase GL_MAX_3D_TEXTURE_SIZE to 256.Vinson Lee
2009-09-21softpipe: Fix cube face selection.Brian Paul
If arx and ary are equal, we still want to choose from one of them, and not arz. (cherry picked from commit de685b37a91bc95dd4093a44a49b7b47385b1f7c)
2009-09-10softpipe: minor indentation fixBrian Paul
2009-09-10softpipe: set dirty_render_cache in softpipe_clear()Brian Paul
This fixes a bug seen when doing a glDrawPixels(GL_STENCIL_INDEX) right after a glClear(). The check-for-flush test was failing because we didn't set the dirty_render_cache flag in softpipe_clear(). So we saw stale data when we mapped the stencil buffer.
2009-09-03gallium/xlib: silence unitialized var warningBrian Paul
2009-09-03gallium/xlib: silence uninitialized var warningBrian Paul
2009-09-02util: add version of u_blit_pixels which takes a writemaskKeith Whitwell
Values outside the writemask are set in the destination to {0,0,0,1}
2009-09-02draw: remove unused variableKeith Whitwell
2009-08-28util: Reset size to zero when failed to allocate buffer.José Fonseca
2009-08-27gallium/util: added support for SRGB formatsBrian Paul
Fixes glean/texture_srgb failure, bug #23449.
2009-08-27gallium/util: added cases for SRGB formatsBrian Paul
2009-08-24xlib: fix single buffer window resize bugBrian Paul
When a single-buffered window was resized the new window size was never detected. This fix that, but there's still a bug which causes window contents corruption for certain window sizes...
2009-08-20tgsi: check for SOA dependencies in SSE and PPC code generatorsBrian Paul
Fall back to interpreter for now. This doesn't happen very often.
2009-08-20tgsi: handle SOA dependencies for MOV/SWZBrian Paul
SOA dependencies can happen when a register is used both as a source and destination and the source is swizzled. For example: MOV T, T.yxwz; would expand into: MOV t0, t1; MOV t1, t0; MOV t2, t3; MOV t3, t2; The second instruction will produce the wrong result since we wrote to t0 in the first instruction. We need to use an intermediate temporary to fix this. This will take more work to fix for all TGSI instructions. This seems to happen with MOV instructions more than anything else so fix that case now and warn on others. Fixes piglit glsl-vs-loop test (when not using SSE). See bug 23317.
2009-08-20tgsi: added tgsi_full_instruction::Flags fieldBrian Paul
Users of the parser can make use of this.
2009-08-18tgsi/ppc: we don't implement saturation modes yetBrian Paul
2009-08-18tgsi/sse: we don't implement saturation modes yetBrian Paul
Fixes piglit fp-generic tests/shaders/generic/lrp_sat.fp, bug 23316.
2009-08-14gallium: Always map for READ flag when DISCARD is not set.José Fonseca
This prevents the driver from discarding a buffer when the whole buffer is mapped for writing, but only a portion is effectively written. This is a temporary fix, because WRITE shouldn't imply DISCARD. The full fix implies using PIPE_BUFFER_USAGE_DISCARD, throughout the code, and will go only into master.
2009-08-14trace: Remove space next to the class attribute of the trace.José Fonseca
2009-08-14python/retrace: Open bz2 files correctly.José Fonseca
2009-08-13draw: cope with more primitives in draw_pipeline_runKeith Whitwell
This previously was used only for decomposed (POINT/LINE/TRI) primitives, but for some time a full range of primitives could end up in here. Fixes trivial/lineloop-clip on softpipe, among others. (cherry picked from commit 87cd8a3b8a2407b30916be418ff2f95dfea5d2ad)
2009-08-06util: fix incorrect assertionBrian Paul
Check that the dest surface/format is renderable.
2009-08-06util: include u_surface.h, added commentBrian Paul
2009-08-06util: use util_same_surface() to compare surface pointersBrian Paul
2009-08-06util: added util_same_surface() helper functionBrian Paul
2009-08-05util: added comment/question about blit clippingBrian Paul
2009-08-05util: added util_blit_pixels() overlap testBrian Paul
A comment alluded to this. Now it's checked.
2009-08-05util: fix util_blit_pixels() test for surface_copy() pathBrian Paul
For the surface_copy() path require same format, no flipping and no stretching. Fixes progs/tests/copypixrate -blit
2009-08-05util: reformatting and commentsBrian Paul
2009-07-29util: _debug_printf should print even when DEBUG is not definedKeith Whitwell
The leading underscore is meaningful... This function is used by _warning and _error functions as well as the more common debug_printf(). debug_printf (without underscore) gets turned off when DEBUG is disabled, but warning/error messages still use this function to get their message out. (cherry picked from commit 0ac879dca797360570543d5bd0fd64f8fb8e566e)
2009-07-27softpipe: include sp_winsys.h to silence function prototype warningBrian Paul
2009-07-26util: fix typo.José Fonseca
2009-07-16python/retrace: Process the call no passed to --to option inclusively.José Fonseca
2009-07-16python/retrace: Dump the surface copy contents.José Fonseca
2009-07-16python/retrace: Flush stdout before calling the pipe driver.José Fonseca
So that messages are in sync with stderr.
2009-07-16python: Hack to prevent segmentation faults when python exits.José Fonseca
2009-07-16wgl: Expose pipe_screen/pipe_context via an extension.José Fonseca
2009-07-16python: Obtain pipe_screen/pipe_context from the system's OpenGL driver.José Fonseca
2009-07-15softpipe: limit blend results to [0,1]Luca Barbieri
2009-07-15python/retrace: Interpret surface_copy.José Fonseca
2009-07-15python/samples: Use PIPE_FORMAT_Z16_UNORM instead of PIPE_FORMAT_Z32_UNORM.José Fonseca
More common. True fix would be to use whatever the screen supports though.
2009-07-10tgsi: update some assertionsBrian Paul
2009-07-10tgsi: tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACEBrian Paul
Same story as in the tgsi_dump.c code (see prev commit).
2009-07-10tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACEBrian Paul
Fixes TGSI dump output when front/back-face register is declared. Also, add some assertions to make sure the semantic/interpolate string arrays have as many elements as there are tokens in the p_shader_tokens.h file. That should catch problems like this in the future.
2009-07-10tgis: implement indirect addressing for destination registersBrian Paul
Includes the TGSI interpreter, but not the SSE/PPC/etc code generators.
2009-07-07gallium: Fixes for clobbering stencil values in combined depth/stencil textures.Michel Dänzer
Also fix one case where a 32 bit depth value was incorrectly converted to a combined depth/stencil value.
2009-07-06wgl: Make the stw_framebuffer destructions threadsafe.José Fonseca
Ensure no other thread is accessing a framebuffer when it is being destroyed by acquiring both the global and per-framebuffer mutexes. Normal access only needs the global lock to walk the linked list and acquire the per-framebuffer mutex.
2009-07-06wgl: Check for multiple threads before GET_CURRENT_CONTEXT.José Fonseca
Fixes wglthreads -- the 2nd thread MakeCurrent call was trying to flush the first thread context while still in use.
2009-07-06wgl: Listen to WM_WINDOWPOSCHANGED instead of WM_SIZE messages.José Fonseca
According to http://blogs.msdn.com/oldnewthing/archive/2008/01/15/7113860.aspx WM_SIZE is generated from WM_WINDOWPOSCHANGED by DefWindowProc so it can be masked out by the application. Also there were some weird bogus WM_SIZE 0x0 messages when starting sharedtex_mt which we don't get like this.