summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-08-30scons: Prefer x86_64-w64-mingw32- prefix.José Fonseca1-1/+1
This allows to use mingw-w64 binaries on debian systems which already include a (typically incomplete) 64 cross compiler.
2011-08-29xorg/xvmc: Only set decode buffer when availableMaarten Lankhorst1-3/+6
The nouveau xvmc decoder doesn't need it. Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-08-29glsl_to_tgsi: fix a reference leak on an error pathMarek Olšák1-0/+1
2011-08-29i965: Avoid generating MOVs for most ir_assignment handling.Kenneth Graunke2-0/+48
This is a port of vec4_visitor::try_rewrite_rhs_to_dst to fs_visitor. Not only is this technique less invasive and more robust, it also generates better code. Over and above the previous technique, this reduced instruction count in shader-db by 0.28% on average and 1.4% in the best case. In no case did this technique result in more code than the prior method. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Eric Anholt <eric@anholt.net>
2011-08-29i965/fs: Revert "Avoid generating MOVs for assignments for expressions."Kenneth Graunke2-77/+10
This reverts commit 53c89c67f33639afef951e178f93f4e29acc5d53, along with the subsequent this->result = reg_undef additions it required. Both Eric and I agree that the way he did this is really fragile; if you forget to add this->result = reg_undef before calling accept(), it may end up using the same register for two separate things, breaking things in strange and mysterious ways. The next commit will port over the new VS backend's method for solving this problem, which is simpler, less intrusive, and still manages to avoid MOVs in the common case.
2011-08-29mesa: Remove all mention of MESA_FORMAT_CI8Ian Romanick11-160/+5
Nothing in Mesa supports color-index textures, and most of the other infrastructure that could allow such support has already been removed. This puts the final nail in the coffin. Also clean out some GL_COLOR_INDEX comments in formats.c. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-08-29dri: Remove MESA_FORMAT_CI8 bits from drivers that don't do paletted texturesIan Romanick12-32/+0
This came from the "kill it with fire" discussion at XDS 2010. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-08-29scons: add swrast/s_texture.c to the buildBrian Paul1-0/+1
2011-08-29intel: Rely on Mesa core for the non-blit glTexSubImage* implementation.Eric Anholt1-84/+65
It uses MapTextureImage() now, so we don't need our own mapping. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29mesa: Convert texture debug dump function to using MapTextureImage().Brian Paul2-44/+52
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29intel: Remove our custom _mesa_store_compressed_texsubimage2d().Eric Anholt1-83/+33
Now that Mesa core knows how to map teximages, we no longer needed the compressed paths here. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29mesa: Convert texstore.c to accessing textures using MapTextureImage.Brian Paul1-107/+231
This continues to allocate texImage->Data as before, so drivers calling these functions need to use that when present. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29nouveau: Add MapTextureImage() implementation.Eric Anholt1-0/+81
This is untested, but should be close to working since it's basically a copy of nouveau_teximage_map(). Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29radeon: Add MapTextureImage() implementation.Eric Anholt1-0/+77
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29radeon: Refactor the common texture hook setup to common code.Eric Anholt8-146/+52
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29swrast: Add implementation of MapTextureImage/UnmapTextureImage.Brian Paul4-0/+126
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29intel: Add implementation of MapTextureImage/UnmapTextureImage.Eric Anholt3-2/+92
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29st/mesa: Add implementation of MapTextureImage.Brian Paul1-0/+45
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29mesa: Add driver hooks for texture image mapping/unmapping.Brian Paul1-0/+19
ctx->Driver.MapTextureImage() / UnmapTextureImage() will be called by the glTex[Sub]Image(), glGetTexImage() functions, etc. when we're accessing texture data, and also for software rendering when accessing texture data. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-29mesa: Don't check for image->Data when freeing an image's contents.Eric Anholt3-12/+5
All driver implementations of FreeTextureImageBuffer already check that Data != NULL and free it. However, this means that we will also free driver storage if the driver storage wasn't in the form of a Data pointer. This was produced by the following semantic patch: @@ expression C; expression T; @@ - if (T->Data) { - C->Driver.FreeTextureImageBuffer(C, T); + C->Driver.FreeTextureImageBuffer(C, T); - } Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2011-08-29Rename some driver FreeTextureImageData functions to FreeTextureImageBuffer.Eric Anholt2-4/+5
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2011-08-29mesa: Rename FreeTexImageData to FreeTextureImageBuffer.Eric Anholt17-27/+27
This was produced by sed, except for one hunk in driverfuncs.c where trailing whitespace was dropped. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2011-08-29i915g: remove unused var in i915_flush_heuristically()Brian Paul1-2/+0
2011-08-29winsys/g3dvl: Fix include styleKai Wasserbäch3-19/+19
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29tests/unit: Fix include styleKai Wasserbäch1-5/+5
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29targets/xorg-vmwgfx: Fix include styleKai Wasserbäch1-1/+1
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29st/xorg: Fix include styleKai Wasserbäch7-31/+31
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29vdpau: Fix include styleKai Wasserbäch9-31/+32
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29va: Fix include styleKai Wasserbäch8-19/+19
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29d3d1x: Fix include styleKai Wasserbäch5-19/+19
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29include/pipe: Fix include styleKai Wasserbäch2-6/+6
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29r600g: Fix include styleKai Wasserbäch9-66/+66
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29noop: Fix include styleKai Wasserbäch2-13/+13
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29vl: Fix include styleKai Wasserbäch20-63/+63
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29util: Fix include styleKai Wasserbäch4-18/+18
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29docs: Fix minor typos.Kai Wasserbäch1-2/+2
dbec3a5d introduced minor typos, this should fix them. Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-08-29g3dvl: Fix a bug not decoding the last 32-64 bits of an mpeg2 bitstream.Christian König2-8/+7
Another bug found by Andy Furniss.
2011-08-29st/vdpau: Respect source_rect in VideoMixerRenderChristian König1-1/+11
Fixing a bug reported by Andy Furniss.
2011-08-29egl: Use gbm/wayland flags regardless of egl_dri2Benjamin Franzke1-10/+10
Since they are needed for display autodetection. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40443
2011-08-28xvmc tests: Clean up test_rendering slightlyMaarten Lankhorst1-14/+24
Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-08-28android: add support for egl_dri2Chia-I Wu3-1/+63
Add rules to build egl_dri2 and make it a built-in EGL driver of libGLES_mesa. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-28egl_dri2: add support for AndroidChia-I Wu3-0/+749
Add platform_android.c that supports _EGL_PLAFORM_ANDROID. It works with drm_gralloc, where back buffers of windows are backed by GEM objects. In Android a native window has a queue of back buffers allocated by the server, through drm_gralloc. For each frame, EGL needs to dequeue the next back buffer render to the buffer enqueue the buffer After enqueuing, the buffer is no longer valid to EGL. A window has no depth buffer or other aux buffers. They need to be allocated locally by EGL. Reviewed-by: Benjamin Franzke <benjaminfranzke@googlemail.com> Reviewed-by: Chad Versace <chad@chad-versace.us> [olv: with assorted minor changes, mostly suggested during the review]
2011-08-28egl_dri2: allow RGBA masks to be specified for matchingChia-I Wu5-5/+27
Add rgba_masks to dri2_add_config. When it is non-NULL, the DRI config is accepted only when the offsets and sizes of the its channels match rgba_mask. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-27glsl_to_tgsi: remove unused codeMarek Olšák2-80/+0
2011-08-27android: make DRM optionalChia-I Wu5-8/+39
For BOARD_GPU_DRIVERS=swrast build, DRM is not needed.
2011-08-27android: add support for nouveauChia-I Wu8-2/+216
Compile tested only.
2011-08-27android: add support for r300gChia-I Wu4-6/+67
Compile tested only.
2011-08-27android: add support for i915gChia-I Wu5-2/+95
Quickly tested with 945GME. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB or RGBA visuals work. As for 3D apps, some work and some do not.
2011-08-27android: add support for vmwgfxChia-I Wu5-2/+97
Quickly tested with VMWare Workstation 7.1.4 on Linux with GeForce GT220. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB visual works. However, due to missing PIPE_FORMAT_R8G8B8A8_UNORM support, those with RGBA visual do not.
2011-08-27winsys/i915: share the source listChia-I Wu3-11/+8
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.