summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* gallivm: add some LLVM var labelsBrian Paul2010-11-031-6/+6
|
* gallivm: implement scatter stores into temp register fileBrian Paul2010-11-031-4/+47
| | | | | Something is not quite right, however. The piglit tests mentioned in fd.o bug 31226 still don't pass.
* r600g: Swap the util_blitter_destroy call order.José Fonseca2010-11-031-2/+3
| | | | | | | | | | Trivial change that avoids a segmentation fault when the blitter state happens to be bound when the context is destroyed. The free calls should probably removed altogether in the future -- the responsibility to destroy the state atoms lies with whoever created it, and the safest thing for the pipe driver is to not touch any bound state in its destructor.
* xorg/vmwgfx: Link libkms when available.José Fonseca2010-11-031-0/+3
|
* st/xorg: Detect libkms with scons too.José Fonseca2010-11-031-0/+3
|
* st/xorg: Add missing \n to error message.José Fonseca2010-11-031-1/+1
|
* xorg/vmwgfx: Add missing source file to SConscript.José Fonseca2010-11-031-0/+1
|
* egl/gdi: fix typo: xsurf->gsurfBrian Paul2010-11-031-1/+1
|
* evergreeng: set hardware pixelcenters according to gl_rasterization_rulesKeith Whitwell2010-11-032-1/+8
|
* evergreeng: respect linewidth state, use integer widths onlyKeith Whitwell2010-11-033-2/+8
| | | | | | | | | | | Discard fractional bits from linewidth. This matches the nvidia closed drivers, my reading of the OpenGL SI and current llvmpipe behaviour. It looks a lot nicer & avoids ugliness where lines alternate between n and n+1 pixels in width along their length. Also fix up r600g to match.
* r600g: don't call debug_get_bool_option for tiling more than onceKeith Whitwell2010-11-031-1/+7
|
* evergreeng: protect against null constant buffersKeith Whitwell2010-11-031-0/+7
| | | | | Should do better than this and actually unbind the buffer, but haven't yet gotten it to work.
* st/egl: Use native_display_buffer for EGL_MESA_drm_image.Chia-I Wu2010-11-033-10/+32
| | | | | native_display_buffer is just a wrapper to resource_{from,get}_handle for drm backend.
* st/egl: Add native_display_buffer interface.Chia-I Wu2010-11-032-0/+61
| | | | | | The interface is a wrapper to pipe_screen::resource_from_handle and pipe_screen::resource_get_handle. A winsys handle is platform-dependent.
* st/egl: Add extern "C" wrapper to native.h.Chia-I Wu2010-11-031-0/+8
| | | | This allows a backend to be written in C++.
* r600g: set hardware pixel centers according to gl_rasterization_rulesKeith Whitwell2010-11-034-0/+11
| | | | | | | These were previously being left in the default (D3D) mode. This mean that triangles were drawn slightly incorrectly, but also because this state is relied on by the u_blitter code, all blits were half a pixel off.
* r600g: remove unused flink, domain fields from r600_resourceKeith Whitwell2010-11-033-33/+0
| | | | These were being set but not used anywhere.
* r600g: use a buffer in GTT as intermediate on texture up and downloadsKeith Whitwell2010-11-032-23/+64
| | | | | | | | | | | Generalize the existing tiled_buffer path in texture transfers for use in some non-tiled up and downloads. Use a staging buffer, which the winsys will restrict to GTT memory. GTT buffers have the major advantage when they are mapped, they are cachable, which is a very nice property for downloads, usually the CPU will want to do look at the data it downloaded.
* r600g: propogate resource usage flags to winsys, use to choose bo domainsKeith Whitwell2010-11-037-13/+39
| | | | | | | | | This opens the question of what interface the winsys layer should really have for talking about these concepts. For now I'm using the existing gallium resource usage concept, but there is no reason not use terms closer to what the hardware understands - eg. the domains themselves.
* r600g: propagate usage flags in texture transfersKeith Whitwell2010-11-031-1/+26
|
* st/egl: Add support for EGL_MATCH_NATIVE_PIXMAP.Chia-I Wu2010-11-031-0/+66
| | | | | Added for completeness. It makes sense to have such mechanism, but I am not aware of any user of that..
* st/egl: Add support for swap interval and swap behavior.Chia-I Wu2010-11-032-5/+22
| | | | | | The value of EGL_MAX_SWAP_INTERVAL and whether EGL_SWAP_BEHAVIOR_PRESERVED_BIT is set will depend on the native backend used.
* st/egl: Remove flush_frontbuffer and swap_buffers.Chia-I Wu2010-11-036-23/+0
| | | | | They are deprecated by native_surface::present and there is no user of them.
* d3d1x: Use native_surface::present.Chia-I Wu2010-11-031-10/+4
| | | | | Replace native_surface::flush_frontbuffer and native_surface::swap_buffers calls by native_surface::present calls.
* st/egl: Use native_surface::present callback.Chia-I Wu2010-11-032-4/+5
| | | | | Replace native_surface::flush_frontbuffer and native_surface::swap_buffers calls by native_surface::present calls.
* st/egl: Add native_surface::present callback.Chia-I Wu2010-11-037-2/+170
| | | | | | | The callback presents the given attachment to the native engine. It allows the swap behavior and interval to be controlled. It will replace native_surface::flush_frontbuffer and native_surface::swap_buffers shortly.
* st/vega: Remove unnecessary headers.Vinson Lee2010-11-0212-23/+0
|
* r600g: Destroy the winsys in r600_destroy_screen().Tilman Sauerbeck2010-11-021-0/+3
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: Fixed two memory leaks in winsys.Tilman Sauerbeck2010-11-021-0/+2
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: Delete custom_dsa_flush on shutdown.Tilman Sauerbeck2010-11-021-0/+2
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: We don't support PIPE_CAP_PRIMITIVE_RESTART.Tilman Sauerbeck2010-11-021-0/+1
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: Made radeon_bo::map_count signed.Tilman Sauerbeck2010-11-021-1/+1
| | | | | | That way assert(map_count >= 0) can actually fail when we screwed up. Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: Fixed unmap condition in radeon_bo_pb_destroy().Tilman Sauerbeck2010-11-021-4/+6
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: Made radeon_bo_pb_map_internal() actually call radeon_bo_map().Tilman Sauerbeck2010-11-021-13/+7
| | | | | | | | This ensures that we increase bo->map_count when radeon_bo_map_internal() returns successfully, which in turn makes sure we don't decrement bo->map_count below zero later. Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: Removed unused 'ptr' argument from radeon_bo().Tilman Sauerbeck2010-11-023-8/+4
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* graw: Tidy graw xlib scons file a bitJakob Bornecrantz2010-11-021-7/+1
|
* llvmpipe: add a castBrian Paul2010-11-021-1/+1
|
* llvmpipe: assign context's frag shader pointer before using itBrian Paul2010-11-021-2/+2
| | | | | | The call to draw_bind_fragment_shader() was using the old fragment shader. This bug would have really only effected the draw module's use of the fragment shader in the wide point stage.
* st/mesa: unbind constant buffer when not in useKeith Whitwell2010-11-022-0/+10
| | | | | | | | | | | Important as more constant buffers per shader start to get used. Fix up r600 (tested) and nv50 (untested) to cope with this. Drivers previously didn't see unbinds of constant buffers often or ever, so this isn't always dealt with cleanly. For r600 just return and keep the reference. Will try to do better in a followup change.
* llvmpipe: guard against NULL task->query pointerKeith Whitwell2010-11-021-2/+5
| | | | | | This doesn't seem like it should be possible, but some test suites manage to hit this case. Avoid crashing release builds under those circumstances.
* llvmpipe: avoid generating tri_16 for tris which extend past tile boundsKeith Whitwell2010-11-022-14/+35
| | | | | | | | | | Don't trim triangle bounding box to scissor/draw-region until after the logic for emitting tri_16. Don't generate tri_16 commands for triangles with untrimmed bounding boxes outside the current tile. This is important as the tri-16 itself can extend past tile bounds and we don't want to add code to it to check against tile bounds (slow) or restrict it to locations within a tile (pessimistic).
* scons: i915 can't build on MSVC either.José Fonseca2010-11-021-1/+1
| | | | I thought I had singled it out before, but apparently not.
* scons: Add aliases for several pipe drivers.José Fonseca2010-11-028-8/+14
|
* r600g: List recently added files in SConscript.José Fonseca2010-11-021-0/+2
|
* scons: Disable python state tracker when swig is not present.José Fonseca2010-11-011-0/+3
|
* scons: Some pipe drivers are not portable for MSVCJosé Fonseca2010-11-011-2/+7
|
* scons: Revamp how to specify targets to build.José Fonseca2010-11-0134-737/+561
| | | | | | | | | | | | | | | | | | | | | | Use scons target and dependency system instead of ad-hoc options. Now is simply a matter of naming what to build. For example: scons libgl-xlib scons libgl-gdi scons graw-progs scons llvmpipe and so on. And there is also the possibility of scepcified subdirs, e.g. scons src/gallium/drivers If nothing is specified then everything will be build. There might be some rough corners over the next days. Please bare with me.
* st/egl image: multiply drm buf-stride with blocksizeBenjamin Franzke2010-11-011-1/+2
| | | | [olv: formatted for 80-column wrapping]
* targets/egl: Fix a warning with --disable-opengl build.Chia-I Wu2010-10-311-2/+1
| | | | | API_DEFINES is the defines for libmesagallium.a. Append it to egl_CPPFLAGS only when st_GL.so, which uses libmesagallium.a, is built.
* targets: Add missing quotes to Makefile.xorg.Chia-I Wu2010-10-291-1/+1
| | | | | | Fix $ make CC="ccache gcc"