summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* xorg/xvmc: Only set decode buffer when availableMaarten Lankhorst2011-08-291-3/+6
| | | | | | The nouveau xvmc decoder doesn't need it. Signed-off-by: Maarten Lankhorst <[email protected]>
* glsl_to_tgsi: fix a reference leak on an error pathMarek Olšák2011-08-291-0/+1
|
* i965: Avoid generating MOVs for most ir_assignment handling.Kenneth Graunke2011-08-292-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 <[email protected]> Signed-off-by: Eric Anholt <[email protected]>
* i965/fs: Revert "Avoid generating MOVs for assignments for expressions."Kenneth Graunke2011-08-292-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.
* mesa: Remove all mention of MESA_FORMAT_CI8Ian Romanick2011-08-2911-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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* dri: Remove MESA_FORMAT_CI8 bits from drivers that don't do paletted texturesIan Romanick2011-08-2912-32/+0
| | | | | | | This came from the "kill it with fire" discussion at XDS 2010. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* scons: add swrast/s_texture.c to the buildBrian Paul2011-08-291-0/+1
|
* intel: Rely on Mesa core for the non-blit glTexSubImage* implementation.Eric Anholt2011-08-291-84/+65
| | | | | | It uses MapTextureImage() now, so we don't need our own mapping. Reviewed-by: Brian Paul <[email protected]>
* mesa: Convert texture debug dump function to using MapTextureImage().Brian Paul2011-08-292-44/+52
| | | | Reviewed-by: Brian Paul <[email protected]>
* intel: Remove our custom _mesa_store_compressed_texsubimage2d().Eric Anholt2011-08-291-83/+33
| | | | | | | Now that Mesa core knows how to map teximages, we no longer needed the compressed paths here. Reviewed-by: Brian Paul <[email protected]>
* mesa: Convert texstore.c to accessing textures using MapTextureImage.Brian Paul2011-08-291-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 <[email protected]>
* nouveau: Add MapTextureImage() implementation.Eric Anholt2011-08-291-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 <[email protected]>
* radeon: Add MapTextureImage() implementation.Eric Anholt2011-08-291-0/+77
| | | | Reviewed-by: Brian Paul <[email protected]>
* radeon: Refactor the common texture hook setup to common code.Eric Anholt2011-08-298-146/+52
| | | | Reviewed-by: Brian Paul <[email protected]>
* swrast: Add implementation of MapTextureImage/UnmapTextureImage.Brian Paul2011-08-294-0/+126
| | | | Reviewed-by: Brian Paul <[email protected]>
* intel: Add implementation of MapTextureImage/UnmapTextureImage.Eric Anholt2011-08-293-2/+92
| | | | Reviewed-by: Brian Paul <[email protected]>
* st/mesa: Add implementation of MapTextureImage.Brian Paul2011-08-291-0/+45
| | | | Reviewed-by: Brian Paul <[email protected]>
* mesa: Add driver hooks for texture image mapping/unmapping.Brian Paul2011-08-291-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 <[email protected]>
* mesa: Don't check for image->Data when freeing an image's contents.Eric Anholt2011-08-293-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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* Rename some driver FreeTextureImageData functions to FreeTextureImageBuffer.Eric Anholt2011-08-292-4/+5
| | | | | Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* mesa: Rename FreeTexImageData to FreeTextureImageBuffer.Eric Anholt2011-08-2917-27/+27
| | | | | | | | This was produced by sed, except for one hunk in driverfuncs.c where trailing whitespace was dropped. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* i915g: remove unused var in i915_flush_heuristically()Brian Paul2011-08-291-2/+0
|
* winsys/g3dvl: Fix include styleKai Wasserbäch2011-08-293-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* tests/unit: Fix include styleKai Wasserbäch2011-08-291-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* targets/xorg-vmwgfx: Fix include styleKai Wasserbäch2011-08-291-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* st/xorg: Fix include styleKai Wasserbäch2011-08-297-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* vdpau: Fix include styleKai Wasserbäch2011-08-299-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* va: Fix include styleKai Wasserbäch2011-08-298-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* d3d1x: Fix include styleKai Wasserbäch2011-08-295-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* include/pipe: Fix include styleKai Wasserbäch2011-08-292-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* r600g: Fix include styleKai Wasserbäch2011-08-299-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* noop: Fix include styleKai Wasserbäch2011-08-292-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* vl: Fix include styleKai Wasserbäch2011-08-2920-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* util: Fix include styleKai Wasserbäch2011-08-294-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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* g3dvl: Fix a bug not decoding the last 32-64 bits of an mpeg2 bitstream.Christian König2011-08-292-8/+7
| | | | Another bug found by Andy Furniss.
* st/vdpau: Respect source_rect in VideoMixerRenderChristian König2011-08-291-1/+11
| | | | Fixing a bug reported by Andy Furniss.
* egl: Use gbm/wayland flags regardless of egl_dri2Benjamin Franzke2011-08-291-10/+10
| | | | | | Since they are needed for display autodetection. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40443
* xvmc tests: Clean up test_rendering slightlyMaarten Lankhorst2011-08-281-14/+24
| | | | Signed-off-by: Maarten Lankhorst <[email protected]>
* android: add support for egl_dri2Chia-I Wu2011-08-282-0/+53
| | | | | | | Add rules to build egl_dri2 and make it a built-in EGL driver of libGLES_mesa. Reviewed-by: Chad Versace <[email protected]>
* egl_dri2: add support for AndroidChia-I Wu2011-08-283-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 <[email protected]> Reviewed-by: Chad Versace <[email protected]> [olv: with assorted minor changes, mostly suggested during the review]
* egl_dri2: allow RGBA masks to be specified for matchingChia-I Wu2011-08-285-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 <[email protected]>
* glsl_to_tgsi: remove unused codeMarek Olšák2011-08-272-80/+0
|
* android: make DRM optionalChia-I Wu2011-08-274-6/+33
| | | | For BOARD_GPU_DRIVERS=swrast build, DRM is not needed.
* android: add support for nouveauChia-I Wu2011-08-277-0/+203
| | | | Compile tested only.
* android: add support for r300gChia-I Wu2011-08-273-2/+56
| | | | Compile tested only.
* android: add support for i915gChia-I Wu2011-08-274-0/+87
| | | | | | 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.
* android: add support for vmwgfxChia-I Wu2011-08-274-0/+90
| | | | | | | 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.
* winsys/i915: share the source listChia-I Wu2011-08-273-11/+8
| | | | | Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
* winsys/svga: share the source listChia-I Wu2011-08-273-21/+13
| | | | | Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
* nouveau: share the source listsChia-I Wu2011-08-2712-149/+91
| | | | | For each driver, factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.