aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* util: Reset size to zero when failed to allocate buffer.José Fonseca2009-08-281-2/+6
|
* gallium/util: added support for SRGB formatsBrian Paul2009-08-271-0/+196
| | | | Fixes glean/texture_srgb failure, bug #23449.
* gallium/util: added cases for SRGB formatsBrian Paul2009-08-271-0/+10
|
* xlib: fix single buffer window resize bugBrian Paul2009-08-241-0/+1
| | | | | | 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...
* tgsi: check for SOA dependencies in SSE and PPC code generatorsBrian Paul2009-08-202-0/+8
| | | | Fall back to interpreter for now. This doesn't happen very often.
* tgsi: handle SOA dependencies for MOV/SWZBrian Paul2009-08-202-14/+40
| | | | | | | | | | | | | | | | | | | | | | 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.
* tgsi: added tgsi_full_instruction::Flags fieldBrian Paul2009-08-202-0/+3
| | | | Users of the parser can make use of this.
* tgsi/ppc: we don't implement saturation modes yetBrian Paul2009-08-181-0/+5
|
* tgsi/sse: we don't implement saturation modes yetBrian Paul2009-08-181-0/+4
| | | | Fixes piglit fp-generic tests/shaders/generic/lrp_sat.fp, bug 23316.
* gallium: Always map for READ flag when DISCARD is not set.José Fonseca2009-08-141-0/+7
| | | | | | | | | | 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.
* trace: Remove space next to the class attribute of the trace.José Fonseca2009-08-141-1/+1
|
* python/retrace: Open bz2 files correctly.José Fonseca2009-08-141-1/+1
|
* draw: cope with more primitives in draw_pipeline_runKeith Whitwell2009-08-131-22/+55
| | | | | | | | 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)
* util: fix incorrect assertionBrian Paul2009-08-061-1/+1
| | | | Check that the dest surface/format is renderable.
* util: include u_surface.h, added commentBrian Paul2009-08-061-0/+2
|
* util: use util_same_surface() to compare surface pointersBrian Paul2009-08-061-3/+3
|
* util: added util_same_surface() helper functionBrian Paul2009-08-061-0/+17
|
* util: added comment/question about blit clippingBrian Paul2009-08-051-0/+1
|
* util: added util_blit_pixels() overlap testBrian Paul2009-08-051-2/+34
| | | | A comment alluded to this. Now it's checked.
* util: fix util_blit_pixels() test for surface_copy() pathBrian Paul2009-08-051-16/+24
| | | | | | For the surface_copy() path require same format, no flipping and no stretching. Fixes progs/tests/copypixrate -blit
* util: reformatting and commentsBrian Paul2009-08-051-3/+10
|
* util: _debug_printf should print even when DEBUG is not definedKeith Whitwell2009-07-291-2/+0
| | | | | | | | | | | 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)
* softpipe: include sp_winsys.h to silence function prototype warningBrian Paul2009-07-271-0/+1
|
* util: fix typo.José Fonseca2009-07-261-1/+1
|
* python/retrace: Process the call no passed to --to option inclusively.José Fonseca2009-07-161-1/+1
|
* python/retrace: Dump the surface copy contents.José Fonseca2009-07-161-0/+10
|
* python/retrace: Flush stdout before calling the pipe driver.José Fonseca2009-07-161-0/+4
| | | | So that messages are in sync with stderr.
* python: Hack to prevent segmentation faults when python exits.José Fonseca2009-07-161-1/+7
|
* wgl: Expose pipe_screen/pipe_context via an extension.José Fonseca2009-07-164-1/+133
|
* python: Obtain pipe_screen/pipe_context from the system's OpenGL driver.José Fonseca2009-07-162-3/+191
|
* softpipe: limit blend results to [0,1]Luca Barbieri2009-07-151-12/+30
|
* python/retrace: Interpret surface_copy.José Fonseca2009-07-151-0/+4
|
* python/samples: Use PIPE_FORMAT_Z16_UNORM instead of PIPE_FORMAT_Z32_UNORM.José Fonseca2009-07-151-1/+1
| | | | More common. True fix would be to use whatever the screen supports though.
* tgsi: update some assertionsBrian Paul2009-07-101-4/+4
|
* tgsi: tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACEBrian Paul2009-07-101-1/+6
| | | | Same story as in the tgsi_dump.c code (see prev commit).
* tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACEBrian Paul2009-07-101-1/+6
| | | | | | | | 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.
* tgis: implement indirect addressing for destination registersBrian Paul2009-07-106-11/+101
| | | | Includes the TGSI interpreter, but not the SSE/PPC/etc code generators.
* gallium: Fixes for clobbering stencil values in combined depth/stencil textures.Michel Dänzer2009-07-071-1/+27
| | | | | Also fix one case where a 32 bit depth value was incorrectly converted to a combined depth/stencil value.
* wgl: Make the stw_framebuffer destructions threadsafe.José Fonseca2009-07-065-82/+186
| | | | | | | 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.
* wgl: Check for multiple threads before GET_CURRENT_CONTEXT.José Fonseca2009-07-061-2/+8
| | | | | Fixes wglthreads -- the 2nd thread MakeCurrent call was trying to flush the first thread context while still in use.
* wgl: Listen to WM_WINDOWPOSCHANGED instead of WM_SIZE messages.José Fonseca2009-07-061-44/+45
| | | | | | | | | | 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.
* st/wgl: don't advertise WGL_EXT_swap_interval stringKeith Whitwell2009-07-031-1/+1
| | | | | | | | | | This is a tweak to a previous fix -- it's not necessary to actually advertise this extension to prevent these games from crashing -- they ignore the extension string anyway. It's sufficient to just have GetProcAddress return some dummy function addresses for SwapInterval. Given we don't really implement this funcitonality, this is a better fix.
* wgl: Lookup framebuffers by HWND whenever possible.José Fonseca2009-07-031-0/+10
| | | | | Some applications create several HDCs for the same window, so spite the WGL API is geared towards HDCs it is not reliable searching by HDC.
* util: Increase OutputDebugStringA to 4k.José Fonseca2009-07-011-4/+2
| | | | | | | According to http://unixwiz.net/techtips/outputdebugstring.html that's how big the buffer is. The 512bytes limitation is in kernel mode.
* st/wgl: dummy implementation of wgl swapinterval extensionKeith Whitwell2009-07-014-0/+63
| | | | | | | Required as some applications retrieve and call these functions regardless of the fact that we don't advertise the extension and further more the results of wglGetProcAddress are NULL.
* gallium: fix the front face semanticsZack Rusin2009-07-013-16/+15
| | | | | | | | mesa allocates both frontface and pointcoord registers within the fog coordinate register, by using swizzling. to make it cleaner and easier for drivers we want each of them in its own register. so when doing compilation from the mesa IR to tgsi allocate new registers for both and add new semantics to the respective declarations.
* wgl: Optimize wglGetProcAddress.José Fonseca2009-07-011-6/+6
| | | | Do linear search only if prefix matches.
* util: Set PIPE_BUFFER_USAGE_FLUSH_EXPLICIT when calling ↵José Fonseca2009-06-301-1/+3
| | | | buffer_flush_mapped_range.
* gallium: New PIPE_BUFFER_USAGE_FLUSH_EXPLICIT flag for ↵José Fonseca2009-06-303-7/+18
| | | | | | | | | | | | | | | | buffer_flush_mapped_range. When a buffer was mapped for write and no explicit flush range was provided the existing semantics were that the whole buffer would be flushed, mostly for backwards compatability with non map-buffer-range aware code. However if the buffer was mapped/unmapped with nothing really written -- something that often happens with the vbo -- we were unnecessarily assuming that the whole buffer was written. The new PIPE_BUFFER_USAGE_FLUSH_EXPLICIT flag (based from ARB_map_buffer_range 's GL_MAP_FLUSH_EXPLICIT_BIT flag) allows to clearly distinguish the legacy usage from the nothing written usage.
* cell: PIPE_CAP_TGSI_CONT_SUPPORTED queryBrian Paul2009-06-261-0/+2
|