Brian Paul [Mon, 29 Aug 2011 14:11:50 +0000 (08:11 -0600)]
i915g: remove unused var in i915_flush_heuristically()
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:59 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:58 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:57 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:56 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:55 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:54 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:53 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:52 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:51 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:50 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:49 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:48 +0000 (17:51 +0200)]
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>
Kai Wasserbäch [Sat, 27 Aug 2011 15:51:47 +0000 (17:51 +0200)]
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>
Christian König [Mon, 29 Aug 2011 08:36:06 +0000 (10:36 +0200)]
g3dvl: Fix a bug not decoding the last 32-64 bits of an mpeg2 bitstream.
Another bug found by Andy Furniss.
Christian König [Sun, 28 Aug 2011 11:52:44 +0000 (13:52 +0200)]
st/vdpau: Respect source_rect in VideoMixerRender
Fixing a bug reported by Andy Furniss.
Benjamin Franzke [Mon, 29 Aug 2011 07:21:30 +0000 (09:21 +0200)]
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
Maarten Lankhorst [Sat, 27 Aug 2011 23:56:30 +0000 (01:56 +0200)]
xvmc tests: Clean up test_rendering slightly
Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Chia-I Wu [Fri, 19 Aug 2011 09:11:34 +0000 (17:11 +0800)]
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>
Chia-I Wu [Fri, 5 Aug 2011 05:39:18 +0000 (14:39 +0900)]
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]
Chia-I Wu [Fri, 5 Aug 2011 05:36:14 +0000 (14:36 +0900)]
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>
Marek Olšák [Wed, 24 Aug 2011 21:58:43 +0000 (23:58 +0200)]
glsl_to_tgsi: remove unused code
Chia-I Wu [Thu, 25 Aug 2011 13:36:19 +0000 (21:36 +0800)]
android: make DRM optional
For BOARD_GPU_DRIVERS=swrast build, DRM is not needed.
Chia-I Wu [Mon, 22 Aug 2011 03:21:31 +0000 (11:21 +0800)]
android: add support for nouveau
Compile tested only.
Chia-I Wu [Mon, 22 Aug 2011 02:45:29 +0000 (10:45 +0800)]
android: add support for r300g
Compile tested only.
Chia-I Wu [Mon, 22 Aug 2011 03:04:46 +0000 (11:04 +0800)]
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.
Chia-I Wu [Mon, 22 Aug 2011 03:14:33 +0000 (11:14 +0800)]
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.
Chia-I Wu [Mon, 22 Aug 2011 03:09:20 +0000 (11:09 +0800)]
winsys/i915: share the source list
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
Chia-I Wu [Mon, 22 Aug 2011 03:18:15 +0000 (11:18 +0800)]
winsys/svga: share the source list
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
Chia-I Wu [Mon, 22 Aug 2011 03:30:27 +0000 (11:30 +0800)]
nouveau: share the source lists
For each driver, factor out C_SOURCES from Makefile to Makefile.sources,
and let Makefile and SConscript share it.
Chia-I Wu [Mon, 22 Aug 2011 02:53:10 +0000 (10:53 +0800)]
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.
Chia-I Wu [Mon, 22 Aug 2011 03:07:26 +0000 (11:07 +0800)]
i915g: share the source list
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
Chia-I Wu [Mon, 22 Aug 2011 03:16:33 +0000 (11:16 +0800)]
svga: share the source list
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
Chia-I Wu [Fri, 26 Aug 2011 03:30:47 +0000 (11:30 +0800)]
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.
Chia-I Wu [Wed, 24 Aug 2011 05:48:25 +0000 (13:48 +0800)]
pci_ids: add vmwgfx pci id list
There is only one chipset
15ad:0405 VMware SVGA II Adapter
Ian Romanick [Fri, 26 Aug 2011 00:31:03 +0000 (17:31 -0700)]
mapi: Commit generated files modified by previous commit
Some of the changes are spurious because somebody forgot to do this
when adding glFramebufferTextureLayerARB.
Ian Romanick [Fri, 26 Aug 2011 00:27:08 +0000 (17:27 -0700)]
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>
Ian Romanick [Thu, 25 Aug 2011 20:54:46 +0000 (13:54 -0700)]
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>
Ian Romanick [Thu, 25 Aug 2011 20:51:57 +0000 (13:51 -0700)]
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>
Ian Romanick [Thu, 25 Aug 2011 20:45:02 +0000 (13:45 -0700)]
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>
Ian Romanick [Thu, 25 Aug 2011 15:25:09 +0000 (08:25 -0700)]
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>
Ian Romanick [Wed, 24 Aug 2011 23:18:43 +0000 (16:18 -0700)]
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>
Ian Romanick [Wed, 24 Aug 2011 22:40:49 +0000 (15:40 -0700)]
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>
Ian Romanick [Wed, 24 Aug 2011 22:21:58 +0000 (15:21 -0700)]
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>
Ian Romanick [Wed, 24 Aug 2011 21:56:36 +0000 (14:56 -0700)]
mesa: Remove obsolete Windows gldirect and ICD 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>
Ian Romanick [Wed, 24 Aug 2011 21:50:12 +0000 (14:50 -0700)]
mesa: Remove obsolete linux-fbdev software driver
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>
Ian Romanick [Wed, 24 Aug 2011 22:23:53 +0000 (15:23 -0700)]
mesa: Remove stray, unused file
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>
Chad Versace [Fri, 26 Aug 2011 22:52:16 +0000 (15:52 -0700)]
i965: Factor our source lists into Makefile.sources
In preparation for porting i965 to Android, factor its source lists into
a shared makefile. This prevents duplication of source lists, and hence
prevents the Android from breaking as often.
Acked-by: Chia-I Wu <olv@lunarg.com>
Signed-off-by: Chad Versace <chad@chad-versace.us>
Stéphane Marchesin [Sat, 27 Aug 2011 00:37:25 +0000 (17:37 -0700)]
Merge branch 'master' of git://anongit.freedesktop.org/mesa/mesa
Brian Paul [Fri, 26 Aug 2011 20:16:20 +0000 (14:16 -0600)]
g3dvl: use pointer_to_uintptr() to silence a cast warning
Lauri Kasanen [Thu, 25 Aug 2011 20:26:17 +0000 (23:26 +0300)]
docs: Add a page on post-processing
With edits by Brian.
Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
Brian Paul [Fri, 26 Aug 2011 19:56:39 +0000 (13:56 -0600)]
svga: include LLVM in name string in debug builds
Christoph Bumiller [Fri, 26 Aug 2011 19:45:26 +0000 (21:45 +0200)]
pp: initialize the sample mask
We cannot rely on pipe drivers to default to non-zero.
Fixes pp being a no-op on nv50.
Reviewed-by: Lauri Kasanen <cand@gmx.com>
Michel Dänzer [Tue, 23 Aug 2011 16:07:51 +0000 (18:07 +0200)]
st/xorg: Fix solid fills for formats other than PICT_a8r8g8b8.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Michel Dänzer [Mon, 22 Aug 2011 13:44:42 +0000 (15:44 +0200)]
r600g: Hook up xorg state tracker.
Mostly copied from r300g.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Michel Dänzer [Mon, 22 Aug 2011 13:44:43 +0000 (15:44 +0200)]
r600g: Handle PIPE_TRANSFER_MAP_DIRECTLY.
If the state tracker tries to map the resource directly but we can't or don't
want to do that, fail to create a transfer.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Michel Dänzer [Mon, 22 Aug 2011 13:44:42 +0000 (15:44 +0200)]
st/xorg: Disable dirty throttling by default.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Michel Dänzer [Mon, 22 Aug 2011 13:44:42 +0000 (15:44 +0200)]
st/xorg: Only damage non-front source in DRI2 CopyRegion hook.
Based on a vmwgfx xa/saa fix.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Brian Paul [Fri, 26 Aug 2011 14:24:01 +0000 (08:24 -0600)]
g3dvl: s/inline/INLINE/ to fix MSVC build
Brian Paul [Fri, 26 Aug 2011 14:10:24 +0000 (08:10 -0600)]
g3dvl: fix compilation failure on MSVC
I assume the intention of "mb = {}" was to zero-initialize it.
Brian Paul [Thu, 25 Aug 2011 22:50:56 +0000 (16:50 -0600)]
scons: don't compile some files with -gstabs if using mingw32
Compiling some (large) files with i686-pc-mingw32-gcc 4.2.2 (at least)
and the -gstabs option triggers a compiler error. Use this work-around
to simply compile the effected files without -gstabs.
Brian Paul [Thu, 25 Aug 2011 21:14:37 +0000 (15:14 -0600)]
scons: add more LIBS for compiling with LLVM 2.9 on Windows
These extra libs shouldn't hurt with LLVM 2.8 or older.
Christian König [Wed, 24 Aug 2011 20:51:31 +0000 (22:51 +0200)]
g3dvl: Rewrite the mpeg 1&2 bitstream parser
Based on work of Maarten Lankhorst this time.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Younes Manton <younes.m@gmail.com>
Christian König [Wed, 24 Aug 2011 20:10:42 +0000 (22:10 +0200)]
g3dvl: Use a single texture for luma and chroma data
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Younes Manton <younes.m@gmail.com>
Christian König [Fri, 12 Aug 2011 11:29:00 +0000 (13:29 +0200)]
g3dvl: Rework the decoder interface part 5/5
Make setting the quant matrixes a generic interface.
Also removes setting the quant matrix from the XvMC interface
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Younes Manton <younes.m@gmail.com>
Christian König [Thu, 11 Aug 2011 14:11:36 +0000 (16:11 +0200)]
g3dvl: Rework the decoder interface part 4/5
Make the picture_structure enum spec complient.
Also remove it from the compositor.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Younes Manton <younes.m@gmail.com>
Christian König [Wed, 10 Aug 2011 16:07:01 +0000 (18:07 +0200)]
g3dvl: Rework the decoder interface part 3/5
Revert back to a macroblock based interface. The structure used
tries to keep as close to the spec as possible.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Younes Manton <younes.m@gmail.com>
Christian König [Tue, 9 Aug 2011 17:27:57 +0000 (19:27 +0200)]
g3dvl: Rework the decoder interface part 2/5
Implement PIPE_CAP_NUM_BUFFERS_DESIRED giving the decoder control over
the number of buffers a state tracker should allocate.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Younes Manton <younes.m@gmail.com>
Christian König [Tue, 9 Aug 2011 16:45:13 +0000 (18:45 +0200)]
g3dvl: Rework the decoder interface part 1/5
First of all get ride of the decode_buffer structure, while still giving
the decoder the ability to organize it's buffers depending on the needs
of the state tracker.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Younes Manton <younes.m@gmail.com>
Dave Airlie [Thu, 25 Aug 2011 12:03:19 +0000 (13:03 +0100)]
tgsi: update tgsi.rst for TXQ
add some info on the TXQ opcode.
Signed-off-by: Dave Airlie <airlied@redhat.com>
David Reveman [Wed, 24 Aug 2011 01:49:11 +0000 (18:49 -0700)]
i915g: Fix off-by-one in scissors.
Stéphane Marchesin [Wed, 24 Aug 2011 01:47:24 +0000 (18:47 -0700)]
i915g: Fix case where texcoords can overlap with fragpos/frontface.
Stéphane Marchesin [Wed, 24 Aug 2011 01:44:36 +0000 (18:44 -0700)]
i915g: Improve the flush heuristic by using the previous frame's number of vertices.
Vadim Girlin [Wed, 24 Aug 2011 20:32:55 +0000 (00:32 +0400)]
r600g: fix replace_gpr_with_pv_ps
Instructions with 3 source operands have no write mask, so we may replace their
destinations with PV/PS in the next group even if their dst.write is 0.
Note: This is a candidate for the 7.11 branch.
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Vadim Girlin [Wed, 24 Aug 2011 20:32:54 +0000 (00:32 +0400)]
r600g: fix check_and_set_bank_swizzle
Need to do full check when not all bank swizzles in the group are forced
(e.g. when trying to merge interp_* group with the next instruction)
Note: This is a candidate for the 7.11 branch.
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Kenneth Graunke [Thu, 25 Aug 2011 20:11:36 +0000 (13:11 -0700)]
glcpp: Add GL_ARB_conservative_depth #define.
Forgotten in the patch that enabled the extension.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Ian Romanick [Wed, 3 Aug 2011 02:29:52 +0000 (19:29 -0700)]
i965: Remove all bits of NRM3 and NRM4 code
Nothing in Mesa generates these opcodes, and i965 hardware cannot
support it natively. If support were ever added for this opcode in
Mesa, there had better be a lowering pass for hardware that doesn't
support it natively.
Dave Airlie [Thu, 25 Aug 2011 20:05:13 +0000 (21:05 +0100)]
glsl: fix crash when a const is passed to texelFetchOffset
while debugging texelFetchOffset we kept hitting the assert.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Kenneth Graunke [Thu, 25 Aug 2011 16:43:41 +0000 (09:43 -0700)]
glsl: Bail after reporting an error for non-constant const_in parameters.
Otherwise we continue and hit the "Illegal formal parameter mode"
assertion.
Fixes negative compile test texelFetchOffset.frag in piglit.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Brian Paul [Thu, 25 Aug 2011 16:31:17 +0000 (10:31 -0600)]
pp: add files to Makefile.sources
Brian Paul [Thu, 25 Aug 2011 16:12:12 +0000 (10:12 -0600)]
Merge branch 'kasanen-post-process-v2'
Conflicts:
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/SConscript
Brian Paul [Thu, 25 Aug 2011 16:06:29 +0000 (10:06 -0600)]
softpipe: add const qualifier to silence warnings
Dave Airlie [Thu, 25 Aug 2011 12:38:43 +0000 (13:38 +0100)]
glsl_to_tgsi: add TXF support. (v2)
This adds texelFetch support to translate from GLSL to TGSI TXF opcode.
I've tested this works with an r600g and softpipe backend.
v2: drop comments, fix title,
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Bryan Cain <bryancain3@gmail.com>
Dave Airlie [Thu, 25 Aug 2011 13:54:27 +0000 (14:54 +0100)]
softpipe: implement TXF support via get_texel callback
This just calls the texel fetch functions directly bypassing the sampling,
notes:
1: loops inside switch should be more optimal.
2: borders can be sampled though only up to border depth, outside that
its undefined.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Dave Airlie [Thu, 25 Aug 2011 13:53:21 +0000 (14:53 +0100)]
tgsi: add TXF support.
This is a straight texel fetch with no filtering or clamping. It uses
integers to specify the i/j/k (from EXT_gpu_shader4).
To enable this I had to add another hook into the tgsi sampler so that
we could easily bypass all the filtering sample does.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Dave Airlie [Wed, 24 Aug 2011 12:24:25 +0000 (13:24 +0100)]
glsl_to_tgsi: implement TXS/TXQ. (v2)
GLSL uses TXS, call the gallium TXQ opcode.
v2: fix indent from 4->3.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Bryan Cain <bryancain3@gmail.com>
Dave Airlie [Thu, 25 Aug 2011 10:35:52 +0000 (11:35 +0100)]
softpipe: add get_dims callback for TXQ support. (v2)
This adds the get_dims callback that is called from the tgsi exec_txq.
It returns values as per EXT_gpu_program4.
v2: fix one indent + use a switch (slighty modified from Brian)
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Dave Airlie [Thu, 25 Aug 2011 10:35:01 +0000 (11:35 +0100)]
tgsi: add TXQ support. (v2)
this adds another callback in the sampler struct containing get_dims
entry point. This is used to query the driver for the texture resource
dimensions for the resource bound to the current sampler.
v2: remove unusued variable, fix indent
Signed-off-by: Dave Airlie <airlied@redhat.com>
Kenneth Graunke [Tue, 9 Aug 2011 17:53:29 +0000 (10:53 -0700)]
glsl: Implement the GL_ARB_conservative_depth extension.
It's the same as GL_AMD_conservative_depth. The specs have slight
differences in wording, but don't differ in content or behavior.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Kai Wasserbäch [Tue, 23 Aug 2011 08:48:58 +0000 (10:48 +0200)]
Document the return type coding style.
As per discussion at [0] methods shouldn't use OpenGL return types, if
they're not part of the GL API.
[0] <http://marc.info/?l=mesa3d-dev&m=
130754488901774&w=2>
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Kai Wasserbäch [Tue, 23 Aug 2011 08:48:57 +0000 (10:48 +0200)]
Change return type of try_emit_* methods to bool.
Ian Romanick explained (Message-Id: <
4E528973.
6080902@freedesktop.org>),
that the return type of non-API methods shouldn't use GLboolean but a
standard C++ bool.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Bryan Cain <bryancain3@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Christoph Bumiller [Thu, 25 Aug 2011 10:52:35 +0000 (12:52 +0200)]
d3d1x: save to correct slot in xs_set_constant_buffers
Christoph Bumiller [Sat, 28 May 2011 09:56:43 +0000 (11:56 +0200)]
d3d1x: fix xs_set_samplers
Chia-I Wu [Fri, 19 Aug 2011 06:35:45 +0000 (14:35 +0800)]
android: add support for r600g
Tested with a Radeon HD 6250. SurfaceFlinger (the display server and
compositor) works. 2D apps with RGB or RGBA visuals work. As for 3D
apps, some work but some don't (with serious rendering defects).
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Chia-I Wu [Fri, 19 Aug 2011 07:00:20 +0000 (15:00 +0800)]
winsys/radeon: share the source list
Factor out C_SOURCES from Makefile to Makefile.sources, and let
Makefile and SConscript share it.
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Chia-I Wu [Fri, 19 Aug 2011 06:58:57 +0000 (14:58 +0800)]
winsys/r600: share the source list
Factor out C_SOURCES from Makefile to Makefile.sources, and let
Makefile and SConscript share it.
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Chia-I Wu [Fri, 19 Aug 2011 06:41:29 +0000 (14:41 +0800)]
r600g: share the source list
Factor out C_SOURCES from Makefile to Makefile.sources, and let
Makefile and SConscript share it.
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Ian Romanick [Wed, 24 Aug 2011 20:01:18 +0000 (13:01 -0700)]
glsl: Make sure that Extensions.dummy_true is set to true
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Brian Paul [Wed, 24 Aug 2011 20:50:28 +0000 (14:50 -0600)]
vbo: remove unused var, remove unneeded local var
Brian Paul [Wed, 24 Aug 2011 20:08:03 +0000 (14:08 -0600)]
llvmpipe: add more restrict keywords
Put restrict in the function definitions to silence MSVC warnings
about incompatible assignments in "func = lp_tile_foobar;" when func
was declared with restrict keywords but the rhs function wasn't.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>