summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* mesa: fix texenv generation when num color bufs == 0Brian Paul2010-07-021-1/+4
| | | | | | | | | | | | Before, if there were no color buffers enabled (with glDrawBuffers(GL_NONE)) when the texenv program was generated, we'd emit writes to OUTPUT[1] but the OutputsWritten mask was 0. This inconsistency caused an assertion to fail later in the Mesa->TGSI translation. Fixes fd.o bug 28169 NOTE: this is a candidate for the 7.8 branch (and depends on commit b6b9b17d27c570cc99ae339e595cf2f63ca5e8d7).
* softpipe: fix incorrect blend func index passed to blend_quad()Brian Paul2010-07-021-8/+15
| | | | | | | | Need to pass the index indicating which blend terms to use, not which color buffer we're blending into. Rename the parameter to blend_quad() and add comments to be more clear about this.
* softpipe: better assertionsBrian Paul2010-07-021-7/+7
|
* mesa: add missing error checks in _mesa_program_parameteri()Brian Paul2010-07-021-8/+45
|
* main: change some GS field types, added commentsBrian Paul2010-07-021-2/+3
|
* mesa: make the number of draw buffers part of the texenv program key stateBrian Paul2010-07-022-5/+9
| | | | | | | | All the state that effects the program should be in the key. This didn't help with bug 28169 but is a good fix anyway. NOTE: this is a low-priority candidate for the 7.8 branch. In practice, this issue might never be hit.
* gallium/cso: check for set_vertex_sampler_views != NULL before calling itBrian Paul2010-07-021-1/+2
| | | | | Not all drivers implement this method. Fixes regression reported by Chris Rankin and bug 28889.
* mesa: Silence warning.José Fonseca2010-07-021-1/+2
|
* gallivm: Code generate YUV format unpacking.José Fonseca2010-07-025-0/+431
|
* gallivm: Fix 4 x unorm8 -> 4 x float conversion.José Fonseca2010-07-023-8/+31
| | | | Also fix the test.
* r600: use gallium list macros instead of making our own.Dave Airlie2010-07-028-110/+112
| | | | | | | | | before this change, r600 glxinfo segfaulted in the list code, and I wasn't debugging another linked list implementation, its 2010 after all. So add the two missing list macros to the gallium header from X.org list header file (after fixing them), then port all r600 lists to the new header. Signed-off-by: Dave Airlie <[email protected]>
* mesa: extension flags and version testing for GL 3.x featuresBrian Paul2010-07-013-3/+102
|
* mesa: entrypoints for GL 3.1 primitive restartBrian Paul2010-07-014-0/+110
|
* Use GLW_CFLAGS when building libGLwDan Nicholson2010-07-011-1/+1
| | | | | We check for libX11 and libXt, so we might as well use the CFLAGS pkg-config tells us about.
* mesa: Purge macros NEED_EVENTS and NEED_REPLIESFernando Carrijo2010-07-016-10/+0
| | | | | Signed-off-by: Fernando Carrijo <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* gallium/cso: unbind sampler views in cso_release_all()Brian Paul2010-07-011-0/+2
|
* mesa: free xform feedback hash tableBrian Paul2010-07-011-0/+1
|
* st/mesa: fix commentBrian Paul2010-07-011-1/+1
|
* llvmpipe: silence pointer type warningsBrian Paul2010-07-011-4/+8
|
* gallivm: Support 4 x unorm8 in lp_build_fetch_rgba_aos().José Fonseca2010-07-016-141/+372
| | | | Uses code and ideas from Brian Paul.
* gallivm: Allow to conversions to/from registers of different sizes.José Fonseca2010-07-014-25/+141
| | | | | | Allow for example to convert from 4 x float32 to 4 x unorm8 and vice versa. Uses code and ideas from Brian Paul.
* gallivm: Support extended swizzles in lp_build_swizzle1_aos().José Fonseca2010-07-013-23/+169
| | | | And rename to lp_build_swizzle_aos().
* gallivm: Setup a global optimization pass.José Fonseca2010-07-012-0/+31
| | | | | Modules are still free to setup their own optimization passes, but for the normal case it should not be necessary.
* llvmpipe: Remove lp_build_swizzle2_aos().José Fonseca2010-07-013-83/+19
| | | | Unnecessary special case.
* llvmpipe: another null pointer checkBrian Paul2010-06-301-1/+1
|
* llvmpipe: use dummy tile when out of memoryBrian Paul2010-06-303-14/+33
|
* llvmpipe: added new lp_memory.[ch] filesBrian Paul2010-06-304-0/+99
| | | | Functions for using dummy tiles when we detect OOM conditions.
* draw: fix out of memory handling in polygon stipple stageBrian Paul2010-06-301-5/+10
|
* glu: Fix some compiler warnings in libtessNeil Roberts2010-06-308-13/+37
| | | | | | | | | | | | | | | | | | | | | | | | | When compiled with the more aggressive compiler warnings such as -Wshadow and -Wempty-body the libtess code gives a lot more warnings. This fixes the following issues: * The 'Swap' macro tries to combine multiple statements into one and then consume the trailing semicolon by using if(1){/*...*/}else. This gives warnings because the else part ends up with an empty statement. It also seems a bit dangerous because if the semicolon were missed then it would still be valid syntax but it would just ignore the following statement. This patch replaces it with the more common idiom do { /*...*/ } while(0). * 'free' was being used as a local variable name but this shadows the global function. This has been renamed to 'free_handle' * TRUE and FALSE were being unconditionally defined. Although this isn't currently a problem it seems better to guard them with #ifndef because it's quite common for them to be defined in other headers. https://bugs.freedesktop.org/show_bug.cgi?id=28845 Signed-off-by: Brian Paul <[email protected]>
* egl: Update MaxSize when a dynamic array is grown.Chia-I Wu2010-06-301-0/+1
|
* egl: Make _eglUnloadDrivers no-op on Windows.Chia-I Wu2010-06-301-0/+4
| | | | | Windows unloads DLLs before atexit. Make _eglUnloadDrivers no-op on Windows for now.
* st/egl: Manually free configs on terminate.Chia-I Wu2010-06-301-1/+13
| | | | | The configs should be FREE()ed, not free()ed. We cannot rely on _eglCleanupDisplay here.
* egl: Store screens in a dynamic array.Chia-I Wu2010-06-304-37/+41
|
* egl: Store configs in a dynamic array.Chia-I Wu2010-06-306-58/+31
|
* egl: Add dynamic array.Chia-I Wu2010-06-305-0/+217
| | | | Dynamic arrays will be used to store configs and screens of a display.
* st/vega: Match MALLOC/FREE for vg_shader.Chia-I Wu2010-06-301-1/+1
| | | | A vg_shader is destroyed with FREE.
* llvmpipe: Add a new scene state to describe scenes which only have state ↵José Fonseca2010-06-302-19/+26
| | | | | | | | | changes. It's a rare condition, but it may happen if all primitives are clipped/culled. For now we just do a no-op rasterization, but we could bypass it.
* llvmpipe: Don't reset the bin when there's a zsbuf bound.José Fonseca2010-06-301-1/+2
| | | | | | The previous rendering may have secondary effects on the zsbuf. Fixes the missing tiles on gearbox.
* st/vega: s/free/FREE for matching MALLOC/CALLOCnobled2010-06-309-15/+15
| | | | [Manually fix a conflict in vg_context.c by Chia-I Wu]
* st/xorg: s/free/FREE for matching MALLOC/CALLOCnobled2010-06-301-1/+1
|
* st/egl: Add egl-gdi target.Chia-I Wu2010-06-304-18/+166
| | | | | | | | | The target supports OpenVG on Windows with software rasterizer. The egl_g3d_loader defined by the target supports arbitrary client APIs and window systems. It is the SConscript that limits the support to OpenVG and GDI. This commit also fixes a typo in gdi backend.
* mesa: Use fpclassify for GL_OES_query_matrix on OpenBSD and NetBSD.Chia-I Wu2010-06-301-1/+2
| | | | | | | Patch from Brad Smith <[email protected]> The attached patch allows the GL_OES_query_matrix function to use the systems fpclassify() for OpenBSD and NetBSD.
* mesa: make the arguments in the asm statemants optionalZack Rusin2010-06-292-4/+2
| | | | geometry shaders emit/end functions don't take any arguments
* r300g: add workaround for multiple contextsMarek Olšák2010-06-303-1/+9
|
* r300g: move one flush from winsys to the contextMarek Olšák2010-06-303-33/+34
| | | | | | | This flush happens when changing the tiling flags, and it should really be done in the context. I hope this fixes FDO bug #28630.
* llvmpipe: don't crash/assert on out of memoryBrian Paul2010-06-293-13/+16
| | | | Check for null pointers and return early, etc.
* llvmpipe: restore call to lp_setup_update_state()Brian Paul2010-06-291-0/+6
| | | | | | | | | This undoes part of commit 8be645d53a0d5d0ca50e4e9597043225e2231b6d and fixes fd.o bug 28822 as well as other regressions. The 'draw' module may issue additional state-change commands while we're inside the draw_arrays/elements() call so it's important to check for updated state at this point.
* egl: Check for drm winsys not just the driver nameJakob Bornecrantz2010-06-291-5/+5
| | | | Also fix pipe_radeon.so not building
* draw: Add inline keyword to inline function.José Fonseca2010-06-291-1/+1
| | | | Otherwise gcc will warn about unusued functions.
* i915g: Fix copy pastoJakob Bornecrantz2010-06-291-4/+4
|