summaryrefslogtreecommitdiff
path: root/src/gallium
AgeCommit message (Collapse)Author
2010-11-02r600g: Fixed two memory leaks in winsys.Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: Delete custom_dsa_flush on shutdown.Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: We don't support PIPE_CAP_PRIMITIVE_RESTART.Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: Made radeon_bo::map_count signed.Tilman Sauerbeck
That way assert(map_count >= 0) can actually fail when we screwed up. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: Fixed unmap condition in radeon_bo_pb_destroy().Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: Made radeon_bo_pb_map_internal() actually call radeon_bo_map().Tilman Sauerbeck
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 <tilman@code-monkey.de>
2010-11-02r600g: Removed unused 'ptr' argument from radeon_bo().Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02graw: Tidy graw xlib scons file a bitJakob Bornecrantz
2010-11-02llvmpipe: add a castBrian Paul
2010-11-02llvmpipe: assign context's frag shader pointer before using itBrian Paul
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.
2010-11-02st/mesa: unbind constant buffer when not in useKeith Whitwell
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.
2010-11-02llvmpipe: guard against NULL task->query pointerKeith Whitwell
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.
2010-11-02llvmpipe: avoid generating tri_16 for tris which extend past tile boundsKeith Whitwell
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).
2010-11-02scons: i915 can't build on MSVC either.José Fonseca
I thought I had singled it out before, but apparently not.
2010-11-02scons: Add aliases for several pipe drivers.José Fonseca
2010-11-02r600g: List recently added files in SConscript.José Fonseca
2010-11-01scons: Disable python state tracker when swig is not present.José Fonseca
2010-11-01scons: Some pipe drivers are not portable for MSVCJosé Fonseca
2010-11-01scons: Revamp how to specify targets to build.José Fonseca
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.
2010-11-01st/egl image: multiply drm buf-stride with blocksizeBenjamin Franzke
[olv: formatted for 80-column wrapping]
2010-10-31targets/egl: Fix a warning with --disable-opengl build.Chia-I Wu
API_DEFINES is the defines for libmesagallium.a. Append it to egl_CPPFLAGS only when st_GL.so, which uses libmesagallium.a, is built.
2010-10-29targets: Add missing quotes to Makefile.xorg.Chia-I Wu
Fix $ make CC="ccache gcc"
2010-10-29Merge branch 'glapi-reorg'Chia-I Wu
Conflicts: src/mapi/glapi/glapi_sparc.S src/mapi/glapi/glapi_x86.S src/mapi/glapi/glapidispatch.h src/mapi/glapi/glapioffsets.h src/mapi/glapi/glprocs.h
2010-10-28gallivm: Remove the EMMS opcodes.José Fonseca
Unnecessary now that lp_set_target_options() successful disables MMX code emission.
2010-10-28gallivm: always enable LLVMAddInstructionCombiningPass()José Fonseca
2010-10-28gallium: Avoid using __doc__ in python scripts.José Fonseca
2010-10-27Fix build on systems where "python" is python 3.Kenneth Graunke
First, it changes autoconf to use a "python2" binary when available, rather than plain "python" (which is ambiguous). Secondly, it changes the Makefiles to use $(PYTHON) $(PYTHON_FLAGS) rather than calling python directly. Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Matthew William Cox <matt@mattcox.ca> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2010-10-27r300g: add a default channel ordering of texture border for unhandled formatsMarek Olšák
It should fix the texture border for compressed textures. Broken since 8449a4772a73f613d9425b691cffba6a261df813.
2010-10-27r600g: Silence uninitialized variable warnings.Vinson Lee
2010-10-27r300g: Silence uninitialized variable warning.Vinson Lee
Fixes this GCC warning. r300_state_derived.c: In function 'r300_update_derived_state': r300_state_derived.c:593: warning: 'r' may be used uninitialized in this function r300_state_derived.c:593: note: 'r' was declared here
2010-10-27r600g: Destroy the blitter.Tilman Sauerbeck
This fix got lost in the state rework merge. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-10-27r600g: In radeon_bo(), call LIST_INITHEAD early.Tilman Sauerbeck
radeon_bo_destroy() will want to read the list field. Without this patch, we'd end up evaluating the list pointers before they have been properly set up when we destroyed the newly created bo if it cannot be mapped. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-10-27glapi: Do not use glapidispatch.h.Chia-I Wu
glapidispatch.h exists so that core mesa (libmesa.a) can be built for DRI drivers or for non-DRI drivers as a compile time decision (whether IN_DRI_DRIVER is defined). It is of no use to glapi. This commit also drops the use of glapidispatch.h in glx and libgl-xlib as they are considered extensions to glapi when it comes to defining public GL entries.
2010-10-26r600g: add assembler support for all the kcache fields.Dave Airlie
2010-10-26r600g: fix magic 0x1 ->flat shade enaDave Airlie
2010-10-25translate: remove unused prototypesBrian Paul
2010-10-25translate: use function typedefs, casts to silence warningsBrian Paul
2010-10-25rtasm: use pointer_to_func() to silence warningBrian Paul
2010-10-25util: use pointer_to_func() to silence warningBrian Paul
2010-10-24r300g: fix texture border for 16-bits-per-channel formatsMarek Olšák
This is kinda hacky, but it's hard to come up with a generic solution for all formats when only a few are used in practice (I mostly get B8G8R8*8).
2010-10-24Ensure -L$(TOP)/$(LIB_DIR) appears in link line before any -L in $LDFLAGSJon TURNEY
Ensure -L$(TOP)/$(LIB_DIR) (the staging dir for build products), appears in the link line before any -L in $LDFLAGS, so that we link driver we are building with libEGL we have just built, and not an installed version [olv: make a similar change to targets/egl] Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2010-10-24r600g: drop more common state handling codeDave Airlie
2010-10-24r600g: Also clear bc data when we're destroying a shader.Tilman Sauerbeck
[airlied: remove unused vars] Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-24r600g: Added r600_pipe_shader_destroy().Tilman Sauerbeck
Not yet complete. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-24r600g: merge more of the common r600/evergreen state handlingDave Airlie
2010-10-24r600g: Fixed r600_vertex_element leak.Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-23softpipe: remove >32bpp color restrictionBrian Paul
The comment was out of date. The tile cache does handle >32-bit colors.
2010-10-23softpipe: added some texture sample debug code (disabled)Brian Paul
2010-10-23st/egl: Use resource reference count for egl_g3d_sync.Chia-I Wu
2010-10-23egl: Use reference counting to replace IsLinked or IsBound.Chia-I Wu
Remove all _egl<Res>IsLinked and _egl<Res>IsBound. Update _eglBindContext and drivers to do reference counting.