summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* egl: Fix gallium build when EGL is not installed on systemJakob Bornecrantz2010-06-291-1/+2
|
* i915g: Add missing egl pipe fileJakob Bornecrantz2010-06-291-0/+28
|
* egl: Remove st/egl probe code.Chia-I Wu2010-06-2910-205/+1
| | | | It is no longer needed.
* egl: Do not call drv->Initialize with global mutex locked.Chia-I Wu2010-06-291-3/+9
|
* st/egl: Build a single EGL driver.Chia-I Wu2010-06-2910-219/+210
| | | | | | | | | | | | This change makes st/egl build a single egl_gallium.so and multiple st_<API>.so and pipe_<HW>.so. When a display is initialized, the corresponding pipe driver will be loaded. When a context is created, the corresponding state tracker will be loaded. Unlike DRI drivers, no ABI compatibility is maintained. egl_gallium, pipe drivers and state trackers should always be distributed as a single package. As such, there is only a single src/gallium/targets/egl/ that builds everything for the package.
* st/egl: Move module loading code to targets.Chia-I Wu2010-06-2926-424/+556
| | | | | | | | | | Several changes are made. libegl.a no longer defines _eglMain. It defines functions to create and destroy a _EGLDriver instead. The creation function is called by the targets. It takes an egl_g3d_loader as its argument. The loader is defined by the targets and is in charge of creating st_api and pipe_screen. This allows us to move the module loading code to targets. Lastly, the modules are now loaded as the respective contexts are created.
* st/egl: Reorganize targets.Chia-I Wu2010-06-2924-361/+240
| | | | | | | Merge all targets into targets/egl/. The target produces egl_gallium_<HW>.so for each pipe driver and st_<API>.so for each client APIs. This enables us to further merge egl_gallium_<HW>.so into egl_gallium.so later.
* st/egl: One driver per hardware.Chia-I Wu2010-06-2916-132/+190
| | | | | | Merge multiple egl_<platform>_<pipe>.so into a single egl_gallium_<pipe>.so. The environment variable EGL_PLATFORM is now used to modify the return value of _eglGetNativePlatform.
* st/egl: Introduce native_platform.Chia-I Wu2010-06-298-107/+137
| | | | | | Move native_get_name, native_create_probe, native_get_probe_result, and native_create_display into struct native_platform, and add native_get_platform to get a handle to the struct.
* st/egl: Make api_OpenGL support OpenGL ES.Chia-I Wu2010-06-295-8/+31
| | | | This allows api_OpenGL.so to support OpenGL ES.
* st/mesa: Add support for multiple APIs.Chia-I Wu2010-06-295-36/+82
| | | | | Add st_gl_api_create_es1 and st_gl_api_create_es2 to create OpeGL ES 1.1 and OpenGL ES 2.0 contexts respectively.
* st_api: Remove st_context::is_visual_supported.Chia-I Wu2010-06-296-35/+34
| | | | | | | | The callback is used by st/vega to check if a visual specifies the depth/stencil format. It forces st/vega to be loaded by st/egl to perform the check. As noted in EGL spec, the depth/stencil format of a visual should not affect OpenVG. It should be better to ignore the field and always allocate the depth/stencil texture.
* mesa: initial support for ARB_geometry_shader4Zack Rusin2010-06-2863-7031/+8996
| | | | | | laying down the foundation for everything and implementing most of the stuff. linking, gl_VerticesIn and multidimensional inputs are left.
* util: reference surfaces and sampler views in blitter when saving themMarek Olšák2010-06-294-28/+49
| | | | Ooops. This should possibly fix some bugs...
* i915g: Add Galahad to targetsJakob Bornecrantz2010-06-284-4/+8
|
* r300g: Galahad for scons as wellJakob Bornecrantz2010-06-281-1/+2
|
* r300g: Add target defines for GalahadJakob Bornecrantz2010-06-283-3/+3
|
* glhd: Build with sconsJakob Bornecrantz2010-06-282-2/+4
|
* glhd: Re-integrate with the debug systemJakob Bornecrantz2010-06-282-1/+13
|
* glhd: Remove leftover fileJakob Bornecrantz2010-06-281-35/+0
|
* Merge branch 'gallium-drm-driver-drescriptor'Jakob Bornecrantz2010-06-28130-971/+995
|\ | | | | | | | | | | | | | | | | Conflicts: src/gallium/state_trackers/egl/x11/native_dri2.c src/gallium/state_trackers/egl/x11/native_x11.c src/gallium/state_trackers/egl/x11/native_x11.h src/gallium/state_trackers/xorg/xorg_driver.c src/gallium/winsys/radeon/drm/radeon_drm.c
| * nouveau: Remove reference to drm_apiJakob Bornecrantz2010-06-241-1/+1
| |
| * i965g: Remove last references to drm_apiJakob Bornecrantz2010-06-242-2/+2
| |
| * swrastg: Use target-helpersJakob Bornecrantz2010-06-243-54/+13
| |