Eric Anholt
bfc09e92ff
intel: Add implementation of MapTextureImage/UnmapTextureImage.
...
Reviewed-by: Brian Paul <brianp@vmware.com >
2011-08-29 10:10:03 -07:00
Brian Paul
0abb2659dd
st/mesa: Add implementation of MapTextureImage.
...
Reviewed-by: Brian Paul <brianp@vmware.com >
2011-08-29 10:10:03 -07:00
Brian Paul
570016cef2
mesa: Add driver hooks for texture image mapping/unmapping.
...
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-29 10:10:03 -07:00
Eric Anholt
68f8cf7263
mesa: Don't check for image->Data when freeing an image's contents.
...
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-29 10:10:03 -07:00
Eric Anholt
5401590815
Rename some driver FreeTextureImageData functions to FreeTextureImageBuffer.
...
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2011-08-29 10:10:03 -07:00
Eric Anholt
0bb29949ba
mesa: Rename FreeTexImageData to FreeTextureImageBuffer.
...
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-29 10:09:41 -07:00
Brian Paul
beca3316fb
i915g: remove unused var in i915_flush_heuristically()
2011-08-29 08:11:50 -06:00
Kai Wasserbäch
d4e8f38477
winsys/g3dvl: Fix include style
...
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-29 08:03:06 -06:00
Kai Wasserbäch
066875f340
tests/unit: Fix include style
...
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-29 08:03:04 -06:00
Kai Wasserbäch
a546acdaf4
targets/xorg-vmwgfx: Fix include style
...
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-29 08:03:03 -06:00
Kai Wasserbäch
7ea550621e
st/xorg: Fix include style
...
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-29 08:03:01 -06:00
Kai Wasserbäch
28f8ff6b62
vdpau: Fix include style
...
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-29 08:02:55 -06:00
Kai Wasserbäch
8bc7ccede1
va: Fix include style
...
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-29 08:02:55 -06:00
Kai Wasserbäch
92bc1111f3
d3d1x: Fix include style
...
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-29 08:02:55 -06:00
Kai Wasserbäch
51ecb33c6b
include/pipe: Fix include style
...
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-29 08:02:55 -06:00
Kai Wasserbäch
8fb7f1a8a4
r600g: Fix include style
...
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-29 08:02:55 -06:00
Kai Wasserbäch
625593fde2
noop: Fix include style
...
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-29 08:02:54 -06:00
Kai Wasserbäch
19bcd21ed1
vl: Fix include style
...
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-29 08:02:54 -06:00
Kai Wasserbäch
137ba91aad
util: Fix include style
...
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-29 08:02:49 -06:00
Kai Wasserbäch
e106d4c731
docs: Fix minor typos.
...
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-29 08:02:46 -06:00
Christian König
d4bbdbd038
g3dvl: Fix a bug not decoding the last 32-64 bits of an mpeg2 bitstream.
...
Another bug found by Andy Furniss.
2011-08-29 10:36:06 +02:00
Christian König
ddd25cfbb0
st/vdpau: Respect source_rect in VideoMixerRender
...
Fixing a bug reported by Andy Furniss.
2011-08-29 10:16:56 +02:00
Benjamin Franzke
efb4872a9d
egl: Use gbm/wayland flags regardless of egl_dri2
...
Since they are needed for display autodetection.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40443
2011-08-29 09:34:20 +02:00
Maarten Lankhorst
110f846c25
xvmc tests: Clean up test_rendering slightly
...
Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com >
2011-08-28 12:12:59 -04:00
Chia-I Wu
099faeef33
android: add support for egl_dri2
...
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-28 21:56:23 +08:00
Chia-I Wu
9779f6f5c1
egl_dri2: add support for Android
...
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-28 21:56:23 +08:00
Chia-I Wu
58911b86a1
egl_dri2: allow RGBA masks to be specified for matching
...
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-28 21:56:22 +08:00
Marek Olšák
c8fed01c73
glsl_to_tgsi: remove unused code
2011-08-27 19:26:14 -05:00
Chia-I Wu
09b5f1fd61
android: make DRM optional
...
For BOARD_GPU_DRIVERS=swrast build, DRM is not needed.
2011-08-27 18:02:11 +08:00
Chia-I Wu
534df79187
android: add support for nouveau
...
Compile tested only.
2011-08-27 17:29:13 +08:00
Chia-I Wu
c696d65793
android: add support for r300g
...
Compile tested only.
2011-08-27 17:29:12 +08:00
Chia-I Wu
99be968e99
android: add support for i915g
...
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-27 17:29:09 +08:00
Chia-I Wu
04dbb37eaa
android: add support for vmwgfx
...
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-27 17:28:32 +08:00
Chia-I Wu
0cc0889007
winsys/i915: share the source list
...
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
2011-08-27 17:28:32 +08:00
Chia-I Wu
f9b55e23af
winsys/svga: share the source list
...
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
2011-08-27 17:28:32 +08:00
Chia-I Wu
11a56c430b
nouveau: share the source lists
...
For each driver, factor out C_SOURCES from Makefile to Makefile.sources,
and let Makefile and SConscript share it.
2011-08-27 17:28:31 +08:00
Chia-I Wu
1025f11327
r300g: share the source list
...
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
Note that
$(TOP)/src/glsl/ralloc.c and
$(TOP)/src/mesa/program/register_allocate.c
are removed from C_SOURCES in Makefile.sources and added back in
Makefile and SConscript. The idea is that they are not part of r300g.
But having them in libr300.a makes build non-GL targets such as the
compiler tests or g3dvl much easier. Also, for practical reason, TOP
would be an undefined variable in Makefile.sources.
2011-08-27 17:28:31 +08:00
Chia-I Wu
a558bf69cb
i915g: share the source list
...
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
2011-08-27 17:28:31 +08:00
Chia-I Wu
d2f10d8267
svga: share the source list
...
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
2011-08-27 17:28:31 +08:00
Chia-I Wu
822fad64f8
targets/egl-static: fix nouveau and vmwgfx for Android
...
drmVersion and driver specific ioctls are used to get the PCI ID from a
DRM fd. Eexpand the mechanism to nouveau and vmwgfx, except that for
nouveau, only the vendor ID is needed, and for vmwgfx, always assume
SVGA II.
2011-08-27 17:28:31 +08:00
Chia-I Wu
d074acb4fa
pci_ids: add vmwgfx pci id list
...
There is only one chipset
15ad:0405 VMware SVGA II Adapter
2011-08-27 17:28:30 +08:00
Ian Romanick
3a1ed4eaf2
mapi: Commit generated files modified by previous commit
...
Some of the changes are spurious because somebody forgot to do this
when adding glFramebufferTextureLayerARB.
2011-08-26 23:33:23 -07:00
Ian Romanick
f40c291ed6
mapi: Silence many "warning: unused parameter"
...
When generating dispatch templates, emit the '(void) blah;' magic to
make GCC happy. This reduces a lot of warning spam if you build with
-Wunused-parameter or -Wextra.
Reviewed-by: Chia-I Wu <olv@lunarg.com >
2011-08-26 23:33:12 -07:00
Ian Romanick
5266c87c87
mesa/tnl_dd: Remove unused source tree mesa/tnl_dd/imm
...
Acked-by: Kristian Høgsberg <krh@bitplanet.net >
Acked-by: Marek Olšák <maraeo@gmail.com >
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com >
Acked-by: Jakob Bornecrantz <jakob@vmware.com >
Acked-by: Dave Airlie <airlied@redhat.com >
Build-Tested-by: Jakob Bornecrantz <jakob@vmware.com >
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com >
2011-08-26 23:31:24 -07:00
Ian Romanick
5dd6626a7a
mesa/tnl_dd: Remove unused header file t_dd_vbtmp.h
...
Acked-by: Kristian Høgsberg <krh@bitplanet.net >
Acked-by: Marek Olšák <maraeo@gmail.com >
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com >
Acked-by: Jakob Bornecrantz <jakob@vmware.com >
Acked-by: Dave Airlie <airlied@redhat.com >
Build-Tested-by: Jakob Bornecrantz <jakob@vmware.com >
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com >
2011-08-26 23:31:24 -07:00
Ian Romanick
6118bbd0a6
mesa/tnl_dd: Remove unused header file t_dd_rendertmp.h
...
Acked-by: Kristian Høgsberg <krh@bitplanet.net >
Acked-by: Marek Olšák <maraeo@gmail.com >
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com >
Acked-by: Jakob Bornecrantz <jakob@vmware.com >
Acked-by: Dave Airlie <airlied@redhat.com >
Build-Tested-by: Jakob Bornecrantz <jakob@vmware.com >
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com >
2011-08-26 23:31:24 -07:00
Ian Romanick
93db12a721
mesa: Remove support for BeOS
...
Acked-by: Kristian Høgsberg <krh@bitplanet.net >
Acked-by: Marek Olšák <maraeo@gmail.com >
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com >
Acked-by: Jakob Bornecrantz <jakob@vmware.com >
Acked-by: Dave Airlie <airlied@redhat.com >
Build-Tested-by: Jakob Bornecrantz <jakob@vmware.com >
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com >
2011-08-26 23:31:23 -07:00
Ian Romanick
c30181c7c3
dri: Remove unused header files mmx.h and spantmp.h
...
These header files were only used by drivers removed in a previous commit.
Acked-by: Kristian Høgsberg <krh@bitplanet.net >
Acked-by: Marek Olšák <maraeo@gmail.com >
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com >
Acked-by: Jakob Bornecrantz <jakob@vmware.com >
Acked-by: Dave Airlie <airlied@redhat.com >
Build-Tested-by: Jakob Bornecrantz <jakob@vmware.com >
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com >
2011-08-26 23:31:23 -07:00
Ian Romanick
dd10e7e0c3
dri: Remove driRenderbuffer::backBuffer field
...
The tdfx driver was the only user.
Acked-by: Kristian Høgsberg <krh@bitplanet.net >
Acked-by: Marek Olšák <maraeo@gmail.com >
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com >
Acked-by: Jakob Bornecrantz <jakob@vmware.com >
Acked-by: Dave Airlie <airlied@redhat.com >
Build-Tested-by: Jakob Bornecrantz <jakob@vmware.com >
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com >
2011-08-26 23:31:22 -07:00
Ian Romanick
e4344161bd
dri: Remove all DRI1 drivers
...
Acked-by: Kristian Høgsberg <krh@bitplanet.net >
Acked-by: Marek Olšák <maraeo@gmail.com >
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com >
Acked-by: Jakob Bornecrantz <jakob@vmware.com >
Acked-by: Dave Airlie <airlied@redhat.com >
Build-Tested-by: Jakob Bornecrantz <jakob@vmware.com >
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com >
2011-08-26 23:31:22 -07:00