• Home
  • History
  • Annotate
  • only in /external/mesa3d/src/gallium/winsys/
History log of /external/mesa3d/src/gallium/winsys/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
78222e63630280b96488de0d51d1b2578e26f814 30-Jan-2013 Jerome Glisse <jglisse@redhat.com> r600g: add cs memory usage accounting and limit it v3 (backport for mesa 9.0)

We are now seing cs that can go over the vram+gtt size to avoid
failing flush early cs that goes over 70% (gtt+vram) usage. 70%
is use to allow some fragmentation.

The idea is to compute a gross estimate of memory requirement of
each draw call. After each draw call, memory will be precisely
accounted. So the uncertainty is only on the current draw call.
In practice this gave very good estimate (+/- 10% of the target
memory limit).

v2: Remove left over from testing version, remove useless NULL
checking. Improve commit message.
v3: Add comment to code on memory accounting precision

This version is a backport for mesa 9.0

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_winsys.h
f6a66a33f7ba52e36242db9346573bf477efa04e 19-Sep-2012 Vadim Girlin <vadimgirlin@gmail.com> winsys/radeon: fix relocs caching

Don't cache pointers to elements of reallocatable array.
In some circumstances it caused false cache hits resulting in incorrect
command stream and gpu lockup.

Note: This is a candidate for the stable branches.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
(cherry picked from commit 9aa8bac98b823e8783bc3a06a6e5b23fbf8d87fb)
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
ef557eacfffedd58dea4645c317ea8140daa3475 30-Aug-2012 Marek Olšák <maraeo@gmail.com> winsys/radeon: disable virtual memory on Cayman

It hangs.
adeon/drm/radeon_drm_winsys.c
18abc270c56d5debc02a196634583a25074b3fef 15-Aug-2012 Michel Dänzer <michel.daenzer@amd.com> gallium/radeon: Don't assign virtual address space for BO that already has one.

We'd end up re-using the old one and throwing away the new one anyway, but only
after a roundtrip to the kernel.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
a60be05284399202c7a5a7aaf4d1f8f0626aee80 15-Aug-2012 Michel Dänzer <michel.daenzer@amd.com> gallium/radeon: Create hole for waste when allocating from va_offset.

Otherwise, the wasted area could never be used for an allocation again.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
1f455ef5bc3c9711d9452dcc09fd849656ad8b33 26-Apr-2012 Michel Dänzer <michel.daenzer@amd.com> gallium/radeon: Fix potential address space loss in radeon_bomgr_force_va().

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
6d59b7f6dc3131e773e9c9729388c08a2f987364 26-Apr-2012 Michel Dänzer <michel.daenzer@amd.com> gallium/radeon: Delete uppermost virtual address space hole if it's at the top.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
f5fe81daea622f8f043edc19fb61ba367b6958aa 26-Apr-2012 Michel Dänzer <michel.daenzer@amd.com> gallium/radeon: Fix losing holes when allocating virtual address space.

If a hole exactly matches the allocated size plus alignment, we would fail to
preserve the alignment as a hole. This would result in never being able to use
the alignment area for an allocation again.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
206d07625c9fd69c7d00a8722bd7390c5215bfe2 26-Apr-2012 Michel Dänzer <michel.daenzer@amd.com> gallium/radeon: Merge holes when freeing virtual address space.

Otherwise we'll likely end up with an ever increasing amount of ever smaller
holes.

Requires keeping the list ordered wrt offsets.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
c25968f3e2a1b5144a2e88d15b95e5b477a55f5d 03-Aug-2012 Michel Dänzer <michel.daenzer@amd.com> gallium/radeon: Make va_offset 64 bits wide.

Otherwise we'd wrap around after 32 bits. The kernel currently limits GPU
virtual address space to 4GB anyway, but that will probably change sooner or
later, and this would result in confusing error messages when running out of
virtual address space even now.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
44f14ebd7b9ba7186342039d2602fdd6ea5077f5 05-Jul-2012 Marek Olšák <maraeo@gmail.com> r600g: implement timestamp query and get_timestamp hook

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_winsys.h
2f14202f52c9f61f5bb5bfb6beaf954ef5c18de9 12-Aug-2012 Marek Olšák <maraeo@gmail.com> configure.ac: bump libdrm_radeon requirement to 2.6.38
adeon/drm/radeon_drm_winsys.c
a7f4d3b740d4c85b0dc2b006c30c2bc4a3ed8597 04-Aug-2012 Marek Olšák <maraeo@gmail.com> winsys/radeon: print error if CS is overflowed

and don't submit the CS to the kernel.
adeon/drm/radeon_drm_cs.c
8c44e5a144009a03c20befa6468d19d41c802795 06-Aug-2012 Christian König <deathsimple@vodafone.de> radeon/winsys: fix winsys VM handling

Move releasing the VM area after closing the bo handle.

This partially fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45018

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
8734584952ea257d53ce421959bd9706345f221f 01-Aug-2012 Vinson Lee <vlee@freedesktop.org> scons: Add support for Intel Compiler.

The patch makes the SCons build with Intel Compiler successful.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
vga/drm/SConscript
4f109ca4e8ca2c1f0a60b52fa79dd907777e8bee 25-Jul-2012 Vinson Lee <vlee@freedesktop.org> scons: Fix build with clang.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
vga/drm/SConscript
6e7756db14c362ede6fdc97454267a32b8eab1d4 17-Jun-2012 Marek Olšák <maraeo@gmail.com> r600g: enable streamout by default on r7xx and DRM 2.17.0

Now that it's in Linus's tree.

Has anyone had a chance to test streamout on Cayman recently?
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_winsys.h
92af184690995d3b16731518f7becfaac3538edb 21-May-2012 Christian König <deathsimple@vodafone.de> winsys/radeon: enable IB submission to compute rings v2

This allows to submit things to the compute only
rings on cayman+

v2: rebased on current master and actually make use
of the new flag in evergreen_compute.c

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
adeon/drm/radeon_winsys.h
6bb0151f1fd87b4e15f177c7122fc28fea29497e 22-May-2012 Maarten Lankhorst <m.b.lankhorst@gmail.com> winsys/radeon: Remove unnecessary pipe_thread_destroy in radeon_drm_cs_destroy

Fixes crash bug introduced with 210ddf0819b5 fd.o #49198
pthread_detach after a pthread_join is unneeded.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Signed-off-by: Marek Olšák <maraeo@gmail.com>
adeon/drm/radeon_drm_cs.c
5cf693266faebd1fc130709fd7e7b2452bbd156c 24-May-2012 Vinson Lee <vlee@freedesktop.org> scons: Fix SCons build infrastructure for FreeBSD.

This patch gets the FreeBSD SCons build working again. The build still
fails though.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
w/xlib/SConscript
7446a0407d4e61a826385c11ed6c401837baf095 16-May-2012 Michel Dänzer <michel.daenzer@amd.com> gallium/radeon: Fix r300g tiling breakage.

Commit 11f056a3f0b87e86267efa8b5ac9d36a343c9dc1 broke the r300g build. Fix it
up, and reinstate some code which isn't needed by r600g and radeonsi but is
by r300g.
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_winsys.h
88a2e2388bfeee66cb6d873558431b0e0af7e316 16-May-2012 Michel Dänzer <michel.daenzer@amd.com> radeonsi: Initial tiling support.

Largely based on the corresponding Evergreen support in r600g.
adeon/drm/radeon_drm_winsys.c
11f056a3f0b87e86267efa8b5ac9d36a343c9dc1 16-May-2012 Michel Dänzer <michel.daenzer@amd.com> r600g: Set tiling information for BOs being shared.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=48747
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_winsys.h
d0f6274489d4e4b9ce48cc377f502b0ccf64fae6 20-Mar-2012 Tom Stellard <thomas.stellard@amd.com> winsys/radeon: Get max_pipes from the kernel

Signed-off-by: Tom Stellard <thomas.stellard@amd.com>
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_winsys.h
0a6120244e66494db070ce875c0a464fbc5b15a1 26-Apr-2012 Marek Olšák <maraeo@gmail.com> winsys/radeon: simplify buffer map/unmap functions

The idea is not to use pb_map and pb_unmap wrappers, calling straight
into the winsys.
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_winsys.h
e44089b2f79aa2dcaacf348911433d1e21235c0c 14-Apr-2012 Christoph Bumiller <e0425955@student.tuwien.ac.at> nvc0: add initial support for nve4+ (Kepler) chipsets

Most things that work on Fermi should work on Kepler too.

There are a few performance optimizations left to do, like better
placement of texture barriers and adding scheduling data to the
shader instructions (without them, a thread group will be masked
for 32 cycles after each single instruction issue).
ouveau/drm/nouveau_drm_winsys.c
a2fc42b899de22273c1df96091bfb5c636075cb0 11-Jan-2012 Ben Skeggs <bskeggs@redhat.com> nv30: import new driver for GeForce FX/6/7 chipsets, and Quadro variants

The primary motivation for this rewrite was to have a maintainable driver
going forward, as nvfx was quite horrible in a lot of ways.

The driver is heavily based on the design of the nv50/nvc0 3d drivers we
already have, and uses the same common buffer/fence code. It also passes
a HEAP more piglit tests than nvfx did, supports a couple more features,
and a few more to come still probably.

The CPU footprint of this driver is far far less than nvfx, and translates
into far greater framerates in a lot of applications (unless you're using
a CPU that's way way newer than the GPUs of these generations....)

Basically, we once again have a maintained driver for these chipsets \o/

Feel free to report bugs now!
ouveau/drm/nouveau_drm_winsys.c
6d1cdec3ba151168bfc3aef222fba6265dfb41fb 06-Apr-2012 Christoph Bumiller <e0425955@student.tuwien.ac.at> nouveau: switch to libdrm_nouveau-2.0
ouveau/drm/nouveau_drm_winsys.c
66c7dc5688bcd5ff9c596f4c410aee574ea2428a 16-Feb-2012 Ben Skeggs <bskeggs@redhat.com> nvfx: completely remove this driver (GeForce FX/6/7)

This driver hasn't been maintained properly for a very long time, and for
many very good reasons. It's horrible.

A new driver supporting these chipsets will appear with the commits that
port vieux/nv50/nvc0 to libdrm_nouveau-2.0.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
ouveau/drm/nouveau_drm_winsys.c
a75c6163e605f35b14f26930dd9227e4f337ec9e 06-Jan-2012 Tom Stellard <thomas.stellard@amd.com> radeonsi: initial WIP SI code

This commit adds initial support for acceleration
on SI chips. egltri is starting to work.

The SI/R600 llvm backend is currently included in mesa
but that may change in the future.

The plan is to write a single gallium driver and
use gallium to support X acceleration.

This commit contains patches from:
Tom Stellard <thomas.stellard@amd.com>
Michel Dänzer <michel.daenzer@amd.com>
Alex Deucher <alexander.deucher@amd.com>
Vadim Girlin <vadimgirlin@gmail.com>

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

The following commits were squashed in:

======================================================================

radeonsi: Remove unused winsys pointer

This was removed from r600g in commit:

commit 96d882939d612fcc8332f107befec470ed4359de
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Feb 17 01:49:49 2012 +0100

gallium: remove unused winsys pointers in pipe_screen and pipe_context

A winsys is already a private object of a driver.

======================================================================

radeonsi: Copy color clamping CAPs from r600

Not sure if the values of these CAPS are correct for radeonsi, but the
same changed were made to r600g in commit:

commit bc1c8369384b5e16547c5bf9728aa78f8dfd66cc
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Jan 23 03:11:17 2012 +0100

st/mesa: do vertex and fragment color clamping in shaders

For ARB_color_buffer_float. Most hardware can't do it and st/mesa is
the perfect place for a fallback.
The exceptions are:
- r500 (vertex clamp only)
- nv50 (both)
- nvc0 (both)
- softpipe (both)

We also have to take into account that r300 can do CLAMPED vertex colors only,
while r600 can do UNCLAMPED vertex colors only. The difference can be expressed
with the two new CAPs.

======================================================================

radeonsi: Remove PIPE_CAP_OUTPUT_READ

This CAP was dropped in commit:

commit 04e324008759282728a95a1394bac2c4c2a1a3f9
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Feb 23 23:44:36 2012 +0100

gallium: remove PIPE_SHADER_CAP_OUTPUT_READ

r600g is the only driver which has made use of it. The reason the CAP was
added was to fix some piglit tests when the GLSL pass lower_output_reads
didn't exist.

However, not removing output reads breaks the fallback for glClampColorARB,
which assumes outputs are not readable. The fix would be non-trivial
and my personal preference is to remove the CAP, considering that reading
outputs is uncommon and that we can now use lower_output_reads to fix
the issue that the CAP was supposed to workaround in the first place.

======================================================================

radeonsi: Add missing parameters to rws->buffer_get_tiling() call

This was changed in commit:

commit c0c979eebc076b95cc8d18a013ce2968fe6311ad
Author: Jerome Glisse <jglisse@redhat.com>
Date: Mon Jan 30 17:22:13 2012 -0500

r600g: add support for common surface allocator for tiling v13

Tiled surface have all kind of alignment constraint that needs to
be met. Instead of having all this code duplicated btw ddx and
mesa use common code in libdrm_radeon this also ensure that both
ddx and mesa compute those alignment in the same way.

v2 fix evergreen
v3 fix compressed texture and workaround cube texture issue by
disabling 2D array mode for cubemap (need to check if r7xx and
newer are also affected by the issue)
v4 fix texture array
v5 fix evergreen and newer, split surface values computation from
mipmap tree generation so that we can get them directly from the
ddx
v6 final fix to evergreen tile split value
v7 fix mipmap offset to avoid to use random value, use color view
depth view to address different layer as hardware is doing some
magic rotation depending on the layer
v8 fix COLOR_VIEW on r6xx for linear array mode, use COLOR_VIEW on
evergreen, align bytes per pixel to a multiple of a dword
v9 fix handling of stencil on evergreen, half fix for compressed
texture
v10 fix evergreen compressed texture proper support for stencil
tile split. Fix stencil issue when array mode was clear by
the kernel, always program stencil bo. On evergreen depth
buffer bo need to be big enough to hold depth buffer + stencil
buffer as even with stencil disabled things get written there.
v11 rebase on top of mesa, fix pitch issue with 1d surface on evergreen,
old ddx overestimate those. Fix linear case when pitch*height < 64.
Fix r300g.
v12 Fix linear case when pitch*height < 64 for old path, adapt to
libdrm API change
v13 add libdrm check

Signed-off-by: Jerome Glisse <jglisse@redhat.com>

======================================================================

radeonsi: Remove PIPE_TRANSFER_MAP_PERMANENTLY

This was removed in commit:

commit 62f44f670bb0162e89fd4786af877f8da9ff607c
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Mar 5 13:45:00 2012 +0100

Revert "gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY"

This reverts commit 0950086376b1c8b7fb89eda81ed7f2f06dee58bc.

It was decided to refactor the transfer API instead of adding workarounds
to address the performance issues.

======================================================================

radeonsi: Handle PIPE_VIDEO_CAP_PREFERED_FORMAT.

Reintroduced in commit 9d9afcb5bac2931d4b8e6d1aa571e941c5110c90.

======================================================================

radeonsi: nuke the fallback for vertex and fragment color clamping

Ported from r600g commit c2b800cf38b299c1ab1c53dc0e4ea00c7acef853.

======================================================================

radeonsi: don't expose transform_feedback2 without kernel support

Ported from r600g commit 15146fd1bcbb08e44a1cbb984440ee1a5de63d48.

======================================================================

radeonsi: Handle PIPE_CAP_GLSL_FEATURE_LEVEL.

Ported from r600g part of commit 171be755223d99f8cc5cc1bdaf8bd7b4caa04b4f.

======================================================================

radeonsi: set minimum point size to 1.0 for non-sprite non-aa points.

Ported from r600g commit f183cc9ce3ad1d043bdf8b38fd519e8f437714fc.

======================================================================

radeonsi: rework and consolidate stencilref state setting.

Ported from r600g commit a2361946e782b57f0c63587841ca41c0ea707070.

======================================================================

radeonsi: cleanup setting DB_SHADER_CONTROL.

Ported from r600g commit 3d061caaed13b646ff40754f8ebe73f3d4983c5b.

======================================================================

radeonsi: Get rid of register masks.

Ported from r600g commits
3d061caaed13b646ff40754f8ebe73f3d4983c5b..9344ab382a1765c1a7c2560e771485edf4954fe2.

======================================================================

radeonsi: get rid of r600_context_reg.

Ported from r600g commits
9344ab382a1765c1a7c2560e771485edf4954fe2..bed20f02a771f43e1c5092254705701c228cfa7f.

======================================================================

radeonsi: Fix regression from 'Get rid of register masks'.

======================================================================

radeonsi: optimize r600_resource_va.

Ported from r600g commit 669d8766ff3403938794eb80d7769347b6e52174.

======================================================================

radeonsi: remove u8,u16,u32,u64 types.

Ported from r600g commit 78293b99b23268e6698f1267aaf40647c17d95a5.

======================================================================

radeonsi: merge r600_context with r600_pipe_context.

Ported from r600g commit e4340c1908a6a3b09e1a15d5195f6da7d00494d0.

======================================================================

radeonsi: Miscellaneous context cleanups.

Ported from r600g commits
e4340c1908a6a3b09e1a15d5195f6da7d00494d0..621e0db71c5ddcb379171064a4f720c9cf01e888.

======================================================================

radeonsi: add a new simple API for state emission.

Ported from r600g commits
621e0db71c5ddcb379171064a4f720c9cf01e888..f661405637bba32c2cfbeecf6e2e56e414e9521e.

======================================================================

radeonsi: Also remove sbu_flags member of struct r600_reg.

Requires using sid.h instead of r600d.h for the new CP_COHER_CNTL definitions,
so some code needs to be disabled for now.

======================================================================

radeonsi: Miscellaneous simplifications.

Ported from r600g commits 38bf2763482b4f1b6d95cd51aecec75601d8b90f and
b0337b679ad4c2feae59215104cfa60b58a619d5.

======================================================================

radeonsi: Handle PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION.

Ported from commit 8b4f7b0672d663273310fffa9490ad996f5b914a.

======================================================================

radeonsi: Use a fake reloc to sleep for fences.

Ported from r600g commit 8cd03b933cf868ff867e2db4a0937005a02fd0e4.

======================================================================

radeonsi: adapt to get_query_result interface change.

Ported from r600g commit 4445e170bee23a3607ece0e010adef7058ac6a11.
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_drm_winsys.h
9ba3cecaa02eba07bc6456c441126e4e2e823da5 03-Apr-2012 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl: Update to the new wl_shm_pool interface
w/wayland/wayland_sw_winsys.c
w/wayland/wayland_sw_winsys.h
669d8766ff3403938794eb80d7769347b6e52174 31-Mar-2012 Marek Olšák <maraeo@gmail.com> r600g: optimize r600_resource_va

Avoid calling get_radeon_bo and inline it.
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_winsys.h
fc0a5e21d77ae2f082fd19dd2295e84f6fb7bd3b 26-Mar-2012 Christian König <deathsimple@vodafone.de> vl: move winsys helper out of winsys directory

They aren't winsys of their own,
just help dealing with them.

v2: add some more comments in vl_winsys.h

Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/Makefile
3dvl/dri/Makefile
3dvl/dri/dri_winsys.c
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
393d741788fa82896d4b1c9fd02402a83053afcf 27-Mar-2012 Marek Olšák <maraeo@gmail.com> r600g: enable transform feedback on everything that isn't r700

Use R700_STREAMOUT=1 if you wanna hack transform feedback on r700.
adeon/drm/radeon_drm_winsys.c
63d53063f7a0b1351fa361f2176b17819eaca36c 08-Mar-2012 Christian König <deathsimple@vodafone.de> vl: handle DRI2GetBuffers reply with multiple buffers

This fixes a crash in XBMC, but we still doesn't see a picture.

Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/dri/dri_winsys.c
1d0c357a9733238985cbe029b174173ef927ac70 01-Mar-2012 Christian König <deathsimple@vodafone.de> st/vdpau: implement support for high-precision output timing

Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/dri/dri_winsys.c
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
6f50d3d19d769d5ef1a212e6f17d4b296dd77be3 05-Mar-2012 Marek Olšák <maraeo@gmail.com> winsys/radeon: cleanup includes
adeon/drm/radeon_winsys.h
29e55bc5f1b6d7375b6a86e24ca4ae58e399011e 26-Feb-2012 Marek Olšák <maraeo@gmail.com> winsys/radeon: add usage parameter to cs_is_buffer_referenced

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_winsys.h
c14c84f383309ee0fdf007c0d3e968c38f3af86e 25-Feb-2012 Christian König <deathsimple@vodafone.de> vl: move dirty area handling into winsys abstraction

Fixing uninitialized areas in SwapBuffers mode.

Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/dri/dri_winsys.c
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
91ac681113b05f8fe4dff51c3b80f967ac05c867 24-Feb-2012 Christian König <deathsimple@vodafone.de> vl: hide X latency by using asynchronous requests

Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/dri/dri_winsys.c
66480c0f565eb5dc7ae4a5dc792341f6886f481a 24-Feb-2012 Christian König <deathsimple@vodafone.de> vl: use SwapBuffers instead of CopyBuffers

This should speed things up a bit, but also shows
some bugs with the kernel implementation.

v2: require xcb-dri2 version 1.8

Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/dri/dri_winsys.c
80b40a4841a4af93a1bc93e4746a418a9cee0a55 23-Feb-2012 Christian König <deathsimple@vodafone.de> vl: rewrite vl DRI backend using XCB

v2: also set array_size of texture

Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/dri/Makefile
3dvl/dri/dri2.c
3dvl/dri/dri2.h
3dvl/dri/dri_winsys.c
15e60d9976f82174afeca1d026f566cb8aea5104 27-Feb-2012 Christian König <deathsimple@vodafone.de> vl: fix a douple free in xsp winsys backend

There are a couple of more bugs, but it is only
useful for debugging anyway.

Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/xlib/xsp_winsys.c
622b65d33bcc46a6b2cede6081b32a26a4ec7c7f 24-Feb-2012 Marek Olšák <maraeo@gmail.com> r600g: check for R600_STREAMOUT env var in winsys
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_winsys.h
1448e829e86981e6144410ba6a3d0f16357fb2b3 15-Feb-2012 Christian König <deathsimple@vodafone.de> vl: rework winsys interface

Throw out all the old and now unneeded stuff.

Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/dri/dri_winsys.c
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
b34c35a5243e0f4a23721891dbbccff8863b7d4c 15-Feb-2012 Christian König <deathsimple@vodafone.de> vl: cleanup dri winsys abstraction

There was way to much dead code in it.

Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/dri/Makefile
3dvl/dri/XF86dri.c
3dvl/dri/dri_winsys.c
3dvl/dri/driclient.c
3dvl/dri/driclient.h
3dvl/dri/xf86dri.h
3dvl/dri/xf86dristr.h
e372e53ee0ed57072322003e508b3ca4c58076be 21-Feb-2012 Jerome Glisse <jglisse@redhat.com> radeon/r600g: fix virtual address space allocation

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
adeon/drm/radeon_drm_bo.c
356eb0aadbb977b0732da077ad31cd66d1b53e23 14-Feb-2012 Jerome Glisse <jglisse@redhat.com> r600g: fix tiling with cayman and virtual memory

The virtual address but follow the alignment requirement of the
tiled surface. The bo from handle case is not properly fix. Need
bigger change for a proper fix. Work around that by enforcing 1M
alignment for those bo.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
adeon/drm/radeon_drm_bo.c
ff60bd80582176f42166b3df27df41fbbf429449 07-Feb-2012 Dave Airlie <airlied@redhat.com> radeon: only init surface manage on r600

r300 fails to init the manager and then fails to init.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon/drm/radeon_drm_winsys.c
f763ad51302a8b3517e85ae7f2ee94d40b1e0326 07-Feb-2012 José Fonseca <jfonseca@vmware.com> scons: r300/r600 now depends on libdrm.

As they now indirectly include on libdrm/radeon_surface.h.
Conscript
adeon/drm/SConscript
c0c979eebc076b95cc8d18a013ce2968fe6311ad 30-Jan-2012 Jerome Glisse <jglisse@redhat.com> r600g: add support for common surface allocator for tiling v13

Tiled surface have all kind of alignment constraint that needs to
be met. Instead of having all this code duplicated btw ddx and
mesa use common code in libdrm_radeon this also ensure that both
ddx and mesa compute those alignment in the same way.

v2 fix evergreen
v3 fix compressed texture and workaround cube texture issue by
disabling 2D array mode for cubemap (need to check if r7xx and
newer are also affected by the issue)
v4 fix texture array
v5 fix evergreen and newer, split surface values computation from
mipmap tree generation so that we can get them directly from the
ddx
v6 final fix to evergreen tile split value
v7 fix mipmap offset to avoid to use random value, use color view
depth view to address different layer as hardware is doing some
magic rotation depending on the layer
v8 fix COLOR_VIEW on r6xx for linear array mode, use COLOR_VIEW on
evergreen, align bytes per pixel to a multiple of a dword
v9 fix handling of stencil on evergreen, half fix for compressed
texture
v10 fix evergreen compressed texture proper support for stencil
tile split. Fix stencil issue when array mode was clear by
the kernel, always program stencil bo. On evergreen depth
buffer bo need to be big enough to hold depth buffer + stencil
buffer as even with stencil disabled things get written there.
v11 rebase on top of mesa, fix pitch issue with 1d surface on evergreen,
old ddx overestimate those. Fix linear case when pitch*height < 64.
Fix r300g.
v12 Fix linear case when pitch*height < 64 for old path, adapt to
libdrm API change
v13 add libdrm check

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_drm_winsys.h
adeon/drm/radeon_winsys.h
4fd97b46a071a8dcec6ec6658dfc835e08f4e2c6 30-Jan-2012 Marek Olšák <maraeo@gmail.com> r600g: remove unused flush code
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_winsys.h
d36f89c8cfb3776368f8acef46514421f454205c 31-Jan-2012 Christian König <deathsimple@vodafone.de> vl: fix some missing prototypes error

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45444
Signed-off-by: Christian König <deathsimple@vodafone.de>
3dvl/dri/XF86dri.c
bb1f0cf3508630a9a93512c79badf8c493c46743 02-Dec-2011 Jerome Glisse <jglisse@redhat.com> r600g: add support for virtual address space on cayman v11

Virtual address space put the userspace in charge of their GPU
address space. It's up to userspace to bind bo into the virtual
address space. Command stream can them be executed using the
IB_VM chunck.

This patch add support for this configuration. It doesn't remove
the 64K ib size limit thought this limit can be extanded up to
1M for IB_VM chunk.

v2: fix rendering
v3: fix rendering when using index buffer
v4: make vm conditional on kernel support add basic va management
v5: catch the case when we already have va for a bo
v6: agd5f: update on top of ioctl changes
v7: agd5f: further ioctl updates
v8: indentation cleanup + fix non cayman
v9: rebase against lastest mesa + improvement from Marek & Michel
v10: fix cut/paste bug
v11: don't rely on updated radeon_drm.h

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_winsys.h
ca21c85ab062f18649445fdbc4e494e31e5ca535 09-Jan-2012 Jakob Bornecrantz <jakob@vmware.com> svga: Drop execbuf throttling

This code isn't used anymore in preference for DRI2 client side swap buffers
throttling or throttling done inside the xa or xorg driver.

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by Brian Paul <brianp@vmware.com>
vga/drm/vmw_context.c
vga/drm/vmw_context.h
vga/drm/vmw_screen.c
vga/drm/vmw_screen.h
f700370946972d26dae7ab54cbb186feea50579c 09-Jan-2012 Jakob Bornecrantz <jakob@vmware.com> svga: Silence warning

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by Brian Paul <brianp@vmware.com>
vga/drm/vmw_context.c
b82a2a848c2f614be6186f411bc366ebe2f189bc 09-Jan-2012 Jerome Glisse <jglisse@redhat.com> radeon/winsys: fix get info ioctl error checking

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
adeon/drm/radeon_drm_winsys.c
93f4e3cb6c1ca303ee1f5c2a2491a8eff33f2633 24-Dec-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: move managing GEM domains back to drivers

This partially reverts commit 363ff844753c46ac9c13866627e096b091ea81f8.

It caused severe performance drops in Nexuiz. Reported by Phoronix.

Tested by me on r300g and by IRC people on r600g.
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_winsys.h
10e931219f0619c01456dd13fea65b8c21f3b87b 02-Dec-2011 Marcin Slusarz <marcin.slusarz@gmail.com> nouveau: get rid of winsys object

Its only purpose was to destroy itself.
ouveau/drm/nouveau_dri.h
ouveau/drm/nouveau_drm_winsys.c
ouveau/drm/nouveau_drm_winsys.h
41b75dc92c921c078e64962f47b3d51b1e4f7b5a 25-Oct-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: add flush option not to rewrite tiling flags in registers

Not used yet.
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
adeon/drm/radeon_winsys.h
e809f4e54ced9fc5e8ac3e80537e42dbca9dbc72 11-Dec-2011 Tobias Droste <tdroste@gmx.de> g3dvl/xlib: fix build by changing include order

fixes the following build error since
c83fb4d45f2a47042f395271efe6e5489b2c4aee:

/usr/include/strings.h:46:13: error: expected declaration specifiers or
‘...’ before numeric constant
/usr/include/strings.h:46:13: error: conflicting types for ‘memset’
In file included from
../../../../src/gallium/winsys/g3dvl/xlib/xsp_winsys.c:34:0:
../../../../src/gallium/auxiliary/util/u_inlines.h: In function
‘pipe_buffer_create’:
../../../../src/gallium/auxiliary/util/u_inlines.h:189:4: error: too
many arguments to function ‘memset’
/usr/include/strings.h:46:13: note: declared here

bzero is defined in X11 as: #define bzero(b,len) memset(b,0,len)
including strings.h after the X11 header results in preprocessor
replacing 'bzero' in strings.h and generating unbuildable code.

Signed-off-by: Tobias Droste <tdroste@gmx.de>
3dvl/xlib/xsp_winsys.c
bbc320a94def6178028a4c46012c737839e1cf61 06-Dec-2011 Jerome Glisse <jglisse@redhat.com> gallium/radeon: fix indentation

Indentation cleanup, to keep consistency.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_cs.h
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_winsys.h
2c27f204f1ca6f09f9520712be1da9a13ed5c01d 29-Nov-2011 Kai Wasserbäch <kai@dev.carbon-project.org> i965g: Delete this driver.

Never completed, and no plans to do so.

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
Conscript
965/drm/Makefile
965/drm/SConscript
965/drm/i965_drm_buffer.c
965/drm/i965_drm_public.h
965/drm/i965_drm_winsys.c
965/drm/i965_drm_winsys.h
965/xlib/Makefile
965/xlib/xlib_i965.c
75cc24c876059d6eb183e07ed802f997fb416864 25-Nov-2011 Chia-I Wu <olv@lunarg.com> android: add support for ICS

With ICS (Android 4.0), several headers and structs are renamed. Define
ANDROID_VERSION so that we can choose a different path depending on the
platform version.

I've tested only softpipe and llvmpipe. r600g is also reported to work.
w/android/android_sw_winsys.cpp
4517153278b078b031bb4af10a4d69050eaec9d6 17-Nov-2011 Ben Skeggs <bskeggs@redhat.com> nvc0: add support for GF119 (NVD9)

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
ouveau/drm/nouveau_drm_winsys.c
3da5196263fb2ae60483044cbd34c94270e2accd 10-Nov-2011 Brian Paul <brianp@vmware.com> radeon: silence initializer warnings
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_winsys.c
721669d078afcf8f73e14bf2cf77889ad617e71e 02-Nov-2011 George Sapountzis <gsapountzis@gmail.com> dri: drop DRI_VALIDATE macros
3dvl/dri/driclient.h
ef64da8f013691c66744064769db379e57ef95de 24-Oct-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: don't use the new GEM_WAIT ioctl for now
adeon/drm/radeon_drm_bo.c
2717b8f034db16cf551e167aa5ce3a9be3bf730b 08-Oct-2011 Mathias Fröhlich <Mathias.Froehlich@gmx.net> winsys/radeon: restore the old r600g winsys memory characteristics.

Use VRAM for static and immutable buffers. This restores the
recently removed r600g winsys behaviour for memory locations.
This also improoves rendering times on the gpu for some
OpenSceneGraph based test cases by about 15%.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
adeon/drm/radeon_drm_bo.c
60f67cd1f17d13c0be3caa9a8c0b9a4600970230 19-Oct-2011 Thomas Hellstrom <thellstrom@vmware.com> winsys/svga: Remove some unneeded debug code

This code isn't really relevant since the kernel takes care not
to destroy busy GMR buffers.

Also with the advent of fence objects, the code was incorrect since
it didn't refcount fence handles.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
vga/drm/vmw_buffer.c
5dddeb7776c62b6218add3a236551cde876b1cf0 12-Oct-2011 Thomas Hellstrom <thellstrom@vmware.com> winsys/svga: Rework buffer allocation to make it more robust v2.

Don't allow any "CPU" buffers to be allocated by the pb_fenced
buffer manager, since we can't protect against failures during
buffer validation.
Also, add an extra slab buffer manager to allocate buffers from
the kernel if there is a failure to allocate from our big buffer pool.
The reason we use a slab manager for this, is to avoid allocating
many very small buffers from the kernel.

v2: Increased VMW_MAX_BUFFER_SIZE and fixed some comments.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
vga/drm/vmw_screen.h
vga/drm/vmw_screen_pools.c
vga/drm/vmw_screen_svga.c
5a6ca7e9f24939cfacf2e8cd163a4efa9550ce1f 11-Oct-2011 Thomas Hellstrom <thellstrom@vmware.com> svga/winsys: Make sure a flush always inserts and returns a fence if requested

Needed for throttling.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrant <jakob@vmware.com>
vga/drm/vmw_context.c
3db309aecee57d7e0055a49a0e12a491a554347b 01-Oct-2011 Stéphane Marchesin <marcheu@chromium.org> configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles.

Us poor souls who cross compile mesa want to be able to specify which pkg-config to pick, or at least just change one place.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
3dvl/dri/Makefile
915/drm/Makefile
965/drm/Makefile
ouveau/drm/Makefile
adeon/drm/Makefile
vga/drm/Makefile
bf0baa771709e1076613cf9f9bed6ac004dd0439 27-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: move all files from winsys/r600 into drivers/r600

Be sure to reconfigure after this commit.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Conscript
600/drm/Android.mk
600/drm/Makefile
600/drm/Makefile.sources
600/drm/SConscript
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
363ff844753c46ac9c13866627e096b091ea81f8 27-Sep-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: move GEM domains out of the drivers into winsys

The drivers don't need to care about the domains. All they need to set
are the bind and usage flags. This simplifies the winsys too.

This also fixes on r600g:
- fbo-depth-GL_DEPTH_COMPONENT32F-copypixels
- fbo-depth-GL_DEPTH_COMPONENT16-copypixels
- fbo-depth-GL_DEPTH_COMPONENT24-copypixels
- fbo-depth-GL_DEPTH_COMPONENT32-copypixels
- fbo-depth-GL_DEPTH24_STENCIL8-copypixels
I can't explain it.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_priv.h
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_winsys.h
af8eb5c851a9d566059ae9e37745614cd96b9a13 27-Sep-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: remove a redundant parameter 'size' from buffer_from_handle

It's part of pb_buffer already.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_winsys.h
90ce3cdde9fb2dd507b4e21c5456a3371f5996bc 17-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: remove struct radeon (or what's left of it)

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/Makefile.sources
600/drm/evergreen_hw_context.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
518557d74abd4ce035dae079ff6eb1b08cc639d0 17-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: move family and chip_class from struct radeon to r600_screen

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
6101b6d442b06a347c001fe85848d636ab7df260 11-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: merge r600_bo with r600_resource

I have moved 'last_flush' and 'binding' from r600_bo to winsys/radeon.
The other members are now part of r600_resource.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/Makefile.sources
600/drm/evergreen_hw_context.c
600/drm/r600_bo.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_winsys.h
e7843273fae516fa9922f12053bb6c063b39921c 28-Sep-2011 Thomas Hellstrom <thellstrom@vmware.com> winsys/svga: Update to vmwgfx kernel module 2.1

Introduces fence objecs and a size limit on query buffers.
The possibility to map the fifo from user-space is gone, and
replaced by an ioctl that reads the 3D capabilities.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecranz <jakob@vmware.com>
vga/drm/vmw_context.c
vga/drm/vmw_fence.c
vga/drm/vmw_fence.h
vga/drm/vmw_screen.h
vga/drm/vmw_screen_dri.c
vga/drm/vmw_screen_ioctl.c
vga/drm/vmw_screen_pools.c
vga/drm/vmw_screen_svga.c
vga/drm/vmwgfx_drm.h
a3cd2c6c9b3724dbc3aa565dab98968c46bde963 27-Sep-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: remove redundant member radeon_bo::size

It's part of pb_buffer already.
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_cs.c
798ebc91ebe383a702faf597ffbf2033dc467f50 27-Sep-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: simplify updating GEM domains for relocations
adeon/drm/radeon_drm_cs.c
bfa51dfeac67a7e3383614374c86bdfb5751997a 27-Sep-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: simplify passing GEM domains through to GEM_CREATE
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
4b1e7cf5d9f3d4c86ceb394d7c220a49764448f0 28-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: convert if (query->type) into switch statements
600/drm/r600_hw_context.c
34f4bd81906d8385eb3e9af721d50e985cb9d7d4 13-Sep-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: use the cache bufmgr for buffers with PIPE_BIND_CUSTOM

so that we don't abuse PIPE_BIND_VERTEX_BUFFER all the time.
adeon/drm/radeon_drm_bo.c
373234ce17555376c5cb57a2cdce3038df3f51cd 14-Sep-2011 Michel Dänzer <michel.daenzer@amd.com> r600g: Initialize multi VGT related register on Cayman.

Prevents lockups with piglit tests draw-elements and draw-vertices using large
numbers of vertices.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alex.deucher@amd.com>
600/drm/evergreen_hw_context.c
8dbf9d70d3228f707abc39d8e7db6367638f146b 13-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: fix typo in "r600g: simplify deducing chip family"
600/drm/r600_drm.c
ac028b20e5431ed3c78b6a4a9192e84f6873c9fd 11-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: set the return type of radeon_destroy to void
600/drm/r600_drm.c
b87bc2eb44cd605f2992335b5649ca907ba0c55d 11-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: remove r600_drm_public.h
600/drm/r600_drm.c
600/drm/r600_drm_public.h
1a532ca79a4a87bb86c641a6ca22da0301dc1f62 11-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: inline some of the winsys r600_get functions
600/drm/evergreen_hw_context.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
915227b0aa228fd203618adbb35930e994658087 11-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: simplify deducing chip family
600/drm/r600_drm.c
3603d157889544230f1787bbdc4915ccd7461c59 11-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: compute tiling info in the pipe, not in the winsys

The winsys doesn't need it.
600/drm/r600_drm.c
600/drm/r600_priv.h
a94e33a8efcbbc093092cfc5266ed9d05b89471f 11-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: remove unused ioctl definitions
600/drm/r600_drm.c
d26b49f87f533e8c3c2dab50c918b71ae45473a5 11-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: do not loop in radeon_family_from_device

Also move that function to r600_drm.c
600/drm/Makefile.sources
600/drm/r600_drm.c
600/drm/r600_priv.h
600/drm/radeon_pciid.c
85f5d7ceee526a272cb19c2c9d44d6e7aa5d422d 11-Sep-2011 Marek Olšák <maraeo@gmail.com> r600g: cleanup build include dirs and dependencies

The scons build still depended on libdrm_radeon.
600/drm/Android.mk
600/drm/Makefile
600/drm/SConscript
4682e706012fe26627a2f827db01b5068cc62814 11-Sep-2011 Marek Olšák <maraeo@gmail.com> pb_buffer: inline 'base' sub-struct
600/drm/r600_hw_context.c
adeon/drm/radeon_drm_bo.c
vga/drm/vmw_buffer.c
vga/drm/vmw_context.c
210ddf0819b5acf87a614214b6d4b02193aafa4a 27-Aug-2011 Maarten Lankhorst <m.b.lankhorst@gmail.com> winsys/radeon: Create async thread only once

I noticed that a thread was created for every time async flush was called, so I moved it and used some semaphores to synch.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
d4e8f384776cb9fefe20e792493642e074e8b229 27-Aug-2011 Kai Wasserbäch <kai@dev.carbon-project.org> 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>
3dvl/dri/dri_winsys.c
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
534df791878ed90cf7c2e4f14482ff03b7c41e77 22-Aug-2011 Chia-I Wu <olv@lunarg.com> android: add support for nouveau

Compile tested only.
ouveau/drm/Android.mk
99be968e99141c01b0fd3c045fe0f4c0c595ed51 22-Aug-2011 Chia-I Wu <olv@lunarg.com> 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.
915/drm/Android.mk
04dbb37eaa1aa6c60eb7130ebba6893954418b78 22-Aug-2011 Chia-I Wu <olv@lunarg.com> 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.
vga/drm/Android.mk
0cc088900725945bf381a07c8d85d1c8fdb447ac 22-Aug-2011 Chia-I Wu <olv@lunarg.com> winsys/i915: share the source list

Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
915/drm/Makefile
915/drm/Makefile.sources
915/drm/SConscript
f9b55e23aff663131b8814ec844e69b542eef5be 22-Aug-2011 Chia-I Wu <olv@lunarg.com> winsys/svga: share the source list

Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
vga/drm/Makefile
vga/drm/Makefile.sources
vga/drm/SConscript
7b1972d7be8ed68676786288ac2d77b8d71d113d 19-Aug-2011 Chia-I Wu <olvaffe@gmail.com> 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>
600/drm/Android.mk
adeon/drm/Android.mk
689b45fb27c36db49d68eb99a015f68a651d75ef 19-Aug-2011 Chia-I Wu <olvaffe@gmail.com> 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>
adeon/drm/Makefile
adeon/drm/Makefile.sources
adeon/drm/SConscript
027a45e5cf7092a93922fea980264dc0c31f7df7 19-Aug-2011 Chia-I Wu <olvaffe@gmail.com> 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>
600/drm/Makefile
600/drm/Makefile.sources
600/drm/SConscript
1284d5b25507a56634519ac385cbc00a00b94417 21-Aug-2011 Chia-I Wu <olvaffe@gmail.com> winsys/svga: use os_mmap() for memory mapping

os_mmap() guarantees large file support across OSes.
vga/drm/vmw_screen_ioctl.c
70b1837dfb1b282ad9efcaeec4f9c8da5f9a74d8 20-Aug-2011 Chia-I Wu <olv@lunarg.com> winsys/radeon: use os_mmap() for memory mapping

os_mmap() guarantees large file support across OSes.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
adeon/drm/radeon_drm_bo.c
9650483acded249d766441dd37db5af9b9b1e245 30-Jul-2011 Chia-I Wu <olvaffe@gmail.com> winsys/sw/android: use HAL formats

Native buffers use HAL formats, not UI formats.
w/android/android_sw_winsys.cpp
f496d8b86da63f43239457a2f44920401d872bd6 04-Aug-2011 Chia-I Wu <olvaffe@gmail.com> winsys/sw/android: set bo usage correctly

Since this is the software path, set GRALLOC_USAGE_SW_WRITE_OFTEN when
PIPE_BIND_RENDER_TARGET, and set GRALLOC_USAGE_SW_READ_OFTEN when
PIPE_BIND_SAMPLER_VIEW.
w/android/android_sw_winsys.cpp
15576344f706a8ec850bdfcfa005917a7a7597df 17-Aug-2011 Chia-I Wu <olvaffe@gmail.com> android: build android sw winsys

This builds the static library libmesa_winsys_sw_android from winsys/sw.
w/android/Android.mk
8e54c47a6163d437cc44bc1b6ea6e0cfa6d4e774 18-Aug-2011 Chia-I Wu <olvaffe@gmail.com> winsys/android: new SW winsys for Android

On Android, color buffers are passed between server and clients as
opaque buffer_handle_t. This winsys makes use of gralloc, which
provides a generic way to map and unmap buffer_handle_t for CPU access.
w/android/android_sw_winsys.cpp
w/android/android_sw_winsys.h
01680ce2f350f44073e8f1adf3b36d48424d21fa 16-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: implement NV_primitive_restart functionality (v2)

Needed for GL3.

v2: evergreen support

I don't set PA_SU_SC_MODE_CNTL.MULTI_PRIM_IB_ENA.
piglit/primitive-restart does pass though. Tested on RV730 and EG-REDWOOD.
600/drm/evergreen_hw_context.c
a77431b3b0cda9da7dff628f65aaa804c7c96f57 14-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: consolidate two files r600d.h
600/drm/r600d.h
47dcfb8dab517e2c92af2f4813b0f5ad200b8b07 07-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: set read/write usage flags for each relocation

This takes advantage of the new GEM_WAIT ioctl when mapping buffers.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
ebfcc58b93cc08c534857c2314694e35b29690ae 07-Aug-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: take advantage of the new ioctl

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
1e3c81a068c4ae04cd1c6b18c687d5be69b7b8c4 07-Aug-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: hook up the new DRM_RADEON_GEM_WAIT ioctl

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_winsys.h
296b8990956fcbd7ce47902d7c108a5973db9397 07-Aug-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: remove broken bo-is-busy-for-write guessing

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_cs.c
c79e9f0ed59d561849a0a4fbaafe87d5064d3e8c 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: enable thread offloading

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
0bbbd82488c11710aaca79ed3db2b605888ac65d 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: undefine RADEON_CTX_MAX_PM4

winsys/radeon has its own definition.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
d6da5185f96c1a85390e08dc2ef36c04d6e0de11 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: don't include radeon_drm.h and xf86drm.h

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_bo.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
efbccfeca071b052bb8da0a7f0277000869b2ea1 04-Aug-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: remove the device file descriptor from the interface

r600g doesn't need it anymore.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_winsys.h
041ed559e11ee99d720c8132428c07d8fe57ec81 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove an unused parameter from r600_bo_destroy

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_bo.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
c6fec83726d3435a800f0a4e3ded89628b1a504f 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: merge radeon_bo with r600_bo

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/Makefile
600/drm/SConscript
600/drm/r600_bo.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
5229ba494b4b3f19085d13131a37626b914d4014 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove radeon_bo::handle

This should be private to radeon_winsys.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_winsys.h
ab630b5768b0bfa4d7729d110ce4fb8f42e0cfb9 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: use buffer_map/unmap from radeon_winsys

This also drops the unneeded bo_busy/wait functions.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_bo.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
e2e1dc9e66ff348caa97b7b35e558d75c6cc6899 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: set the flush callback in radeon_winsys

I have also renamed the winsys function.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_winsys.h
7ee65800c36a5ee3f6b8ec4ae2d4f15f91d4661b 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: get tiling flags using radeon_winsys

Also remove some unused fence-related leftovers.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_bo.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
ecfcf25387284f01131eeaf9ec3f72bc481f3cfe 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: get winsys_handle using radeon_winsys

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_bo.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
1b542aca6e998e544a90ccff310f74b2811b8db0 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: move more DRM queries into winsys/radeon

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_winsys.h
03b25ad8ffd72f1f88b6c80a2ebfe3cf6e8a6390 04-Aug-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: consolidate the add_reloc function

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_priv.h
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_winsys.h
e6fb62594fca714883af9bba9795be8838c16900 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: emit CS using radeon_winsys

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_winsys.h
685b8345a8ff69460f0c62c678493527b59b18a9 04-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove struct r600_reloc

That is really private to winsys/radeon.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_hw_context.c
1acaf09778323ed6a2b0a0de5acb7731622a82bc 03-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: don't use RADEON_GEM_DOMAIN_CPU

Also staging resources shouldn't be allocated with the initial domain
being VRAM.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_bo.c
600/drm/r600_priv.h
3e579722167dea997f547970e2b62d4594875b98 03-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove reloc-related variables from radeon_bo

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
638d75185e66727faaba5dc2df1b6e14c7c0c075 03-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: let radeon_winsys maintain the list of relocations

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_winsys.h
9865b1ec8c88154d8ceb982c42844b68e9224217 03-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove now-unused r600_context::fenced_bo

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
591d8c33502463b816428d18ca779faa282a5a25 03-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove the fences which were used for the cache buffer manager

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
cdbb8a195a3581faa7b569997fa84fb9bceffaa4 03-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove now-unused r600_bo::size

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_bo.c
600/drm/r600_priv.h
60ff68ad00b821eb04ebb5e0d83620421ee16deb 03-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove the cache buffer manager from winsys/r600

As we've just started using the one from winsys/radeon.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/Makefile
600/drm/SConscript
600/drm/r600_bo.c
600/drm/r600_bomgr.c
600/drm/r600_drm.c
600/drm/r600_priv.h
11daa7e325cc2653269d3c01844ff77fdd515de9 03-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: allocate/destroy buffers using radeon_winsys

We use the cache buffer manager from radeon_winsys now, but we don't use
anything else yet.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_bo.c
600/drm/r600_drm.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_winsys.h
edca57e53318121a7bd909c0c36dcffe5d9ac15f 02-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove unused function declarations

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_priv.h
39db886548b9e93a6a91bf76095848af44972e43 02-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove unused r600_bo::tiling_flags

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_bo.c
600/drm/r600_priv.h
c092e236cc049cc56e9d0d337defc96729cf5830 02-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: remove unused r600_bo::kernel_pitch

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_bo.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
2ce783d8ddec1b1fcadc0798af0ebb045bba1cc4 02-Aug-2011 Marek Olšák <maraeo@gmail.com> r600g: put radeon_winsys in screen::winsys, don't include drm_driver in the pipe

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_bo.c
600/drm/r600_drm.c
600/drm/r600_drm_public.h
600/drm/r600_hw_context.c
600/drm/r600_priv.h
354f76f386afd980e8c1564c0b0502f9768007b5 22-Jul-2011 Marek Olšák <maraeo@gmail.com> r600g: cleanup includes in winsys

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/evergreen_hw_context.c
600/drm/r600_bo.c
600/drm/r600_bomgr.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
600/drm/radeon_pciid.c
fb8cf51eeb91413e761e0510d1f8c11b8cd0a7ac 22-Jul-2011 Marek Olšák <maraeo@gmail.com> r600g: move some queries into winsys/radeon

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_winsys.h
ce12f826927cf2d3ac3fd70d893abfb07adc23db 22-Jul-2011 Marek Olšák <maraeo@gmail.com> r600g: first step into winsys/radeon

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
600/drm/r600_drm.c
600/drm/r600_drm_public.h
600/drm/r600_priv.h
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_drm_winsys.h
adeon/drm/radeon_winsys.h
1554e69e00566bc7255b82f5ea93b1f02f1a5bb3 06-Aug-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: disable use of the buffer busy-for-write flag
adeon/drm/radeon_drm_bo.c
5b005ecc2b624a0ffb577ab760abacf069694f8d 03-Aug-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: do the CS cleanup in the CS ioctl thread
adeon/drm/radeon_drm_cs.c
64ab39b035f755510a644643b96451431bbe5f27 03-Aug-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: fix space checking

We should remove the relocations which caused a validation failure
from the list, so that the kernel receives only the validated ones.

NOTE: This is a candidate for the 7.11 branch.
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
adeon/drm/radeon_winsys.h
6eb94fc3444a300a0419c40cfcf356fdd88bc304 02-Aug-2011 Vadim Girlin <vadimgirlin@gmail.com> r600g: use backend mask for occlusion queries

Use backend_map kernel query if supported, otherwise analyze ZPASS_DONE
results to get the mask.

Fixes lockups with predicated rendering due to incorrect query buffer
initialization on some cards.

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>
600/drm/evergreen_hw_context.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
2664980760c5cf2e7dde4065f9cc8e8b865627c3 03-Aug-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: remove dummy function pb_buffer
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
e69dde5233a2fc6ad4c5483d079e1ea3a2123a59 23-Jul-2011 Marek Olšák <maraeo@gmail.com> r600g: remove dummy function r600_bo_offset

Always returned 0.
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
f6df430a85141f6a384c18079fb5b2ad848dac0d 22-Jul-2011 Marek Olšák <maraeo@gmail.com> r600g: remove unused code
600/drm/Makefile
600/drm/SConscript
600/drm/bof.c
600/drm/bof.h
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
f170555a18a742ed8ecb9e04cd02a5cb414c27ea 24-Jul-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: fix typos in the driver interface
adeon/drm/radeon_winsys.h
533e2289235c61eff9a14bb24da7c8a1ff0b0afa 22-Jul-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: manage constant buffers by the cache bufmgr too
adeon/drm/radeon_drm_bo.c
7db148d3a5a350f80df8dc588e0079fda7aa378a 23-Jul-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: remove usage parameter from buffer_create
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_winsys.h
e22a1005c0913b404ae82650cdc4f58bcbd5445b 22-Jul-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: fix int->boolean conversion in radeon_bo_is_referenced_by_any_cs
adeon/drm/radeon_drm_cs.h
67c995e0f1b50ff08784e97482ca3e9e0bfd42ca 22-Jul-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: little change in radeon_bo_is_referenced_by_cs
adeon/drm/radeon_drm_cs.h
ce9daf6f0bda857c9ee5d021cfb444db6376bfe7 22-Jul-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: add R300 infix to winsys feature names
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_winsys.h
28a336dc38c478b809544e7404c4d1fddd873333 22-Jul-2011 Marek Olšák <maraeo@gmail.com> winsys/radeon: simplify how value queries work

This drops the get_value query and adds a function query_info, which returns
all the values in one nice structure.
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_drm_winsys.h
adeon/drm/radeon_winsys.h
9b3ec69cf4b079fbe16293d8fbe13016f0d74951 16-Jul-2011 Vadim Girlin <vadimgirlin@gmail.com> r600g: fix corner case checks for the queries
600/drm/r600_hw_context.c
3093cbaad9962df8ad35f2c1c42d6b1259381498 18-Jul-2011 Henri Verbeet <hverbeet@gmail.com> r600g: Get rid of leftover PB_USAGE_* flags.

These happen to work because their values are the same as the equivalent
PIPE_TRANSFER_* flags, but it's still misleading.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
600/drm/r600_bo.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
036fb079089a0494b573761cb8cd598a41519a02 15-Jul-2011 Marek Olšák <maraeo@gmail.com> r600g: print to stderr that a CS has been rejected by the kernel

Just fixing the warning that r is unused.
600/drm/r600_hw_context.c
ef29bfee031cdab3dbb0f9a79828c4b0d0405991 15-Jul-2011 Vadim Girlin <vadimgirlin@gmail.com> r600g: fix queries and predication

Use all zpass data for predication instead of the last block only.
Use query buffer as a ring instead of reusing the same area
for each new BeginQuery. All query buffer offsets are in bytes
to simplify offsets math.
600/drm/r600_hw_context.c
600/drm/r600d.h
ed24e19070b7dff12670151b2d184f31c845ccae 13-Jul-2011 Christian König <deathsimple@vodafone.de> Merge branch 'pipe-video'
85e1fa55066783d2748993810708dee6db7a4993 13-Jul-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: don't try to check if a NULL buffer is busy.
915/drm/i915_drm_buffer.c
a2a6799fbefc6900f2371efab778c5bc2bf5a6e9 13-Jul-2011 Christian König <deathsimple@vodafone.de> [g3dvl] remove some unneeded Makefiles
3dvl/drm/Makefile
3dvl/drm/Makefile.template
3dvl/drm/nouveau/Makefile
3dvl/drm/radeon/Makefile
c8dd301b6fd6bb473d8f9f16689d9689d9608520 13-Jul-2011 Christian König <deathsimple@vodafone.de> r600g: revert "set BLEND_CLAMP depending on clamp_fragment_color"

BLEND_CLAMP doesn't seems to be the right way to implement "ARB_color_buffer_float".
600/drm/r600_hw_context.c
5d0d8366f9ab0ca4c52eb927ab476953daa77f1e 12-Jul-2011 Alex Deucher <alexdeucher@gmail.com> r600g: emit SQ_LDS_RESOURCE_MGMT

Need to be initialized to a reasonable value as
compute code may change it.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=39119

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/evergreen_hw_context.c
f919547f3785b1d8839b9fc5c00ac397e30896a1 11-Jul-2011 Christian König <deathsimple@vodafone.de> Merge remote-tracking branch 'origin/master' into pipe-video

Conflicts:
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_state_inlines.h
dc9d789d1b39f9702c179a1d60f76535352563df 11-Jul-2011 Marek Olšák <maraeo@gmail.com> r600g: more valgrind fixes
600/drm/r600_drm.c
daf6604435594b2ec861a40eaf4c5a23c97c0714 11-Jul-2011 Marek Olšák <maraeo@gmail.com> r600g: zero memory of ioctl parameters

Fixes valgrind warning.
600/drm/r600_drm.c
2e53725bbc6385c76b26f069df0865c22fd365c0 09-Jul-2011 Henri Verbeet <hverbeet@gmail.com> r600g: Check for Evergreen chip class instead of Cedar family in r600_context_flush().

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
600/drm/r600_hw_context.c
3ed8182c76c61ae0296ac442546df142f1d75b00 09-Jul-2011 Christian König <deathsimple@vodafone.de> [g3dvl] stop calling dri2DestroyDrawable

When switching channels with xine it sometimes happens that xine
destroys the drawable before we get a chance to call
DRI2DestroyDrawable, resulting in an x error.
3dvl/dri/dri_winsys.c
ea78480029450c019287c2a94d7c42a6a1d12dc3 08-Jul-2011 Christian König <deathsimple@vodafone.de> [g3dvl] and finally remove pipe_video_context
3dvl/dri/dri_winsys.c
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
3bb33c911b895819fde5e179b2466c08f88164cf 08-Jul-2011 Christian König <deathsimple@vodafone.de> [g3dvl] remove the unused priv member from pipe_video_context
3dvl/dri/dri_winsys.c
3dvl/xlib/xsp_winsys.c
06ddbc3b8e58a6cf22708263a8b7d16cf1db5dbc 08-Jul-2011 Christian König <deathsimple@vodafone.de> [g3dvl] remove create_surface from video context
3dvl/dri/dri_winsys.c
3dvl/xlib/xsp_winsys.c
2ec350ff1d9f13ec95d7b9d46f57ad9b9efcc8ea 08-Jul-2011 Christian König <deathsimple@vodafone.de> [g3dvl] make pipe_context mandatory for creation pipe_video_context
3dvl/dri/dri_winsys.c
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
e53b41f2632af26c79c4f7ed5b0fdb86a1feb602 06-Jul-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Improve flushing using heuristics.
915/drm/i915_drm_buffer.c
6bde225b8b5791588837295b3b89ac132095a6f7 04-Jul-2011 Vadim Girlin <vadimgirlin@gmail.com> r600g: fix buffer overflow check in r600_query_begin
600/drm/r600_hw_context.c
971e1b743eeaa4f1fc5af4c0a3af78422aaa7b24 04-Jul-2011 Vadim Girlin <vadimgirlin@gmail.com> r600g: fix bo map usage flags in r600_query_begin
600/drm/r600_hw_context.c
fbe9d4261f94b8a22ae04dccb8201a6762b66d40 04-Jul-2011 Vadim Girlin <vadimgirlin@gmail.com> r600g: reduce flushes for queries
600/drm/r600_hw_context.c
9bf4c30d73f5066db094fa9e72e6c4de7d6f9596 04-Jul-2011 Vadim Girlin <vadimgirlin@gmail.com> r600g: fix buffer offset in r600_query_begin
600/drm/r600_hw_context.c
c3b2230b71cb3a00a7f4c0987197d397bada650b 04-Jul-2011 Christian König <deathsimple@vodafone.de> Merge remote-tracking branch 'origin/master' into pipe-video

Conflicts:
configure.ac
src/gallium/drivers/r600/r600_state_inlines.h
src/gallium/tests/trivial/Makefile
src/gallium/winsys/g3dvl/dri/XF86dri.c
src/gallium/winsys/g3dvl/dri/driclient.c
src/gallium/winsys/g3dvl/dri/driclient.h
src/gallium/winsys/g3dvl/dri/xf86dri.h
src/gallium/winsys/g3dvl/dri/xf86dristr.h
src/gallium/winsys/r600/drm/r600_bo.c
61c976c3ccc815aaf0128eea835aee9667cd8bbe 29-Jun-2011 Vadim Girlin <vadimgirlin@gmail.com> r600g: fix check for empty cs
600/drm/r600_hw_context.c
235225ec935002b4669d14a48c9c20864a5496f8 30-Jun-2011 José Fonseca <jfonseca@vmware.com> scons: Expose pkg-config in a simpler manner.
915/drm/SConscript
965/drm/SConscript
600/drm/SConscript
adeon/drm/SConscript
vga/drm/SConscript
aa281dd3924cf76e24c0e8cbd971f58d082cd4cd 28-Jun-2011 Chia-I Wu <olv@lunarg.com> st/egl: update fbdev backend

Considering fbdev as an in-kernel window system,

- opening a device opens a connection
- there is only one window: the framebuffer
- fb_var_screeninfo decides window position, size, and even color format
- there is no pixmap

Now EGL is built on top of this window system. So we should have

- the fd as the handle of the native display
- reject all but one native window: NULL
- no pixmap support

modeset support is still around, but it should be removed soon.
w/fbdev/fbdev_sw_winsys.c
w/fbdev/fbdev_sw_winsys.h
c4930cb417defe9f58c27e909adb18d3c7784883 22-Jun-2011 Alex Deucher <alexdeucher@gmail.com> r600g: fix num_banks interpretation on eg+

Field is encoded:
0 = 4 banks
1 = 8 banks
2 = 16 banks

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_drm.c
8c91d751c8cacf5ed86ea8c4c4f024b3d50056e5 21-Jun-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> winsys/wayland: Fix warning
w/wayland/wayland_sw_winsys.h
b0f1767d776e2c80cab4343b4cd59553fbf5e48a 12-Jun-2011 Mathias Fröhlich <Mathias.Froehlich@gmx.net> r600g: Allow VRAM for the initial domain for every buffer binding.
600/drm/r600_bo.c
e1f88016ec51ccf7e07fac4d77ad9077b6b9a1eb 12-Jun-2011 Mathias Fröhlich <Mathias.Froehlich@gmx.net> r600g: Set the domains value also for recycled buffer objects.
600/drm/r600_bo.c
219150433a305b0e0b6093647758eed3a7650bc4 07-Jun-2011 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: implement fence signalling

v2: Incorporated feedback from Jakob Bornecrantz.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
915/drm/i915_drm_fence.c
eca3e910edbaf3074f3e2c3afdfca1dccd52f2a1 09-Jun-2011 Alex Deucher <alexdeucher@gmail.com> r600g: VGT_PRIMITIVE_TYPE is special

It's a special reg and does not require a flush like
the other CONFIG regs.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
8681ebcf7f1daf0a346ea7d41013d5af02e3c7c7 09-Jun-2011 Alex Deucher <alexdeucher@gmail.com> r600g: Handle CONFIG regs properly

CONFIG regs (byte offsets 0x8000-0xac00) are single state and the pipeline
must be flushed and hw idle when they are changed. Border color regs
are in the CONFIG range and this is why a flush is required when changing
them. CONTEXT regs (byte offset 0x28000+) are multi-state and those do
not require flushes when changing them.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
003401f95c9b59471c22368b7da16fe7a951e490 09-Jun-2011 Christian König <deathsimple@vodafone.de> Merge remote-tracking branch 'origin/master' into pipe-video

Conflicts:
src/gallium/tests/unit/u_format_test.c
src/gallium/winsys/r600/drm/r600_hw_context.c
04554c7d3a3b28e8103e50ed54f1ac57c6c11017 08-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: adjust vs/ps gprs on r600/r700 cards when needed.

Ideally we'd have a compiler and register spilling and all that
but this is good enough for now to avoid the gpu hang in piglit,

glsl-vs-vec4-indexing-temp-dst-in-nested-loop-combined

on r600/r700 cards.

based on r600c patch
Andre Maasikas <amaasikas@gmail.com>
r600c: bump sq gpr resources if a shader needs more than default

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
600/drm/r600_priv.h
5f2deba9f3f3f9230a9fdd2848e20c1e23e98b8f 08-Jun-2011 Brian Paul <brianp@vmware.com> gallium: s/bool/boolean/
600/drm/r600_bomgr.c
600/drm/r600_priv.h
9fb404b47e304a2676bd047df5f13161a4d957f6 08-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: set enable always bits for r600/r700 sq registers.

This makes sure these are enabled even if set to 0 at startup.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
e84981dede56a9aae154cb3266e371aad46e15bb 08-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: fix warnings in winsys.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
c1f9884bbf580ea4390cc71d1696c87eba9f8f2e 08-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: enable dynamic GPR resource management on evergreen

Evergreen can do this as well as cayman, so we should enable it.

This fixes a gpu lockup with
glsl-vs-vec4-indexing-temp-dst-in-nested-loop-combined.shader_test

I need to add a better workaround for r600/r700.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
f659cc46bc80923694b88d8fc9549705d8ca90aa 08-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: only add blocks once to the dirty/enabled lists.

This caused a loop in some tests.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
a5329d4f789f0336780b38d9513cad1ed5cf1e07 08-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: fix regression in recent state changes.

We weren't emitting the SQ setup regs at all which really is
fail.

When a state is always enabled we need to add it to the dirty list
as well.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
745abb53cf3f97600eed2e27361b82eb9727c41d 07-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: move simple part of bo reloc processing inline.

This just moves the messy stuff out of the fast path,
and leaves the fast-case in the fast path.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
600/drm/r600_priv.h
ba78a5a679b3f6b00d0f2070bb1ab6d56443ab16 07-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: split resource emit path from main register emit path

Since resources don't generally vary in size, this splits
the emit path, it also takes into a/c that texture and vertex resources
have different number of relocs, and avoids emitting the extra
reloc for vertex resources.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
ff8717527dd8b0313905c67712428fa5d4647d9b 06-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: exit bo per reg scanning loop early.

Exit this loop early to avoid pointless iterations later.

Move the resource bos to the first two regs, it actually
doesn't matter which regs we use for this in resource land.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
138f660b5890f4ceba649df00239111947735842 07-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: reorder evergreen draw packets to be smaller.

We were always re-emitting lots of unnecessary changes here,
avoid doing that.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
4707ae20ad6cd99bbcaa33747fc7b043c85bb084 07-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: inline r600_bo_reference.

This relies on the reference member being first, so document it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_bo.c
600/drm/r600_priv.h
ff298a66d7dffd0e91997a6af4cb3ffb3962f350 07-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: no need to drop the references here.

We drop them when we reference the new objects in the next line.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
e21601e46efa3c17933f5abf079396ee3bdb4c45 07-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: use memcmp instead of a loop in state_set_resource

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
bdf2e112856659816d000699fce606adc4ee9926 07-Jun-2011 Pierre-Eric Pelloux-Prayer <pelloux@gmail.com> r600g : fix incorrect size computation in r600_query_result

query->num_results already has the size in dwords of the query
buffer. There no need to multiply again. We were reading past
the end of the buffer, resulting in reading garbage.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=37028

agd5f: clarify the comment.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_hw_context.c
5d4c4798223c3463dbf67c47b9563f82c9057e7f 07-Jun-2011 Alex Deucher <alexdeucher@gmail.com> r600g: remove pre-r6xx asic families and pci ids

Not sure why these were included originally.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/radeon_pciid.c
7c1d4781920e34ad5419b4c5cf9d54ae14938844 07-Jun-2011 Alex Deucher <alexdeucher@gmail.com> r600g: always clear query memory

According to the hw documentation, the driver needs to:
- allocate 128 bits for each possible DB
- clear the 128 bits for each possible DB
- write 1 to bits 127 and 63 for upper DBs that don't
exist on a particular asic

Previously we were only doing these steps if the
asic had less than the max possible DBs.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_hw_context.c
42ba8d141fe07fcfa6f39623d8226919bf27be9f 06-Jun-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> r300g: Remove is_r3xx

Use r300_pci_ids.h instead.

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
adeon/drm/Makefile
adeon/drm/radeon_drm_public.h
adeon/drm/radeon_drm_winsys.c
2bb253120ef43768dce26e8e58090eac771013b2 06-Jun-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> r600g: Use radeon pciid list for the family lookup table

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/Makefile
600/drm/radeon_pciid.c
ca01fe007d3962386cb98aef762d5a2ff114e4aa 06-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: optimise the draw emission packets for r600/eg

This just reduces code size a bit for this chunk.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
63184bc8b278ba82f5462798b323774c67a019e6 03-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: use an enabled list to track enabled blocks.

At the end of flushing we were scanning over 450 blocks
with generally about 50 enabled. This reduces the scanning
to just the list of enabled blocks.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
f356bb74de7ab9ad1085a0fc2f16c1dae4ff171e 06-Jun-2011 Dave Airlie <airlied@redhat.com> r600g/winsys: overhaul resource range/blocks.

There isn't much point taking the overhead of range/block lookups on resources
we aren't going to be getting resource registers at wierd offsets.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
be7af43f5a725b65701ab1e37a5c373d715be9b0 06-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: split out block init

This just splits this function up as pre-cursor to reusing
the internals of it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
cf0f02e501eb2eb8edcf2c4f6db826b0cdd31c9b 03-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: move resource setting to its own structures.

resource setting could be a fair bit more lightweight,
this patch just separates the resource structs from the standard
reg tracking structs in the driver, later patches will improve
the winsys.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
eb4bb48ef41483750fa678ab21ef52accbf4e628 06-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: only call bo loop if nbos is positive.

we don't need to loop over all the registers unless we have
some bos in the block, also avoid setting the ctx flags,
and move the optional stuff down below this chunk.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
6cd3534676a58e92ac479eee7040df2ad27fdac0 03-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: don't need to call the packet dirty function if not dirty.

also fix a unneeded dirty check and add a dirty check speedup.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
1eb957bb4108123bea95b818e0544e3b5f255e08 05-Jun-2011 Christian König <deathsimple@vodafone.de> Merge remote-tracking branch 'origin/master' into pipe-video
4423c79ddf6853d1d4594afda3e1262c1b9af4f5 02-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: work out range/block etc at state build time.

This moves the overhead of working out the range/block to state build time,
it also allows the compiler to use constants for a lot of things instead
of working them out each time.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
991dbd71fdcc95e42bc56097d2fef3a7df0e8eaa 02-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: migrate macros from r600_priv.h to r600.h

this is just an precursor change for some later patches.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_priv.h
c1159eea54b28096652289ee8d06472566d9a4e5 02-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: remote ctx arg to block/range macros.

These aren't used anymore.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
8782fdc1db3cca6817dce4b563855f261694f1ef 02-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: avoid copying unnecessary pieces of a block.

This just avoids copying stuff if its going to modify the number of dwords
later anyways.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
8fcafeb4757215d1cf56e1e0a2cc57837379475c 02-Jun-2011 Dave Airlie <airlied@redhat.com> r600g: force new evergreen blocks for large range.

This range was 76 dwords long, the 75th dword changes, the first 60 or so
don't. split the block so it emits less often.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
414cd5df50435f475d92b02c229453d037369c0f 04-Apr-2011 Alex Deucher <alexdeucher@gmail.com> r600g: add llano support

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_drm.c
600/drm/radeon_pciid.c
b5518834e3ae117eafb32cfc5c7e7af51b4a1078 31-May-2011 Alex Deucher <alexdeucher@gmail.com> r600g: cs init fixes

- all asics need to emit CONTEXT_CONTROL
- all r6xx asics need to emit 3D_START_CMDBUF

The ddx and r600c already do this. r600g should as well.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
0cdd82df53a55907b311ede0e80c3ce2fb37f287 31-May-2011 Dave Airlie <airlied@redhat.com> r600g: add context control to start of CS

On my original R600 card this at least lets gnome shell run for a while longer
and the piglit r300-readcache test case works a lot more reliably.

Still a few more stability issues running a piglit test run though.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
65ee7cd1dfa043d28dd013f513732090470ef9d6 31-May-2011 Dave Airlie <airlied@redhat.com> r600g: don't emit color blend register on original R600.

The original R600 doesn't have these so don't emit them.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
600/drm/r600_priv.h
7779f6d1dffde2c0501e44adc342e52803de08d4 09-Mar-2011 Dave Airlie <airlied@redhat.com> r600g: add initial cayman acceleration support.

Cayman is the RadeonHD 69xx series of GPUs. This adds support for
3D acceleration to the r600g driver.

Major changes:
Some context registers moved around - mainly MSAA and clipping/guardband related.
GPR allocation is all dynamic
no vertex cache - all unified in texture cache.
5-wide to 4-wide shader engines (no scalar or trans slot)
- some changes to how instructions are placed into slots
- removal of END_OF_PROGRAM bit in favour of END flow control clause
- no vertex fetch clause - TC accepts vertex or texture

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_drm.c
600/drm/radeon_pciid.c
ece871c03876221636166ebd3f091ebeb10afbf1 25-May-2011 Dave Airlie <airlied@redhat.com> r600g: flush the DB dest base as well.

If we do this for CB bases then we should do it for DB bases.

noticed while adding cayman support.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
aa63ebc48a2ee1ee9afbf2112d4d25e8a9a8d1e8 21-May-2011 Christian König <deathsimple@vodafone.de> Merge remote-tracking branch 'origin/master' into pipe-video
ecc051d65b6e17115439fb3609cccfd59f6272bf 13-May-2011 Dave Airlie <airlied@redhat.com> r600g: bump domain selection up one layer.

this is taken from a patch from Mathias Froehlich, just going to
stage it in a few pieces.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_bo.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
828540e491d88b9b6217e6568873a78462919ae8 15-May-2011 Christian König <deathsimple@vodafone.de> Merge remote-tracking branch 'origin/master' into pipe-video
bd5b7a6f7113da38a2c1f07a4a71e9993666a567 13-May-2011 Dave Airlie <airlied@redhat.com> r600g: reduce flushes so only when texture and CB overlap.

We only need to do this when the texture and CB are using the
same memory area.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
600/drm/r600_priv.h
fdd37af3f76ea3ac32f21e9a9c41979a9b33cc5c 07-May-2011 Marek Olšák <maraeo@gmail.com> r300g: dynamically ask for and release Hyper-Z access

We ask for Hyper-Z access when clearing a zbuffer.
We release it if no zbuffer clear has been done for 2 seconds.
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_drm_winsys.h
adeon/drm/radeon_winsys.h
c7b1497f4ece1f23ef934fa97ad9040350bc0f23 13-May-2011 Dave Airlie <airlied@redhat.com> r600g: don't unmap if we haven't mapped

should fix https://bugs.freedesktop.org/show_bug.cgi?id=37157

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/radeon_bo.c
1ca3efe5485a5e3800c4bc637a65a733257fb89e 12-May-2011 Dave Airlie <airlied@redhat.com> r600g: use a local var to store pointer to which register we are working on

this just makes the code a little bit cleaner.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
240049adfa7af6e60977139492a873933b353a0a 12-May-2011 Dave Airlie <airlied@redhat.com> r600g: make range/block act more like a page table

only allocate the blocks ptr in the range if we ever have one,
otherwise don't bother wasting the memory.

valgrind glxinfo
before:
==967== in use at exit: 419,754 bytes in 706 blocks
==967== total heap usage: 3,552 allocs, 2,846 frees, 3,550,131 bytes allocated

after:
==5227== in use at exit: 419,754 bytes in 706 blocks
==5227== total heap usage: 3,452 allocs, 2,746 frees, 3,140,531 bytes allocate

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
d79a4a612bae66581caf21a74bd745ec51a18e80 12-May-2011 Dave Airlie <airlied@redhat.com> r600g: reduce r600_reg footprint

This drops 6k of the text segment, a minor drop in the ocean, however
it also makes the code a lot cleaner and removes a lot of duplicated
information, hopefully making it more maintainable.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
d015d2f3912463e694d1e3c1b8cb6891f553f1f1 12-May-2011 Dave Airlie <airlied@redhat.com> r600g: reduce memory usage from range/block hash table.

This table covered a large range unnecessarily, reduce the address
range covered, use the fact that the bottom two bits aren't significant,
and remove unused fields from the range struct. It also drops the hash_size/shift in context in favour of a define, which should make doing the math
a bit less CPU intensive.

valgrind glxinfo
Before:
==320== in use at exit: 419,754 bytes in 706 blocks
==320== total heap usage: 3,691 allocs, 2,985 frees, 7,272,467 bytes allocated

After:
==967== in use at exit: 419,754 bytes in 706 blocks
==967== total heap usage: 3,552 allocs, 2,846 frees, 3,550,131 bytes allocated

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
5e15497452cf3e4d2fc76fdc6ed8113d0891b467 11-May-2011 Dave Airlie <airlied@redhat.com> r600g: delay mapping until first map request. (v2)

Currently r600g always maps every bo, this is quite pointless as it wastes
VM and on 32-bit with wine running VM space is quite useful.

So with this patch we don't create the mappings until first use, without
tiling enabled this probably won't make a major difference on its own,
but with tiled staged uploads it should avoid keeping maps for most of the
textures unnecessarily.

v2: add bo data ptr check

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_priv.h
600/drm/radeon_bo.c
b9f2750900efb2667bc1dfc428b71d8a08b212be 11-May-2011 Alex Deucher <alexdeucher@gmail.com> r600g: fix flushes on rs780/rs880

They need the same hack as rv670.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=35312

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_hw_context.c
2812b60a84a2992516db28b37b305c2a7eb5f424 10-May-2011 José Fonseca <jfonseca@vmware.com> svga/drm: Implement svga_winsys_screen::get_hw_version.
vga/drm/vmw_screen_svga.c
213b9004a6ee033a16af3dcd187aa68b56c39858 07-May-2011 Christian König <deathsimple@vodafone.de> Merge remote-tracking branch 'origin/master' into pipe-video

Conflicts:
src/gallium/drivers/r600/r600_state.c
3b20a89941fe9c7b5ad10e13cb035d0508c43bbd 06-May-2011 Alex Deucher <alexdeucher@gmail.com> r600g: avoid recursion in rv670 flush workaround

Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=36914

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_hw_context.c
8c3226be9004657db6c850b3164caf70deafa822 06-May-2011 Kostas Georgiou <georgiou@opengamma.com> Add pci id for FirePro 2270

Signed-off-by: Kostas Georgiou <georgiou@opengamma.com>
600/drm/radeon_pciid.c
bf7a3ddca6fcc73eebdd9afdc45a485b38477bd9 06-May-2011 Alex Deucher <alexdeucher@gmail.com> r600g: further r6xx cache flush fixes

Don't emit sync packets for additional CBs or DB.
Spotted by Fredrik Höglund.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_hw_context.c
5066f7cd0e010db46b42f8f08a33c10cb34f8726 06-May-2011 Dave Airlie <airlied@redhat.com> r600g: add rv670 flushing workaround.

Hopefully we can find out the proper fix for this, but for now
this makes the fbo mipmap tests pass on my rv670 (x2 card).

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
d116fe51c1aee3453290ac30ffe993bc131c53f7 05-May-2011 Alex Deucher <alexdeucher@gmail.com> r600g: fix cache flushes on r6xx

r6xx asics have some problems with the surface
sync logic for the CB and DB. It's recommended
to use the event write interface for flushing
the DB/CB caches rather than the sync packets.
A single event write flush flushes all dst
caches, so we only need one for all CBs and DB.

Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=35312

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
ae7abf080b5c43e3736db2ed0d0e03ed59eb5ea4 03-May-2011 Dave Airlie <airlied@redhat.com> r600g: do RV6xx base updates inline with state updates.

This seems more in line with what the documentation suggests we should be
doing. It doesn't fix the rv635 regression, though I thought it might,
so it means I've no idea whats actually going wrong there.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_hw_context.c
600/drm/r600_priv.h
fc30910c65e7ab078b900c29d2066e45d3edd8c2 04-May-2011 Brian Paul <brianp@vmware.com> i915g: add const qualifier to silence warning
915/drm/i915_drm_winsys.h
c120d9d1cc9c03f73a8ac9d844bad7e7b1c4ea82 03-May-2011 Alex Deucher <alexdeucher@gmail.com> r600g: add some new pci ids

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/radeon_pciid.c
e602ecf9ef2f66289bcb159fdbdce2c76e3c07c1 26-Apr-2011 Christian König <deathsimple@vodafone.de> r600g: revert commit 68cc6bc5d8b6986acc7f5780d705f4ae9be2a446

Revert commit "remove the unneeded bo from COLOR[0-9]_INFO
Also implement a working alternative.
600/drm/r600_hw_context.c
6a35ed1f66f0839fb0a6fdb6c07167257a0a2e72 25-Apr-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> winsys/wayland: Fix typo in Makefile

Reported by dir1212 on irc.
w/wayland/Makefile
aaa3c0d6de7fc2c8d209d3adba11eba1133c61d1 23-Apr-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> winsys: Add wayland shm sw winsys
w/Makefile
w/wayland/Makefile
w/wayland/wayland_sw_winsys.c
w/wayland/wayland_sw_winsys.h
71667533d1ccec698246b83bfd05df51a44cd298 21-Apr-2011 Marek Olšák <maraeo@gmail.com> r600g: remove some pointless and unused functions
600/drm/r600_bo.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
512c81484978014fe43bb3bd3f2ce1aaaee05868 21-Apr-2011 Marek Olšák <maraeo@gmail.com> r600g: do not reset device to 0 when doing unrelated operations

Seems to be a copy-paste bug.
600/drm/r600_drm.c
68cc6bc5d8b6986acc7f5780d705f4ae9be2a446 24-Apr-2011 Christian König <deathsimple@vodafone.de> r600g: remove the unneeded bo from COLOR[0-9]_INFO

The COLOR[0-7]_INFO registers doesn't neeed a bo.
600/drm/r600_hw_context.c
fa31b1095eeea97695125ad5770239805bed37da 23-Apr-2011 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video

Conflicts:
configs/linux-dri
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_state.c
src/gallium/include/pipe/p_format.h
src/gallium/tests/graw/fragment-shader/frag-abs.sh
src/gallium/tests/graw/fragment-shader/frag-add.sh
src/gallium/tests/graw/fragment-shader/frag-cb-1d.sh
src/gallium/tests/graw/fragment-shader/frag-cb-2d.sh
src/gallium/tests/graw/fragment-shader/frag-dp3.sh
src/gallium/tests/graw/fragment-shader/frag-dp4.sh
src/gallium/tests/graw/fragment-shader/frag-dst.sh
src/gallium/tests/graw/fragment-shader/frag-ex2.sh
src/gallium/tests/graw/fragment-shader/frag-face.sh
src/gallium/tests/graw/fragment-shader/frag-flr.sh
src/gallium/tests/graw/fragment-shader/frag-frc.sh
src/gallium/tests/graw/fragment-shader/frag-kil.sh
src/gallium/tests/graw/fragment-shader/frag-lg2.sh
src/gallium/tests/graw/fragment-shader/frag-lit.sh
src/gallium/tests/graw/fragment-shader/frag-lrp.sh
src/gallium/tests/graw/fragment-shader/frag-mad-immx.sh
src/gallium/tests/graw/fragment-shader/frag-mad.sh
src/gallium/tests/graw/fragment-shader/frag-max.sh
src/gallium/tests/graw/fragment-shader/frag-min.sh
src/gallium/tests/graw/fragment-shader/frag-mov.sh
src/gallium/tests/graw/fragment-shader/frag-mul.sh
src/gallium/tests/graw/fragment-shader/frag-rcp.sh
src/gallium/tests/graw/fragment-shader/frag-rsq.sh
src/gallium/tests/graw/fragment-shader/frag-sge.sh
src/gallium/tests/graw/fragment-shader/frag-slt.sh
src/gallium/tests/graw/fragment-shader/frag-srcmod-abs.sh
src/gallium/tests/graw/fragment-shader/frag-srcmod-absneg.sh
src/gallium/tests/graw/fragment-shader/frag-srcmod-neg.sh
src/gallium/tests/graw/fragment-shader/frag-srcmod-swz.sh
src/gallium/tests/graw/fragment-shader/frag-sub.sh
src/gallium/tests/graw/fragment-shader/frag-tempx.sh
src/gallium/tests/graw/fragment-shader/frag-xpd.sh
src/gallium/tests/graw/vertex-shader/vert-abs.sh
src/gallium/tests/graw/vertex-shader/vert-add.sh
src/gallium/tests/graw/vertex-shader/vert-arl.sh
src/gallium/tests/graw/vertex-shader/vert-arr.sh
src/gallium/tests/graw/vertex-shader/vert-cb-1d.sh
src/gallium/tests/graw/vertex-shader/vert-cb-2d.sh
src/gallium/tests/graw/vertex-shader/vert-dp3.sh
src/gallium/tests/graw/vertex-shader/vert-dp4.sh
src/gallium/tests/graw/vertex-shader/vert-dst.sh
src/gallium/tests/graw/vertex-shader/vert-ex2.sh
src/gallium/tests/graw/vertex-shader/vert-flr.sh
src/gallium/tests/graw/vertex-shader/vert-frc.sh
src/gallium/tests/graw/vertex-shader/vert-lg2.sh
src/gallium/tests/graw/vertex-shader/vert-lit.sh
src/gallium/tests/graw/vertex-shader/vert-lrp.sh
src/gallium/tests/graw/vertex-shader/vert-mad.sh
src/gallium/tests/graw/vertex-shader/vert-max.sh
src/gallium/tests/graw/vertex-shader/vert-min.sh
src/gallium/tests/graw/vertex-shader/vert-mov.sh
src/gallium/tests/graw/vertex-shader/vert-mul.sh
src/gallium/tests/graw/vertex-shader/vert-rcp.sh
src/gallium/tests/graw/vertex-shader/vert-rsq.sh
src/gallium/tests/graw/vertex-shader/vert-sge.sh
src/gallium/tests/graw/vertex-shader/vert-slt.sh
src/gallium/tests/graw/vertex-shader/vert-srcmod-abs.sh
src/gallium/tests/graw/vertex-shader/vert-srcmod-absneg.sh
src/gallium/tests/graw/vertex-shader/vert-srcmod-neg.sh
src/gallium/tests/graw/vertex-shader/vert-srcmod-swz.sh
src/gallium/tests/graw/vertex-shader/vert-sub.sh
src/gallium/tests/graw/vertex-shader/vert-xpd.sh
src/gallium/tools/trace/dump.py
src/gallium/tools/trace/format.py
src/gallium/tools/trace/model.py
src/gallium/tools/trace/parse.py
abee17057f52a1b83ab5d7897bc9299e452b5953 20-Apr-2011 Alex Deucher <alexdeucher@gmail.com> r600g: fix userspace fences again

reinstate b7617346dcff50a66a10c61b95c33682cf629c9e after the
rework in 6067a2a67f9a7aab2aee051469bea8af03747a95.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_hw_context.c
6067a2a67f9a7aab2aee051469bea8af03747a95 20-Apr-2011 Fredrik Höglund <fredrik@kde.org> r600g: don't flush the dest caches on every draw

Keep track of when the caches are dirty, and only flush them when
the framebuffer state is set and when the context is flushed.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
723e35d4a6a0cc103109c326e1c523f18f60fd2a 19-Apr-2011 Dave Airlie <airlied@redhat.com> r600g: make loop const always flush

this needs revisiting, we really don't want to be flushing all 32 of these,
but currently we don't flush any of them, and it seems to have caused a regression
as reported on irc with doom3 on evergreen.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
f05adb83f5fed4b406670585ac42c290bf88bc0d 19-Apr-2011 Dave Airlie <airlied@redhat.com> r600g: add dirty tracking to context reg.

just makes the code more consistent.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
5b5a16e3203379d7a54d4657df7c1357d14df058 19-Apr-2011 Dave Airlie <airlied@redhat.com> r600g: deinline some large functions.

really at these sort of sizes these are pointless inlines.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
600/drm/r600_priv.h
a6e32da8bd7a79eaa36f410edc357a10f878ac30 19-Apr-2011 Dave Airlie <airlied@redhat.com> r600g: consolidate r600/evergreen code for resource emission.

These really didn't have much difference, and totally not inline material.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
02522b76a1562f8b7317a25e2705927f7bbfed07 13-Apr-2011 Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> r600g: don't flush caches if we already did so, even for a subset of the flags

Merging the flushes that are left doesn't seem to give a significant
performance improvement

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
e3b9cf15bbef3fc06f576a378fab70081ee48fba 18-Apr-2011 Dave Airlie <airlied@redhat.com> r600g: attempt to avoid emitting resources that are the same

This just avoids reemitting resources that haven't changed.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
162bc40eed9dc54091b6e64bcd7eab06607b500d 18-Apr-2011 Dave Airlie <airlied@redhat.com> r600g: modify block to only emit the first few dirty registers. (v2)

This gets me from 2200 to 1978 dwords for a gears frame.

This is due to us having some 32-dwords blocks in the SPI, that we only
modify the first dwords off.

v2: fix dirty reg count from Bas Nieuwenhuizen

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
c058067e578e4426f56f9b23e33e3d3fac4562f7 17-Apr-2011 Dave Airlie <airlied@redhat.com> r600g: track dirty registers better. (v2)

This is a first step to decreasing the CPU usage, by decreasing how much
stuff we pass to the GPU and hence to the kernel CS checker.

This adds a check to see if the values we need to write are actually dirty,
and avoids writing if they are. However certain register need to always
be written so we add a new flag to say which ones should be always written
if used. (Note this could probably be done cleaner with a larger refactoring,
since I think the CONST_BUFFER_SIZE_PS/VS and CONST_CACHE_PS/VS might
be better off as a special state).

It also moves the need_bo to be a flags on the register now.

With this, a frame of gears goes from emitting 3k dwords to emitting 2k dwords,
and I'm sure it could get a lot smaller.

v2: fix some evergreen dirty bits.

Original patch from: Bas Nieuwenhuizen, I NIHed nearly the same thing
before seeing his patch on the list, oops.

Reviewed-by: Bas Nieuwenhuizen
Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
d35aeff4bb0b03450b2c3c08bd7f84db5bf43283 18-Apr-2011 Marek Olšák <maraeo@gmail.com> r300g/winsys: rename r300->radeon and do a little cleanup

Renaming a few files, types, and functions.
Also make the winsys independent of r300g.
adeon/drm/Makefile
adeon/drm/SConscript
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_common.c
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
adeon/drm/radeon_drm_public.h
adeon/drm/radeon_drm_winsys.c
adeon/drm/radeon_drm_winsys.h
adeon/drm/radeon_winsys.h
93d42571a631cb273df15fc1930e5b27f2970d9b 17-Apr-2011 Dave Airlie <airlied@redhat.com> r600g: use some loops.

unrolling loops is for Gentoo users, and I really want to put something
else inside these loops later.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
70de2705b495c6f61437d24c6e5b9c411ebbacbf 17-Apr-2011 Dave Airlie <airlied@redhat.com> r600g: consolidate the same piece of cut-n-paste code into a function.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
8b0a9cc62c36bb48d2d7b488787eb2966bcbf7f2 10-Apr-2011 Christian König <deathsimple@vodafone.de> [g3dvl] get softpipe to work again
3dvl/xlib/xsp_winsys.c
aac4bae98651c928ce298aecf158b0aa1a7fabce 08-Apr-2011 Marek Olšák <maraeo@gmail.com> r300g: fix crash when adding a new relocation

No idea why it's so hard to reproduce.
Broken with: c35572352e3e92683988ee8d151b47f4190d62f9

Thanks to Toni Spets for assistance.
adeon/drm/radeon_drm_cs.c
9d5de0fcb6ced7a4da85a09ad25dcbc2b21bfdf9 07-Apr-2011 Marek Olšák <maraeo@gmail.com> r300g: add 'radeon: ' prefix to error messages in winsys
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_cs.c
19402275fb36fc8cb5afaab63b224487e00313f9 07-Apr-2011 Christian König <deathsimple@vodafone.de> [g3dvl] stop waiting for replay of DRI2CopyRegion
3dvl/dri/dri2.c
d9ad3aa3b9647f1ede2568600978af956ff32fff 06-Apr-2011 Christian König <deathsimple@vodafone.de> [g3dvl] and finally split the decoder part out of the context

This should give a good basis to implement vdpau ontop of it.
3dvl/dri/dri_winsys.c
3dvl/vl_winsys.h
a0fc40f0d5a04fa85f720c0a4a7aa27bbb19e114 04-Apr-2011 Alex Deucher <alexdeucher@gmail.com> r600g: add some additional ontario pci ids

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/radeon_pciid.c
6caac3ecb8bc32d92c35fdb1f0a67541ffa8af29 03-Apr-2011 Marek Olšák <maraeo@gmail.com> r300g: do not wait for a busy BO if neither GPU nor CPU is changing it

Improves frame rate in apps with at least one user vertex buffer and
a hw index buffer.
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
9d881cbd5a4cd3252fdc8e1f81a6d48d67fc5e5c 03-Apr-2011 Marek Olšák <maraeo@gmail.com> r300g: remove unused RADEON_PB_USAGE_CACHE
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
652bf121f2124ec92b74f6e3e40e6aefcc1c50dc 03-Apr-2011 Marek Olšák <maraeo@gmail.com> r300g: avoid mapping the same buffer twice

Shouldn't happen, but you never know.
adeon/drm/radeon_drm_bo.c
c35572352e3e92683988ee8d151b47f4190d62f9 03-Apr-2011 Marek Olšák <maraeo@gmail.com> r300g: remove the redundant reference counter in radeon_bo

We already have pb_buffer::reference::count.
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_cs.c
d04ab396a54d29948363c3353efa5aaa888076a3 29-Mar-2011 Fredrik Höglund <fredrik@kde.org> r600g: implement texture barrier
600/drm/r600_hw_context.c
948e1eb8e9c166ad5b74abc630d0760768ce78c9 29-Mar-2011 Fredrik Höglund <fredrik@kde.org> r600g: implement the pipe_screen fence functions

v2: Allocate the fences from a single shared buffer object.
v3: Allocate the r600_fence structs in blocks of 16.
Spin a few times before calling sched_yield in r600_fence_finish().
600/drm/r600_hw_context.c
2737350157cf048b436d7b64d420881ff6df9223 29-Mar-2011 Vinson Lee <vlee@vmware.com> i915g: Fix build.

Fix build failures introduced with commit 0fbb64a52931ba5871aa2c5eb01b81d391f678d1.

Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
915/drm/i915_drm_winsys.c
0fbb64a52931ba5871aa2c5eb01b81d391f678d1 28-Mar-2011 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: use drm ioctl to get pci devid

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
915/drm/i915_drm_winsys.c
e4b040c2b922ff1887651cbf658b06b48b5992c5 21-Mar-2011 Dave Airlie <airlied@redhat.com> r600g: fix bo names causing -35 EDEADLCK

this is a port of the r300 winsys code to do the same thing.
600/drm/r600_drm.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
2bf95c519e755146704f4942b1703d47d18bfeaa 19-Mar-2011 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video

Conflicts:
src/gallium/drivers/r600/r600_asm.c
src/gallium/tests/unit/SConscript
d1655b60b08f09873aa4b627e948dfc517e9e3eb 18-Mar-2011 Christian König <deathsimple@vodafone.de> get softpipe winsys to compile again
3dvl/xlib/xsp_winsys.c
39d60610e87dbb6f7b225bbf4e057ad79449c3fd 14-Mar-2011 Alex Deucher <alexdeucher@gmail.com> r600g: fix logic error in 028987c80362eddd39176628486a456b076f0427

Spotted by Henri on IRC.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_hw_context.c
028987c80362eddd39176628486a456b076f0427 14-Mar-2011 Alex Deucher <alexdeucher@gmail.com> r600g: emit SURFACE_BASE_UPDATE packet on rv6xx

This packet is required when updating the DB, CB,
or STRMOUT base addresses on rv6xx for the surface
sync logic to work correctly.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_hw_context.c
600/drm/r600d.h
7e02303497237cde958c28608477d0c355a8038b 08-Mar-2011 Marek Olšák <maraeo@gmail.com> gallium: remove flags from the flush function

The drivers have been changed so that they behave as if all of the flags
were set. This is already implicit in most hardware drivers and required
for multiple contexts.

Some state trackers were also abusing the PIPE_FLUSH_RENDER_CACHE flag
to decide whether flush_frontbuffer should be called.
New flag ST_FLUSH_FRONT has been added to st_api.h as a replacement.
600/drm/r600_bo.c
w/wrapper/wrapper_sw_winsys.c
9b7f3776359640d452697f3a487a345820abebf0 09-Mar-2011 Dave Airlie <airlied@redhat.com> r600: don't close fd on failed load

This fd gets passed in from outside, closing it causes the X.org server
to crap out when the driver doesn't identify the chipset.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_drm.c
c0d3fb4b6c11fd128921c464f753480a137555a0 09-Mar-2011 Vinson Lee <vlee@vmware.com> scons: Fix immediate Python exceptions with SCons on SunOS.

The build still fails.
w/dri/SConscript
w/xlib/SConscript
5650a719f0c69c00954e47bd7a7b3e9433cb551d 08-Mar-2011 Marek Olšák <maraeo@gmail.com> r300g: decide whether a flush should be asynchronous when calling it

Thread offloading is not sometimes desirable, e.g. when mapping a buffer.
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
0eccb1038a620bc76ba45ac00c293b3e88427510 03-Mar-2011 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video
a6314eb47f0c916c51362dfbd0f1db21e72745ee 02-Mar-2011 Marek Olšák <maraeo@gmail.com> r300g: require DRM 2.3.0 (kernel 2.6.34)

Running any older kernel is not recommended anyway.
adeon/drm/radeon_drm_common.c
f6dbcb92bf4a3597c7b3da890ffafc84951f25df 02-Mar-2011 Marek Olšák <maraeo@gmail.com> r300g: do not use ioctl thread offloading on single-core machines
adeon/drm/radeon_drm_common.c
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_winsys.h
8f9e546fde27db75ea87bcf8ae333bc70616deb4 26-Feb-2011 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: kill relocs accouting

No one ever cared. libdrm does dynamic resizing of its reloc-table,
anyway.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
915/drm/i915_drm_batchbuffer.c
915/sw/i915_sw_batchbuffer.c
a44b65312e2cbba641652f4c78b8db9f24ba39b6 28-Feb-2011 Dave Airlie <airlied@redhat.com> r600g: add NV_conditional_render support.

This is reliant on a drm patch that I posted on the list + a version bump.

These will appear in drm-next today.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600d.h
929be6eb95c33d5885a89b36dbc82db64c1344fe 01-Mar-2011 Dave Airlie <airlied@redhat.com> r600g: start using drm minor version to enable things.

If the drm minor version is > 9 (i.e. whats in drm-next),
we enable s3tc + texture tiling by default now.

this changes R600_FORCE_TILING to R600_TILING which can
be set to false to disable tiling on working drm.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_drm.c
600/drm/r600_priv.h
b97e41c7b18c363a303693fb841fe606b1106fe6 28-Feb-2011 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video
3c59b3eb4b6f4f673106d738b62458e6b0b38d46 27-Feb-2011 Daniel Vetter <daniel.vetter@ffwll.ch> i915g/winsys: buffer validation support

v2: Add the batch bo to the libdrm validation lost, for otherwise
libdrm won't take previously used buffers into account.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
915/drm/i915_drm_batchbuffer.c
915/sw/i915_sw_batchbuffer.c
e20c3255e29b9f94840d1f23439ab29060c94e3f 27-Feb-2011 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: add raw batchbuffer dumping in drm winsys

These files can be decoded with intel_dump_decode from the intel-gpu-tools
available at:

http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
915/drm/i915_drm_batchbuffer.c
915/drm/i915_drm_winsys.c
915/drm/i915_drm_winsys.h
acc290aff0944c3b5d1a5f40b67ddade6d2a6894 26-Feb-2011 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Use the same debug env vars in drm and sw winsys
915/sw/i915_sw_winsys.c
9a371b938c16d4fcb43e4e5ce2fbc2756202752a 26-Feb-2011 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Use unchecked writes in sw winsys batchbuffer
915/sw/i915_sw_batchbuffer.c
eb1780238621c7be0342d9129eb639e4892c004d 25-Feb-2011 Vinson Lee <vlee@vmware.com> scons: Reduce all Cygwin platform names to 'cygwin'.

platform.system in SCons on Cygwin includes the OS version number.
Windows XP - CYGWIN_NT-5.1
Windows Vista - CYGWIN_NT-6.0
Windows 7 - CYGWIN_NT-6.1

Reduce all Cygwin platform variants to just 'cygwin' so anything
downstream can simply use 'cygwin' instead of the different full
platform names.
w/xlib/SConscript
b922a0ce12916a91cfc3e56714913fcf63279ff2 24-Feb-2011 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video

Conflicts:
configure.ac
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/SConscript
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_asm.h
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state_inlines.h
src/gallium/drivers/r600/r600_texture.c
100cd214e37265776639c56018270805829ea952 24-Feb-2011 Vinson Lee <vlee@vmware.com> scons: Fix Cygwin platform names.

Fixes immediate Python exceptions with SCons on Cygwin.
w/xlib/SConscript
fbd681f1a03f6ad62432107dc94e02674f6de7bf 22-Feb-2011 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Use dump function in sw winsys
915/sw/i915_sw_batchbuffer.c
55a3c352432d1c7b22e445d041f9cb1990ca28d5 21-Feb-2011 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: add some throttling

Intel classic drivers switched to this, too, so it must be good.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
915/drm/i915_drm_batchbuffer.c
1e966636d06e92f562a7dbcd69aa88c4c9283c41 21-Feb-2011 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: s/bool/boolean/ style-fixup in winsys

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
915/drm/i915_drm_batchbuffer.c
915/sw/i915_sw_batchbuffer.c
593ba7b05b4052415fe99c2793da5864117d955b 21-Feb-2011 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Fix warning
915/drm/i915_drm_batchbuffer.c
8033700814f1db711d3429c904e4bc11271e0ff2 21-Feb-2011 Vinson Lee <vlee@vmware.com> i915g: s/__func__/__FUNCTION__/
915/sw/i915_sw_batchbuffer.c
c0122daf1010ad2887298028feaef8978e4c87cd 05-Dec-2010 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: kill remnants of mmapped batchbuffer support

We're using bo_subdata.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
915/drm/i915_drm_batchbuffer.c
fa186804a6c0b7231bd52a529fb1d0c42f038fd0 20-Feb-2011 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Add winsys/i915/sw to scons build
Conscript
20ff6a27522aa4b08d3c43dd509bc28b2b569c2d 20-Feb-2011 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Fix void ptr arith
915/sw/i915_sw_buffer.c
e9e5380f22c230ea1276208baa40c3fe6482b296 19-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: fix invalid dereference in winsys

radeon_bo_unref may destroy the buffer, so call it after p_atomic_dec, not before.
adeon/drm/radeon_drm_cs.c
fa3f1348e49feeac511dbe5b22bbddc47f56ba81 16-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: fix a race between CS and SET_TILING ioctls
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
b9e2cde6006b557a3a23a82384899f4d5a5ac7b8 15-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: offload the CS ioctl to another thread

This is a multi-threading optimization which hides the kernel overhead
behind a thread. It improves performance in CPU-limited apps by 2-15%.
Of course you must have at least 2 cores for it to make any difference.

It can be disabled with:

export RADEON_THREAD=0
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
333d3daf472485b247101932d95ccb798cb55f7b 15-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: actually implement the is_buffer_busy hook the right way

Ooops.
adeon/drm/radeon_drm_bo.c
45e1cd522bd26a5aa3d424ea49975b90feef8450 15-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: handle interaction between UNSYNCHRONIZED and DONTBLOCK flags in bo_map

The VBO module uses both, but they are somewhat opposite to each other.
In this case, we pick UNSYNCHRONIZED and ignore DONTBLOCK.
adeon/drm/radeon_drm_bo.c
8decb0a96de0accfc8361890cbcf9db89f8fe8ba 15-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: fix a possible race condition when mapping a buffer

This is the last one I think.
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
89ee0d527c689b70a08c1eb396486d47da7f120d 14-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: flush CS in bo_map even if we get USAGE_DONTBLOCK

Because an app may do something like this:

while (!(ptr = bo_map(..., DONT_BLOCK))) {
/* Do some other work. */
}

And it would be looping endlessly if we didn't flush.
adeon/drm/radeon_drm_bo.c
a87730ff3f83253465fbe9a1e9e9b1ea92cb79b9 13-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: implement pb_manager::is_buffer_busy
adeon/drm/radeon_drm_bo.c
8ab1fcc66a58ca87fb19fea2b0e14e62562deccc 13-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: fixup the handle_compare function

Accidentally negated in 685c3262b945a7f0e9f1f3a9409a12fdda08c828.
adeon/drm/radeon_drm_bo.c
685c3262b945a7f0e9f1f3a9409a12fdda08c828 12-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: typecast void* to unsigned correctly
adeon/drm/radeon_drm_bo.c
df54b53b7d12a3bca5867b6649cb308feb36f0da 11-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: improve function radeon_bo_is_referenced_by_cs

This should prevent calling into radeon_get_reloc when there's
only one context.
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
adeon/drm/radeon_winsys.h
de22d8f1eebd3245acccdb4098526ee1bf616c06 11-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: remove unused function prototypes, update copyright
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_common.c
adeon/drm/radeon_drm_cs.h
032b162ce88ef6ec8ad981fff709eb177d794589 11-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: plug a memory leak in winsys
adeon/drm/radeon_drm_bo.c
862ebb411b911f28bc93316e9e68c42f69f4dff3 11-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: remove unneeded code in winsys

We don't need the read/write flags.
adeon/drm/radeon_drm_bo.c
6ccab620a0e7364ab6c0d902b3ddf58ee988f7fa 23-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: import the last bits of libdrm and cleanup the whole thing

Based on Dave's branch.

The majority of this commit is a cleanup, mainly renaming things.
There wasn't much code to import, just ioctl calls.

Also done:
- implemented unsynchronized bo_map (important optimization!)
- radeon_bo_is_referenced_by_cs is no longer a refcount hack
- dropped the libdrm_radeon dependency

I'm surprised that this has resulted in less code in the end.
adeon/drm/Makefile
adeon/drm/SConscript
adeon/drm/radeon_drm_bo.c
adeon/drm/radeon_drm_bo.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_drm_buffer.h
adeon/drm/radeon_drm_common.c
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
4d78dafc84d460d1db52eac7b0ff041700bb435e 08-Feb-2011 Brian Paterni <bpaterni@gmail.com> r600g: silence a few valgrind warnings
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/radeon_bo.c
a6a710cbe7425819e1cd5ad5f2085311c092f2e7 03-Feb-2011 Henri Verbeet <hverbeet@gmail.com> r600g: Make some more things static.
600/drm/radeon_pciid.c
637ed52f597098ac556b27a4403056bd54343426 03-Feb-2011 José Fonseca <jfonseca@vmware.com> svga/drm: Flushing preemptively on a 1/3 of the aperture.

Exactly one half would be the ideal, but this is a soft limit, and one
more byte over brings us to synchronous behavior.

Flushing when the referred GMR exceeds one third of the aperture gives us
statistically better performance.
vga/drm/vmw_context.c
63c0a504a02baf95d34f06d7d9e9ae3fb8e952d4 03-Feb-2011 José Fonseca <jfonseca@vmware.com> svga/drm: Update for pb_vtbl::map argument addition.
vga/drm/vmw_buffer.c
a112cc283d2c62f895cdd6aceb976b3c7ef5f59d 01-Feb-2011 Dave Airlie <airlied@redhat.com> r600g: align the tiling modes with what the DDX and kernel expects.

If we see a MACRO bit on r600g its 2D tiled,
if don't see a MACRO bit and we do see a MICRO bit then its 1D tiled.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_bo.c
42b5f6819881e4885ff73a17635eb7d2d341563d 29-Jan-2011 Dave Airlie <airlied@redhat.com> r600g: start looking at evergreen tiling.

this just adds the ioctl interface and sets the tile type
and array mode in the correct place.

This seems to bring eg 1D tiling to the same level, and issues
as on r600. No idea how to address 2D yet.
600/drm/r600_drm.c
8c115aa247d4a2cfee5d35c5fdd6f56951060c6c 31-Jan-2011 Vinson Lee <vlee@vmware.com> scons: Gracefully handle pkg-config errors with libdrm_radeon.

Print warnings and continue build.
600/drm/SConscript
adeon/drm/SConscript
ea5ede2178b75cc52df73d873946657fce9d4705 31-Jan-2011 Dave Airlie <airlied@redhat.com> r600g: fix eg OQ properly.

the context init is separate for these gpus.
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
26a4c1cb650eee1380f87f3d7e8cff43c3d6a3e6 31-Jan-2011 Alex Deucher <alexdeucher@gmail.com> r600g: fix OQ on evergreen

6xx/7xx have a max of 4 DBs, evergreen have a max of 8.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_hw_context.c
df8089df90de3e720fec46d6118b15094e94ccd7 31-Jan-2011 Dave Airlie <airlied@redhat.com> r600g: fix occlusion query results.

Like on some r5xx, there are multiple DB backends on the r600,
we need to add up the query results from each of these to get the
final correct value.

So far I'm not 100% sure how to calculate the num_db, value
setting it to 4 should be harmless enough until we do.

This fixes occulsion_query piglit test on my rv740.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_hw_context.c
82e60236a950100bda7e00308c9b57861274608c 27-Jan-2011 Marek Olšák <maraeo@gmail.com> r300g: print driver info if RADEON_DEBUG=info
adeon/drm/radeon_drm_common.c
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
39f16e2aa72d96286296cc0242122a1c5e92897b 27-Jan-2011 Marek Olšák <maraeo@gmail.com> r300g: add winsys flag CAN_AACOMPRESS
adeon/drm/radeon_drm_common.c
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
2e3ccada076fe275d04d37dc60142230445d1007 27-Jan-2011 Marek Olšák <maraeo@gmail.com> r300g: rename flag squaretiling -> drm_2_1_0
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_drm_common.c
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
90c2fd86407999475ff6accecf36e5a2c75feb9b 23-Jan-2011 Mathias Fröhlich <Mathias.Froehlich@web.de> r600g: Implement timer queries.
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
e7ec53273547335863b2377bea9d35aa9c114c6b 23-Jan-2011 Mathias Fröhlich <Mathias.Froehlich@web.de> r600g: Implement asyncronous query results.
600/drm/r600_hw_context.c
b55fd961e1eeedbef12e95d5362453c4e0047c91 23-Jan-2011 Mathias Fröhlich <Mathias.Froehlich@web.de> r600g: Fix meaning of num_results for queries.
600/drm/r600_hw_context.c
4102c7c7e207dd5753a3f1dfa30adb39e3fb636d 24-Jan-2011 Tim Wiederhake <twied@gmx.net> fix potential leak in r600_context_init
600/drm/r600_hw_context.c
9d41e5ee46d73d4bff0ab78a5d24ec619a0ef894 24-Jan-2011 Tim Wiederhake <twied@gmx.net> silences some valgrind warnings

==5547== Conditional jump or move depends on uninitialised value(s)
==5547== at 0x8FE745D: r600_drm_winsys_create (r600_drm.c:86)
600/drm/r600_drm.c
78faf8d0e9c276a0ff1465e501d58fb3d66de2f7 20-Jan-2011 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video

Conflicts:
src/gallium/drivers/r600/r600_asm.c
d2ff6b8715e817c1ef14d4bf12be58c19d894143 20-Jan-2011 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video

Conflicts:
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_shader.c
9e964baaf34fedec385a750b97fd6684fc52584a 18-Jan-2011 Henri Verbeet <hverbeet@gmail.com> r600g: Kill trailing whitespace.
600/drm/bof.c
600/drm/radeon_bo.c
600/drm/radeon_pciid.c
a25473b535fe093dca1f3ae359374c365a81508d 15-Jan-2011 Henri Verbeet <hverbeet@gmail.com> r600g: Remove the redundant radeon_new() prototype.
600/drm/r600_drm.c
a96fe679e2f57e8e4e26c38660d8b6e5b67d5b4b 12-Jan-2011 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video

Conflicts:
src/gallium/drivers/r600/r600_shader.c
63b9790a55038c262b57c846a5f7067ea33fc60f 11-Jan-2011 Jerome Glisse <jglisse@redhat.com> r600g: move user fence into base radeon structure

This avoid any issue when context is free and we still try to
access fence through radeon structure.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
1b1c15a54aab7971d8296dc184a004dfd7bb5b3c 10-Jan-2011 Christian König <deathsimple@vodafone.de> r600g: place buffers into different domains, based on usage flags
600/drm/r600_bo.c
3ee8d13c0049e6a9490054ea46963bb6f9f18905 30-Dec-2010 Dave Airlie <airlied@gmail.com> i965g: update disassembler code from classic.

still a bit of work to do, the winsys gen setting is a bit of a hack.
965/drm/i965_drm_buffer.c
72e30991559017c16d48569e612dbc0970e3b9ca 08-Jan-2011 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video

Conflicts:
configure.ac
src/gallium/drivers/r600/eg_asm.c
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_asm.h
src/gallium/include/pipe/p_format.h
src/gallium/targets/dri-nouveau/Makefile
1f0348c4a2ba4f8ca812a2daccf3b01c3f984ef1 04-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: rework command submission and resource space checking

The motivation behind this rework is to get some speed by reducing
CPU overhead. The performance increase depends on many factors,
but it's measurable (I think it's about 10% increase in Torcs).

This commit replaces libdrm's radeon_cs_gem with our own implemention.
It's optimized specifically for r300g, but r600g could use it as well.
Reloc writes and space checking are faster and simpler than their
counterparts in libdrm (the time complexity of all the functions
is O(1) in nearly all scenarios, thanks to hashing).
(libdrm's radeon_bo_gem is still being used in the driver.)

It works like this:

cs_add_reloc(cs, buf, read_domain, write_domain) adds a new relocation and
also adds the size of 'buf' to the used_gart and used_vram winsys variables
based on the domains, which are simply or'd for the accounting purposes.
The adding is skipped if the reloc is already present in the list, but it
accounts any newly-referenced domains.

cs_validate is then called, which just checks:
used_vram/gart < vram/gart_size * 0.8
The 0.8 number allows for some memory fragmentation. If the validation
fails, the pipe driver flushes CS and tries do the validation again,
i.e. it validates only that one operation. If it fails again, it drops
the operation on the floor and prints some nasty message to stderr.

cs_write_reloc(cs, buf) just writes a reloc that has been added using
cs_add_reloc. The read_domain and write_domain parameters have been removed,
because we already specify them in cs_add_reloc.

The space checking has been tested by putting small values in vram/gart_size
variables.
adeon/drm/Makefile
adeon/drm/SConscript
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_drm_common.c
adeon/drm/radeon_drm_cs.c
adeon/drm/radeon_drm_cs.h
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
f54366bcf61a414885abb9f7f47e897598a80859 07-Jan-2011 Alex Deucher <alexdeucher@gmail.com> r600g: add support for NI (Northern Islands) GPUs

This adds support for Barts, Turks, and Caicos asics.
600/drm/r600_drm.c
600/drm/radeon_pciid.c
cd1cf788280a1eb10d54e1a2b8b069ed7b89c724 04-Jan-2011 Christoph Bumiller <e0425955@student.tuwien.ac.at> Merge remote branch 'origin/nvc0'
e179a8bf34022c200deee92d328cb1bae3c3aa4a 22-Dec-2010 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video
2fd718d5609af9066d04a8927dc2933512a43e4a 22-Dec-2010 Henri Verbeet <hverbeet@gmail.com> r600g: r600_new() and r600_delete() are unused.
600/drm/Makefile
600/drm/SConscript
600/drm/r600.c
600/drm/r600_drm.c
341d048e4566af2f5909b2beeb9cd2b3d9a44e34 22-Dec-2010 Alex Deucher <alexdeucher@gmail.com> r600g: remove useless switch statements

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600.c
600/drm/r600_drm.c
f431e0452b33ca9028e07cd85783297df6e87e69 22-Dec-2010 Dave Airlie <airlied@redhat.com> r600g: drop unused code in evergreen.

this code was pretty much duplicated, thanks to Henri Verbeet on irc for
pointing it out.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/evergreen_hw_context.c
2a95542088fbada4ffe5bdd2da90b215cb6a5003 21-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: support B10G10R10A2 render targets only with DRM 2.8.0 or later versions
adeon/drm/radeon_drm_common.c
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
0f68236a2487dbeb0396b996debcda595b0b54a1 19-Dec-2010 Christoph Bumiller <e0425955@student.tuwien.ac.at> Merge remote branch 'origin/master' into nvc0-new
c28debbf6f97cc74e09da8a747d275ab835bdae7 16-Dec-2010 Jakob Bornecrantz <jakob@vmware.com> svga: Remove debug print in winsys
vga/drm/vmw_screen.c
0967d77a9a2a2d1e178e2b747747ba9f9caee3c2 16-Dec-2010 Jakob Bornecrantz <jakob@vmware.com> wrapper: Flush pipe on unmap

For drivers that does DMA transfers instead of mapping directly
w/wrapper/wrapper_sw_winsys.c
8b60bf4e9f37aa1c7bd19fed67ec50aedb9a0bee 15-Dec-2010 Jakob Bornecrantz <jakob@vmware.com> wrapper: Fix width and height given to map and remove uneeded fields
w/wrapper/wrapper_sw_winsys.c
075a807f43331675482d1a407b0f2e125a75edf9 24-Dec-2010 Vinson Lee <vlee@vmware.com> r300g: Remove unnecessary header.
adeon/drm/radeon_drm_common.c
772b25e1f366edc857e77b8c1ccdc5297d82cc41 11-Dec-2010 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video

Conflicts:
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_texture.c
b22c8e8bbcdff7933b0354197c101738c99ea7d0 10-Dec-2010 Jerome Glisse <jglisse@redhat.com> r600g: fix bo size when creating bo from handle

Spoted by Alex Diomin

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_bo.c
af5f7b3260dfe3f0910e5fa6fac1786413eb0f13 09-Dec-2010 Vinson Lee <vlee@vmware.com> r600g: Fix SCons build.
600/drm/SConscript
600/drm/r600_bo.c
15753cf54d57b1ebb0cd41b7dbb8030d23213891 09-Dec-2010 Jerome Glisse <jglisse@redhat.com> r600g: avoid using pb* helper we are loosing previous cpu cycle with it

r600g is up to a point where all small CPU cycle matter and pb* turn
high on profile. It's mostly because pb try to be generic and thus
trigger unecessary check for r600g driver. To avoid having too much
abstraction & too much depth in the call embedded everythings into
r600_bo. Make code simpler & faster. The performance win highly depend
on the CPU & application considered being more important on slower CPU
and marginal/unoticeable on faster one.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/Makefile
600/drm/evergreen_hw_context.c
600/drm/r600.c
600/drm/r600_bo.c
600/drm/r600_bomgr.c
600/drm/r600_drm.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_bo_pb.c
b7617346dcff50a66a10c61b95c33682cf629c9e 07-Dec-2010 Jerome Glisse <jglisse@redhat.com> r600g: fix userspace fence against lastest kernel

R6XX GPU doesn't like to have two partial flush writting
back to memory in row without a prior flush of the pipeline.
Add PS_PARTIAL_FLUSH to flush all work between the CP and
the ES, GS, VS, PS shaders.

Thanks a lot to Alban Browaeys (prahal on irc) for investigating
this issue.

Signed-off-by: Alban Browaeys <prahal@yahoo.com>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_hw_context.c
600/drm/r600d.h
e0d554ab787c6f356d51df4d6266d4deb1199565 06-Dec-2010 Jerome Glisse <jglisse@redhat.com> r600g: remove useless flush map

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_hw_context.c
600/drm/radeon_bo_pb.c
308cfb80f553cf76069e2d75023a44d3b933a399 05-Dec-2010 Henri Verbeet <hverbeet@gmail.com> r600g: Cleanup block bo references in r600_context_fini().
600/drm/r600_hw_context.c
6947e5254889b99bfba7104d15e9526a7bc1cdfa 04-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: cleanup winsys
adeon/drm/Makefile
adeon/drm/SConscript
adeon/drm/radeon_buffer.h
adeon/drm/radeon_drm.c
adeon/drm/radeon_drm.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_drm_buffer.h
adeon/drm/radeon_drm_common.c
adeon/drm/radeon_drm_public.h
adeon/drm/radeon_r300.c
adeon/drm/radeon_r300.h
adeon/drm/radeon_winsys.h
edda44e0dc72302afa04a767772d5d97ab9d9aa6 03-Dec-2010 Jerome Glisse <jglisse@redhat.com> r600g: more indentation fix + warning silencing + dead code removal

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_drm.c
600/drm/r600_priv.h
600/drm/radeon_pciid.c
3ba8843307a909f35f2a04e6be6dcadd760ad82b 03-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: use internal BO handle for add_buffer and write_reloc

Small perf improvement in ipers.

radeon_drm_get_cs_handle is exactly what this commit tries to avoid
in every write_reloc.
adeon/drm/radeon_buffer.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
4c7001462607e6e99e474d6271dd481d3f8f201c 02-Dec-2010 Roland Scheidegger <sroland@vmware.com> gallium: support for array textures and related changes

resources have a array_size parameter now.
get_tex_surface and tex_surface_destroy have been renamed to create_surface
and surface_destroy and moved to context, similar to sampler views (and
create_surface now uses a template just like create_sampler_view). Surfaces
now really should only be used for rendering. In particular they shouldn't be
used as some kind of 2d abstraction for sharing a texture. offset/layout fields
don't make sense any longer and have been removed, width/height should go too.
surfaces and sampler views now specify a layer range (for texture resources),
layer is either array slice, depth slice or cube face.
pipe_subresource is gone array slices (or cube faces) are now treated the same
as depth slices in transfers etc. (that is, they use the z coord of the
respective functions).

Squashed commit of the following:

commit a45bd509014743d21a532194d7b658a1aeb00cb7
Merge: 1aeca28 32e1e59
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Dec 2 04:32:06 2010 +0100

Merge remote branch 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/drivers/i915/i915_resource_texture.c
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/drivers/i915/i915_surface.c

commit 1aeca287a827f29206078fa1204715a477072c08
Merge: 912f042 6f7c8c3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Dec 2 00:37:11 2010 +0100

Merge remote branch 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/state_trackers/vega/api_filters.c
src/gallium/state_trackers/vega/api_images.c
src/gallium/state_trackers/vega/mask.c
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/st_inlines.h
src/gallium/state_trackers/vega/vg_context.c
src/gallium/state_trackers/vega/vg_manager.c

commit 912f042e1d439de17b36be9a740358c876fcd144
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Dec 1 03:01:55 2010 +0100

gallium: even more compile fixes after merge

commit 6fc95a58866d2a291def333608ba9c10c3f07e82
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Dec 1 00:22:26 2010 +0100

gallium: some fixes after merge

commit a8d5ffaeb5397ffaa12fb422e4e7efdf0494c3e2
Merge: f7a202f 2da02e7
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Nov 30 23:41:26 2010 +0100

Merge remote branch 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/state_trackers/vega/api_images.c
src/gallium/state_trackers/vega/vg_context.c

commit f7a202fde2aea2ec78ef58830f945a5e214e56ab
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Nov 24 19:19:32 2010 +0100

gallium: even more fixes/cleanups after merge

commit 6895a7f969ed7f9fa8ceb788810df8dbcf04c4c9
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Nov 24 03:07:36 2010 +0100

gallium: more compile fixes after merge

commit af0501a5103b9756bc4d79167bd81051ad6e8670
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Nov 23 19:24:45 2010 +0100

gallium: lots of compile fixes after merge

commit 0332003c2feb60f2a20e9a40368180c4ecd33e6b
Merge: 26c6346 b6b91fa
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Nov 23 17:02:26 2010 +0100

Merge remote branch 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/auxiliary/gallivm/lp_bld_sample.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_blitter.c
src/gallium/auxiliary/util/u_inlines.h
src/gallium/auxiliary/util/u_surface.c
src/gallium/auxiliary/util/u_surfaces.c
src/gallium/docs/source/context.rst
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/nv50/nv50_state_validate.c
src/gallium/drivers/nvfx/nv04_surface_2d.c
src/gallium/drivers/nvfx/nv04_surface_2d.h
src/gallium/drivers/nvfx/nvfx_buffer.c
src/gallium/drivers/nvfx/nvfx_miptree.c
src/gallium/drivers/nvfx/nvfx_resource.c
src/gallium/drivers/nvfx/nvfx_resource.h
src/gallium/drivers/nvfx/nvfx_state_fb.c
src/gallium/drivers/nvfx/nvfx_surface.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_buffer.c
src/gallium/drivers/r600/r600_context.h
src/gallium/drivers/r600/r600_screen.c
src/gallium/drivers/r600/r600_screen.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c
src/gallium/include/pipe/p_defines.h
src/gallium/state_trackers/egl/common/egl_g3d_api.c
src/gallium/state_trackers/glx/xlib/xm_st.c
src/gallium/targets/libgl-gdi/gdi_softpipe_winsys.c
src/gallium/targets/libgl-gdi/libgl_gdi.c
src/gallium/tests/graw/tri.c
src/mesa/state_tracker/st_cb_blit.c
src/mesa/state_tracker/st_cb_readpixels.c

commit 26c6346b385929fba94775f33838d0cceaaf1127
Author: Roland Scheidegger <sroland@vmware.com>
Date: Mon Aug 2 19:37:21 2010 +0200

fix more merge breakage

commit b30d87c6025eefe7f6979ffa8e369bbe755d5c1d
Merge: 9461bf3 1f1928d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Mon Aug 2 19:15:38 2010 +0200

Merge remote branch 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_rast_priv.h
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_screen_buffer.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_texture.h
src/gallium/drivers/r300/r300_transfer.c
src/gallium/drivers/r600/r600_screen.c
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c
src/gallium/drivers/r600/r600_texture.h
src/gallium/state_trackers/dri/common/dri1_helper.c
src/gallium/state_trackers/dri/sw/drisw.c
src/gallium/state_trackers/xorg/xorg_exa.c

commit 9461bf3cfb647d2301364ae29fc3084fff52862a
Merge: 17492d7 0eaccb3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jul 15 20:13:45 2010 +0200

Merge commit 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/auxiliary/util/u_blitter.c
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_surface.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_transfer.c
src/gallium/tests/trivial/quad-tex.c

commit 17492d705e7b7f607b71db045c3bf344cb6842b3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Jun 18 10:58:08 2010 +0100

gallium: rename element_offset/width fields in views to first/last_element

This is much more consistent with the other fields used there
(first/last level, first/last layer).
Actually thinking about removing the ugly union/structs again and
rename first/last_layer to something even more generic which could also
be used for buffers (like first/last_member) without inducing headaches.

commit 1b717a289299f942de834dcccafbab91361e20ab
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jun 17 14:46:09 2010 +0100

gallium: remove PIPE_SURFACE_LAYOUT_LINEAR definition

This was only used by the layout field of pipe_surface, but this
driver internal stuff is gone so there's no need for this driver independent
layout definition neither.

commit 10cb644b31b3ef47e6c7b55e514ad24bb891fac4
Merge: 5691db9 c85971d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jun 17 12:20:41 2010 +0100

Merge commit 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/docs/source/glossary.rst
src/gallium/tests/graw/fs-test.c
src/gallium/tests/graw/gs-test.c

commit 5691db960ca3d525ce7d6c32d9c7a28f5e907f3b
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jun 17 11:29:03 2010 +0100

st/wgl: fix interface changes bugs

commit 2303ec32143d363b46e59e4b7c91b0ebd34a16b2
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Jun 16 19:42:32 2010 +0100

gallium: adapt code to interface changes...

commit dcae4f586f0d0885b72674a355e5d56d47afe77d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Jun 16 19:42:05 2010 +0100

gallium: separate depth0 and array_size in the resource itself.

These fields are still mutually exclusive (since no 3d array textures exist)
but it ultimately seemed to error-prone to adapt all code accept the new
meaning of depth0 (drivers stick that into hardware regs, calculate mipmap
sizes etc.). And it isn't really cleaner anyway.
So, array textures will have depth0 of 1, but instead use array_size,
3D textures will continue to use depth0 (and have array_size of 1). Cube
maps also will use array_size to indicate their 6 faces, but since all drivers
should just be fine by inferring this themselves from the fact it's a cube map
as they always used to nothing should break.

commit 621737a638d187d208712250fc19a91978fdea6b
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Jun 16 17:47:38 2010 +0100

gallium: adapt code to interface changes

There are still usages of pipe_surface where pipe_resource should be used,
which should eventually be fixed.

commit 2d17f5efe166b2c3d51957c76294165ab30b8ae2
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Jun 16 17:46:14 2010 +0100

gallium: more interface changes

In particular to enable usage of buffers in views, and ability to use a
different pipe_format in pipe_surface.
Get rid of layout and offset parameter in pipe_surface - the former was
not used in any (public) code anyway, and the latter should either be computed
on-demand or driver can use subclass of pipe_surface.
Also make create_surface() use a template to be more consistent with
other functions.

commit 71f885ee16aa5cf2742c44bfaf0dc5b8734b9901
Merge: 3232d11 8ad410d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Mon Jun 14 14:19:51 2010 +0100

Merge commit 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/auxiliary/util/u_box.h
src/gallium/drivers/nv50/nv50_surface.c
src/gallium/drivers/nvfx/nvfx_surface.c
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_transfer.c
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_screen.h
src/gallium/include/pipe/p_state.h

commit 3232d11fe3ebf7686286013c357b404714853984
Author: Roland Scheidegger <sroland@vmware.com>
Date: Mon Jun 14 11:40:04 2010 +0100

mesa/st: adapt to interface changes

still need to fix pipe_surface sharing
(as that is now per-context).
Also broken is depth0 handling - half the code assumes
this is also used for array textures (and hence by extension
of that cube maps would have depth 6), half the code does not...

commit f433b7f7f552720e5eade0b4078db94590ee85e1
Author: Roland Scheidegger <sroland@vmware.com>
Date: Mon Jun 14 11:35:52 2010 +0100

gallium: fix a couple of bugs in interface chnage fixes

commit 818366b28ea18f514dc791646248ce6f08d9bbcf
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:42:11 2010 +0200

targets: adapt to interface changes

Yes even that needs adjustments...

commit 66c511ab1682c9918e0200902039247793acb41e
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:41:13 2010 +0200

tests: adapt to interface changes

Everything needs to be fixed :-(.

commit 6b494635d9dbdaa7605bc87b1ebf682b138c5808
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:39:50 2010 +0200

st: adapt non-rendering state trackers to interface changes

might not be quite right in all places, but they really don't want
to use pipe_surface.

commit 00c4289a35d86e4fe85919ec32aa9f5ffe69d16d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:38:48 2010 +0200

winsys: adapt to interface changes

commit 39d858554dc9ed5dbc795626fec3ef9deae552a0
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:26:54 2010 +0200

st/python: adapt to interface changes

don't think that will work, sorry.

commit 6e9336bc49b32139cec4e683857d0958000e15e3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:26:07 2010 +0200

st/vega: adapt to interface changes

commit e07f2ae9aaf8842757d5d50865f76f8276245e11
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:25:56 2010 +0200

st/xorg: adapt to interface changes

commit 05531c10a74a4358103e30d3b38a5eceb25c947f
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:24:53 2010 +0200

nv50: adapt to interface changes

commit 97704f388d7042121c6d496ba8c003afa3ea2bf3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:24:45 2010 +0200

nvfx: adapt to interface changes

commit a8a9c93d703af6e8f5c12e1cea9ec665add1abe0
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:24:01 2010 +0200

i965g: adapt to interface changes

commit 0dde209589872d20cc34ed0b237e3ed7ae0e2de3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:22:38 2010 +0200

i915g: adapt to interface changes

commit 5cac9beede69d12f5807ee1a247a4c864652799e
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:20:58 2010 +0200

svga: adapt to interface changes

resource_copy_region still looking fishy.
Was not very suited to unified zslice/face approach...

commit 08b5a6af4b963a3e4c75fc336bf6c0772dce5150
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:20:01 2010 +0200

rbug: adapt to interface changes

Not sure if that won't need changes elsewhere?

commit c9fd24b1f586bcef2e0a6e76b68e40fca3408964
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:19:31 2010 +0200

trace: adapt to interface changes

commit ed84e010afc5635a1a47390b32247a266f65b8d1
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:19:21 2010 +0200

failover: adapt to interface changes

commit a1d4b4a293da933276908e3393435ec4b43cf201
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:19:12 2010 +0200

identity: adapt to interface changes

commit a8dd73e2c56c7d95ffcf174408f38f4f35fd2f4c
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:18:55 2010 +0200

softpipe: adapt to interface changes

commit a886085893e461e8473978e8206ec2312b7077ff
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:18:44 2010 +0200

llvmpipe: adapt to interface changes

commit 70523f6d567d8b7cfda682157556370fd3c43460
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:18:14 2010 +0200

r600g: adapt to interface changes

commit 3f4bc72bd80994865eb9f6b8dfd11e2b97060d19
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:18:05 2010 +0200

r300g: adapt to interface changes

commit 5d353b55ee14db0ac0515b5a3cf9389430832c19
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:17:37 2010 +0200

cell: adapt to interface changes

not even compile tested

commit cf5d03601322c2dcb12d7a9c2f1745e2b2a35eb4
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:14:59 2010 +0200

util: adapt to interface changes

amazing how much code changes just due to some subtle interface changes?

commit dc98d713c6937c0e177fc2caf23020402cc7ea7b
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:12:40 2010 +0200

gallium: more interface fail, docs

this also changes flush_frontbuffer to use a pipe_resource instead of
a pipe_surface - pipe_surface is not meant to be (or at least no longer)
an abstraction for standalone 2d images which get passed around.
(This has also implications for the non-rendering state-trackers.)

commit 08436d27ddd59857c22827c609b692aa0c407b7b
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jun 10 17:42:52 2010 +0200

gallium: fix array texture interface changes bugs, docs

commit 4a4d927609b62b4d7fb9dffa35158afe282f277b
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jun 3 22:02:44 2010 +0200

gallium: interface changes for array textures and related cleanups

This patch introduces array textures to gallium (note they are not immediately
usable without the associated changes to the shader side).
Also, this abandons pipe_subresource in favor of using level and layer
parameters since the distinction between several faces (which was part of
pipe_subresource for cube textures) and several z slices (which were not part
of pipe_subresource but instead part of pipe_box where appropriate for 3d
textures) is gone at the resource level.
Textures, be it array, cube, or 3d, now use a "unified" set of parameters,
there is no distinction between array members, cube faces, or 3d zslices.
This is unlike d3d10, whose subresource index includes layer information for
array textures, but which considers all z slices of a 3d texture to be part
of the same subresource.
In contrast to d3d10, OpenGL though reuses old 2d and 3d function entry points
for 1d and 2d array textures, respectively, which also implies that for instance
it is possible to specify all layers of a 2d array texture at once (note that
this is not possible for cube maps, which use the 2d entry points, although
it is possible for cube map arrays, which aren't supported yet in gallium).
This should possibly make drivers a bit simpler, and also get rid of mutually
exclusive parameters in some functions (as z and face were exclusive), one
potential downside would be that 3d array textures could not easily be supported
without reverting this, but those are nowhere to be seen.

Also along with adjusting to new parameters, rename get_tex_surface /
tex_surface_destroy to create_surface / surface_destroy and move them from
screen to context, which reflects much better what those do (they are analogous
to create_sampler_view / sampler_view_destroy).

PIPE_CAP_ARRAY_TEXTURES is used to indicate if a driver supports all of this
functionality (that is, both sampling from array texture as well as use a range
of layers as a render target, with selecting the layer from the geometry shader).
965/xlib/xlib_i965.c
w/wrapper/wrapper_sw_winsys.c
f6476822a0b1a85a8b60363b0d3bb85f0b54c395 01-Dec-2010 Chris Wilson <chris@chris-wilson.co.uk> i915g: Fix closure of full batch buffers

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: incorporate comments by Dr_Jakob]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
915/drm/i915_drm_batchbuffer.c
2ff0879a6365e7f7d7e5277274bc965ad57a82b4 21-Nov-2010 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: return tiling in iws->buffer_from_handle

This is needed to properly implement tiling flags. And the gem
implemention fo buffer_from_handle already calls get_tiling, so
it's for free.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
915/drm/i915_drm_buffer.c
135b083461f8a5a220d86f57af018f6f0316d2bb 21-Nov-2010 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: prepare winsys/batchbuffer for execbuf2

Wire up a fenced parameter, switch all relocations to _FENCED

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
915/drm/i915_drm_batchbuffer.c
915/drm/i915_drm_winsys.c
915/sw/i915_sw_batchbuffer.c
1c608403383f3c31e19b70c578ac66443f259967 21-Nov-2010 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: switch to tiled allocations, kill set_fence

This way relaxed fencing is handled by libdrm. And buffers _can't_
ever change their tiling.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
915/drm/i915_drm_buffer.c
915/sw/i915_sw_buffer.c
4a666488c4e3067eed984e272149411cc2198c77 21-Nov-2010 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: add winsys function to create tiled buffers

Different kernels have different restrictions for tiled buffers.
Hence use the libdrm abstraction to calculate the necessary
stride and height alignment requirements.

Not yet used.

v2: Incorporate review comments from Jakob Bornecrantz

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
915/drm/i915_drm_buffer.c
915/sw/i915_sw_buffer.c
915/sw/i915_sw_winsys.h
c62f5c7e7bc3ed84677805b3800fbcfa93c419ea 21-Nov-2010 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: drop alignment parameter from iws->buffer_create

It's unnecessary. The kernel gem ignores it totally and we can't
run on the old userspace fake bo manager due to lack of dri2.

Also drop the redundant name string from the sw winsys as suggested
by Jakob Bornecrantz

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
915/drm/i915_drm_buffer.c
915/sw/i915_sw_buffer.c
915/sw/i915_sw_winsys.h
3b5a3fd8d1f1171f99b46f99f9140eff8204df4f 24-Nov-2010 Dave Airlie <airlied@redhat.com> r300g/r600g: bump cache manager timeouts to 1s

On lightsmark on my r500 this drop the bufmgr allocations of the sysprof.
600/drm/r600_drm.c
adeon/drm/radeon_r300.c
ed8b5fb24e098c97a7618a76aab783883f331625 23-Nov-2010 Alex Deucher <alexdeucher@gmail.com> gallium/egl: fix r300 vs r600 loading

Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=31841
adeon/drm/radeon_drm.h
0e4c5f63b9023b292b88b2f0d5d0f6154e8ad263 22-Nov-2010 Alex Deucher <alexdeucher@gmail.com> r600g: add support for ontario APUs

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600.c
600/drm/r600_drm.c
600/drm/radeon_pciid.c
271b7b5914d4ec0ddb93b469f618c4b69c1e5e69 22-Nov-2010 Alex Deucher <alexdeucher@gmail.com> r600g: fix some winsys functions to deal properly with evergreen

Are these functions actually used anywhere?
600/drm/r600.c
600/drm/radeon_pciid.c
bf9c80976fdd6bcbd29c959f6313115b2b07f5df 22-Nov-2010 Alex Deucher <alexdeucher@gmail.com> r600g: fix additional EVENT_WRITE packet

Add explicit EVENT_TYPE field
600/drm/evergreen_hw_context.c
e6b71530daea3059ee362d4df51575e27e026b22 21-Nov-2010 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video

Conflicts:
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/SConscript
c8fca58d9d5b3f25cb1ac2056ac2b437b79c04ee 19-Nov-2010 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: kill idws->pool

The drm winsys only ever handles one gem memory manager. Rip out
the unnecessary complication.

Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
915/drm/i915_drm_batchbuffer.c
915/drm/i915_drm_buffer.c
915/drm/i915_drm_winsys.c
915/drm/i915_drm_winsys.h
e18261885334522bcb2cce6e4a2ac7c509a7e3c0 19-Nov-2010 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: kill buf->map_gtt

Not using the gtt is considered harmful for performance. And for
partial uploads there's always drm_intel_bo_subdata.

Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
915/drm/i915_drm_buffer.c
915/drm/i915_drm_winsys.h
f609b2ab0342d77a8beca9efb5fbc5b66ff98295 18-Nov-2010 Jerome Glisse <jglisse@redhat.com> r600g: add fetch shader capabilities

Use fetch shader instead of having fetch instruction in the vertex
shader. Allow to restrict shader update to a smaller part when
vertex buffer input layout changes.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
3e76ed4e256dd7964deaf37b89220c775fd2891e 19-Nov-2010 Alex Deucher <alexdeucher@gmail.com> r600g: All EVENT_WRITE packets need the EVENT_INDEX field

6xx-evergreen
600/drm/r600_hw_context.c
600/drm/r600d.h
fab804bdfeb0b8080b7ee52d4d79f0ef0e548d1f 19-Nov-2010 Jerome Glisse <jglisse@redhat.com> r600g: fix occlusion query on evergreen (avoid lockup)

Occlusion query on evergreen need the event index field to be
set otherwise we endup locking up the GPU.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_hw_context.c
600/drm/r600d.h
a23f25eba1fb8919a29efb88ef9e351abcc65b2e 18-Nov-2010 Alex Deucher <alexdeucher@gmail.com> r600g: fix buffer alignment

This should fix the remaining buffer alignment issues in r600g.
600/drm/r600_drm.c
da8c8777332239ec05ccd495bedea105b52a8d96 15-Nov-2010 Henri Verbeet <hverbeet@gmail.com> r600g: Cleanup the fenced_bo list in r600_context_fini().
600/drm/r600_hw_context.c
4c2247538394a313e1e90bfcd07c1ab9c7d41281 12-Nov-2010 Christoph Bumiller <e0425955@student.tuwien.ac.at> nvc0: import nvc0 gallium driver
ouveau/drm/nouveau_drm_winsys.c
195bbe8ce218533569dde1368d04da0fd229913d 11-Nov-2010 Christian König <deathsimple@vodafone.de> Merge remote branch 'origin/master' into pipe-video
8e0230a85cf942aaae06b0295893def6a3e0f725 10-Nov-2010 Jerome Glisse <jglisse@redhat.com> r600g: allow driver to work without submitting cmd to GPU

For driver performance analysis it usefull to be able to
disable as much as possible the GPU interaction so that
one can profile the userspace only.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_hw_context.c
9a04eca2f865dc3eca31b34ae570cd489b18c240 10-Nov-2010 Keith Whitwell <keithw@vmware.com> ws/r600: match bo_busy shared/fence logic in bo_wait

Fixes crash in piglit depthrange-clear.
600/drm/radeon_bo.c
520140a6c9b3da38673946a84ed0c3d8864025e1 09-Nov-2010 Vinson Lee <vlee@vmware.com> winsys/xlib: Add cygwin to SConscript.

Fixes SCons NameError exception on Cygwin.
w/xlib/SConscript
46c19700676e17bfaa0a88346d512449fbeede79 03-Nov-2010 Benjamin Franzke <benjaminfranzke@googlemail.com> r600g: implement texture_get_handle (needed for eglExportDRMImageMESA)
600/drm/r600_bo.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
b4ac0adb75bddc1c17c57eb19c7e6dde52e4b7e7 04-Nov-2010 Jakob Bornecrantz <jakob@vmware.com> scons: Detabify

Drivers scons files for a later time
vga/drm/SConscript
c3974dc837b4a11a30603bb00fa1d346e721af59 17-Oct-2010 Keith Whitwell <keithw@vmware.com> r600g: set hardware pixel centers according to gl_rasterization_rules

These were previously being left in the default (D3D) mode. This mean
that triangles were drawn slightly incorrectly, but also because this
state is relied on by the u_blitter code, all blits were half a pixel
off.
600/drm/r600_hw_context.c
600/drm/r600d.h
29c4a15bf61a76cd71ffa5b8f09706d0eab84281 02-Nov-2010 Keith Whitwell <keithw@vmware.com> r600g: propogate resource usage flags to winsys, use to choose bo domains

This opens the question of what interface the winsys layer should
really have for talking about these concepts.

For now I'm using the existing gallium resource usage concept, but
there is no reason not use terms closer to what the hardware
understands - eg. the domains themselves.
600/drm/r600_bo.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
907efeea18efcbb037f19de9eb563a355c92affb 31-Oct-2010 Tilman Sauerbeck <tilman@code-monkey.de> r600g: Fixed two memory leaks in winsys.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
600/drm/r600_hw_context.c
86778dadc54051d7b97bb542ae465a31225a717d 29-Oct-2010 Tilman Sauerbeck <tilman@code-monkey.de> r600g: Made radeon_bo::map_count signed.

That way assert(map_count >= 0) can actually fail when we screwed up.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
600/drm/r600_priv.h
34e75b0ca80011023c416831283fcce716b980b2 29-Oct-2010 Tilman Sauerbeck <tilman@code-monkey.de> r600g: Fixed unmap condition in radeon_bo_pb_destroy().

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
600/drm/radeon_bo_pb.c
b675266f0e144fd8cd08600c72a8207ce50b25e8 29-Oct-2010 Tilman Sauerbeck <tilman@code-monkey.de> r600g: Made radeon_bo_pb_map_internal() actually call radeon_bo_map().

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>
600/drm/radeon_bo_pb.c
4e34393162660a8429ef33e6ec48cfdd01090d70 28-Oct-2010 Tilman Sauerbeck <tilman@code-monkey.de> r600g: Removed unused 'ptr' argument from radeon_bo().

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
600/drm/r600_priv.h
600/drm/radeon_bo.c
600/drm/radeon_bo_pb.c
601498ae73e654c2de997ea75075613a694d604d 01-Nov-2010 José Fonseca <jfonseca@vmware.com> scons: Revamp how to specify targets to build.

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.
Conscript
41ed47d6b8fb6c032e2907ef2e49e414c26f35c1 28-Oct-2010 Christian König <deathsimple@vodafone.de> Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into pipe-video

Conflicts:
src/gallium/include/pipe/p_format.h
c6b10cd986c53f1a99a90f32a66d5058f1d1a3eb 23-Oct-2010 Tilman Sauerbeck <tilman@code-monkey.de> r600g: In radeon_bo(), call LIST_INITHEAD early.

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>
600/drm/radeon_bo.c
ba9caba9c8b8d469dbdff677274d574b9051bc45 23-Oct-2010 Christian König <deathsimple@vodafone.de> Some more merge fixes
3dvl/dri/dri_winsys.c
39c742fe2a25e925a2c4c42b1e654b72ea319b28 22-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: not fatal if we can't get tiling info from kernel
600/drm/r600_drm.c
aa86c7657cdedb4b045c54afe0927f52aa0cd6bb 22-Oct-2010 Brian Paul <brianp@vmware.com> winsys/xlib: rename xm->xlib

Move away from the old Mesa-oriented names.
w/xlib/xlib_sw_winsys.c
3bc6fe371cf6a5f75ff11b840e289ff8084f5d7b 22-Oct-2010 Brian Paul <brianp@vmware.com> winsys/xlib: fix up allocation/dealloction of XImage

Fixes a crash upon exit when using remote display.
w/xlib/xlib_sw_winsys.c
4d24f01cb38bbf5d7a47786a1586f8a77360d2d9 22-Oct-2010 Brian Paul <brianp@vmware.com> winsys/xlib: use Bool type for shm field
w/xlib/xlib_sw_winsys.c
e3298eaf52a9ab4eb7ec854a82a285dee4f87118 22-Oct-2010 Brian Paul <brianp@vmware.com> winsys/xlib: formatting fixes
w/xlib/xlib_sw_winsys.c
8a74f7422bedb419f3527bb1ccd60e1e9220502c 18-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: retrieve tiling info from kernel for shared buffers.

we need to know if the back is tiled so we can blit from it properly.
600/drm/r600_bo.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
7b3fa038830663de9bceded1b0dd2d64b8cf39c4 08-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: get tiling info from kernel
600/drm/r600.c
600/drm/r600_drm.c
600/drm/r600_priv.h
b13a0af510b71e86f9634dc959dc355ea7044674 16-Oct-2010 Christian König <deathsimple@vodafone.de> Fix problems created by Merge
3dvl/xlib/xsp_winsys.c
44207ff71b3d53b30cf6c3e52c84ddc5cd44b424 15-Oct-2010 Jakob Bornecrantz <jakob@vmware.com> wrapper: Add a way to dewrap a pipe screen without destroying it
w/wrapper/wrapper_sw_winsys.c
w/wrapper/wrapper_sw_winsys.h
f8f3baa43a3954b7078e5e24b41ae123f398bff8 15-Oct-2010 Jakob Bornecrantz <jakob@vmware.com> wrapper: Fix spelling
w/wrapper/wrapper_sw_winsys.c
w/wrapper/wrapper_sw_winsys.h
cbf2fb55432b8239ea9792338ee1d2fea89648ea 14-Oct-2010 Keith Whitwell <keithw@vmware.com> r600/drm: fix segfaults in winsys create failure path

Would try to destroy radeon->cman, radeon->kman both which were still
NULL.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_drm.c
695cc370a280a637f411f5ff3877b3fd1c05e424 12-Oct-2010 Christian König <deathsimple@vodafone.de> Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into pipe-video

Conflicts:
configure.ac
src/gallium/drivers/nvfx/Makefile
src/gallium/include/pipe/p_defines.h
src/gallium/include/pipe/p_screen.h
src/gallium/include/state_tracker/dri1_api.h
src/gallium/include/state_tracker/drm_api.h
src/gallium/winsys/nouveau/drm/nouveau_drm_api.c
3b16c591a4b0b8477874290bbe19333f9524b8c2 08-Oct-2010 Vinson Lee <vlee@vmware.com> r600g: Silence uninitialized variable warning.
600/drm/evergreen_hw_context.c
36b65a373adc88650e4a2ad8d99642a569b7662a 08-Oct-2010 Vinson Lee <vlee@vmware.com> r600g: Silence uninitialized variable warning.
600/drm/r600_hw_context.c
131485efae3e919c2ba619eb087931f402c219f1 08-Oct-2010 Vinson Lee <vlee@vmware.com> r600g: Silence uninitialized variable warning.
600/drm/r600_hw_context.c
1f01f5cfcf6bb30d8c1d616019cbeb9700cd1e80 08-Oct-2010 Vinson Lee <vlee@vmware.com> r600g: Remove unnecessary header.
600/drm/radeon_bo.c
3fabd218a0ffe1aa362440d957cf9135955045a3 06-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: fix dirty state handling

Avoid having object ending up in dead list of dirty object.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
1644bb0f40800169a3402f08b8f8a2758e90efee 06-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: avoid segfault due to unintialized list pointer

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
ea5a74fb5892c9b6ca62054be2ee83a743103f4c 05-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: userspace fence to avoid kernel call for testing bo busy status

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/r600d.h
600/drm/radeon_bo.c
2cf3199ee3b0014bc426bc3163dfa279c00eabb3 05-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: simplify block relocation

Since flush rework there could be only one relocation per
register in a block.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_hw_context.c
600/drm/r600_priv.h
ac8a1ebe55b08180945ffaebcff6b3bed336c9ec 05-Oct-2010 Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> r600g: use dirty list to track dirty blocks

Got a speed up by tracking the dirty blocks in a seperate list instead of looping through all blocks. This version should work with block that get their dirty state disabled again and I added a dirty check during the flush as some blocks were already dirty.
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
585e4098aa0cb68a2cfce55ced5c585bd20aba24 05-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: improve bo flushing

Flush read cache before writting register. Track flushing inside
of a same cs and avoid reflushing same bo if not necessary. Allmost
properly force flush if bo rendered too and then use as a texture
in same cs (missing pipeline flush dunno if it's needed or not).

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
12d16e5f14237d86315bf5a5d6a7cf0619a7334e 05-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: store reloc information in bo structure

Allow fast lookup of relocation information & id which
was a CPU time consumming operation.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_hw_context.c
600/drm/r600_priv.h
12be1568d0ad648930a2bb04a10b3181061fa468 05-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: avoid unneeded bo wait

if we know the bo has gone not busy, no need to add another bo wait

thanks to Andre (taiu) on irc for pointing this out.
600/drm/radeon_bo_pb.c
d2c06b5037fe9282cbbc0c7acd84a1b286716507 05-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: drop use_mem_constant.

since we plan on using dx10 constant buffers everywhere.
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
46997d4fc27e62a1c479f25f5f441b95e6d5cb64 05-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: drop mman allocator

we don't use this since constant buffers are now being used on all gpus.
600/drm/r600_bo.c
600/drm/r600_drm.c
600/drm/r600_priv.h
05813ad5f440a33cc7e222982a120f62028aa887 05-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: add bo busy backoff.

When we go to do a lot of bos in one draw like constant bufs we need
to avoid bouncing off the busy ioctl, this mitigates by backing off
on busy bos for a short amount of times.
600/drm/r600_priv.h
600/drm/radeon_bo.c
3c38e4f138a183ee5ad625ea34b1ec7dd815026f 05-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: add bo fenced list.

this just keeps a list of bos submitted together, and uses them to decide
bo busy state for the whole group.
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_bo.c
a0a8e2438587c606411060a052da8da119014a20 05-Oct-2010 Vinson Lee <vlee@vmware.com> r600g: Fix SCons build.
600/drm/SConscript
b25c52201bae6d38c809f0d63f4fb287bf69d05a 04-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: remove dead label & fix indentation

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/radeon_bo.c
243d6ea6091514f04bf3c23f1957665cf25ae6eb 04-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: rename radeon_ws_bo to r600_bo

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/Makefile
600/drm/r600_bo.c
600/drm/radeon_ws_bo.c
674452faf98d6f107c42bcb0c56a2a6ac6890023 04-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: use r600_bo for relocation argument, simplify code

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_ws_bo.c
d22a1247d8a709cf433a6dd99b2f87a224c27d88 04-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: allow r600_bo to be a sub allocation of a big bo

Add bo offset everywhere needed if r600_bo is ever a sub bo
of a bigger bo.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
294c9fce1b924beddf198a3cce738b88eabb5537 04-Oct-2010 Jerome Glisse <jglisse@redhat.com> r600g: rename radeon_ws_bo to r600_bo

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
600/drm/radeon_ws_bo.c
3d45d57044507506ca834a4bf983422549c5240a 04-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: TODO domain management

no wonder it was slow, the code is deliberately forcing stuff into GTT,
we used to have domain management but it seems to have disappeared.
600/drm/r600_hw_context.c
1c2b3cb1e933dc55af57310a567fa7c418dbee9c 04-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: fix wwarning in bo_map function
600/drm/r600_priv.h
92aba9c1f54b2681aed11f572f74bda941f19a54 04-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: break out of search for reloc bo after finding it.

this function was taking quite a lot of pointless CPU.
600/drm/r600_hw_context.c
738aa29289296512959cbb37d8602131dae44dab 01-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: setup basic loop consts on r600 + evergreen.

this sets up a single loop constant like r600c does.
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
539a2978ed7f8d1756591061252d081f0f39fb9c 01-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: flush SH cache on constant change on evergreen
600/drm/evergreen_hw_context.c
b67aa5311fa5d4130cf150c9004946fb30a15fae 01-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: fix evergreen draw-buffers

just a typo in the register headers.
600/drm/evergreen_hw_context.c
14c95bb4eec4417887ae882c39fead47624f0fda 01-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: add cb flushing for extra buffers + depth buffer on r600/evergreen
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
ac225c76a6a7c98d7e9afa50880db2480be6951f 01-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: sync vertex/texture cache on resources on evergreen

this gets rid of lots of the instability on evergreen,
which isn't surprising since it really broken not to flush caches.
600/drm/evergreen_hw_context.c
5eccdc62b998a6b3a82d9fd204db733d4852fc73 01-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: add reloc for evergreen color attrib

we'll need this for color tiling on evergreen.
600/drm/evergreen_hw_context.c
05d1d86907b12011fdb80e147ae68b4cd207f789 01-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: add winsys support for CTL constants.

These need to be emitted, we also need them to do proper vtx start,
instead of abusing index offset.
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600d.h
7ae4da8056c5aa6b65dc06fb8a0d0785123938db 01-Oct-2010 Dave Airlie <airlied@redhat.com> r600g: use Elements macro instead of manual sizeofs
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
40181aef6045af9df9d8baa8910210c0c8f84f46 30-Sep-2010 John Doe <glisse@barney.(none)> r600g: keep a mapping around for each bo

Save a lot of call into the kernel and thus improve performances.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_priv.h
600/drm/radeon_bo.c
dde1391cc95478f4dedccdf920ba0a6607472937 30-Sep-2010 John Doe <glisse@barney.(none)> r600g: don't double count dirty block

This avoid to overcount the number of dwords we need and
thus avoid maximazation of cs buffer use.

Signed-off-by: Jerome Glisse <jglisse@redhat.com
600/drm/evergreen_hw_context.c
600/drm/r600_hw_context.c
600/drm/r600_priv.h
113f1cdfcedf858e4b426ce2dba9e99d2a1e0286 30-Sep-2010 Jerome Glisse <jglisse@redhat.com> evergreeng: avoid overlapping border color btw VS & PS

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_hw_context.c
153105cfbfd8d6ff30de144605016f6e4f2a1b9e 30-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: use constant buffer instead of register for constant

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_hw_context.c
600/drm/r600d.h
3f28dbd9bb78f03681005cafa115008595b3c27d 30-Sep-2010 Nicolas Kaiser <nikai@nikai.net> gallium/winsys: remove duplicated include

Remove duplicated include.

Signed-off-by: Brian Paul <brianp@vmware.com>
vga/drm/vmw_screen_dri.c
dbcd6526021c50770c3e5e04b04dc64c70298124 30-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: clean up some code from move to new paths.

mainly remove 2 suffix from function names
600/drm/r600_hw_context.c
600/drm/r600_priv.h
38c31de445c45b59824dac097ad0f93e46a64b77 29-Sep-2010 Vinson Lee <vlee@vmware.com> r600g: Fix SCons build.
600/drm/SConscript
6abd7771c6ab2c733b20835e211060dd18fd847d 29-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: more cleanup

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/Makefile
600/drm/evergreen_hw_context.c
600/drm/evergreen_state.c
600/drm/r600_drm_public.h
600/drm/r600_hw_context.c
600/drm/r600_state2.c
7e536371f901e97cb4d73c6662f79a904c943e17 29-Sep-2010 Vinson Lee <vlee@vmware.com> r600g: Update SConscript.

Fixes SCons build.
600/drm/SConscript
1235becaa1cf7e29f580900592563c3329d326de 29-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: cleanup

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_state.c
600/drm/r600_drm.c
600/drm/r600_priv.h
600/drm/r600_state2.c
600/drm/radeon_bo.c
600/drm/radeon_bo_pb.c
600/drm/radeon_pciid.c
600/drm/radeon_priv.h
600/drm/radeon_ws_bo.c
9c284b5cae916a083d17d1039d2f2da128b47882 29-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: delete old path

Lot of clean can now happen.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/Makefile
600/drm/eg_states.h
600/drm/gen_eg_states.py
600/drm/gen_r600_states.py
600/drm/r600_drm.c
600/drm/r600_state.c
600/drm/r600_states.h
600/drm/radeon.c
600/drm/radeon_ctx.c
600/drm/radeon_draw.c
600/drm/radeon_state.c
5646964b1360883b6254e2ebacc198f43869d36f 28-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: use a hash table instead of group

Instead of creating group of register use a hash table
to lookup into which block each register belongs. This
simplify code a bit.

Signed-off-by: Jerome Glisse <jglisse@redhat.com
600/drm/evergreen_state.c
600/drm/r600.c
600/drm/r600_priv.h
600/drm/r600_state2.c
301ab49605e6f3456f437fc2f1b2b141a83a46fc 29-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: move radeon.h members around to add back map flushing.
600/drm/r600_priv.h
600/drm/r600_state2.c
600/drm/radeon_priv.h
fe790a3c346b5edb8b64cfc937b0d5cd9e337412 28-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: suspend/resume occlusion query around clear/copy

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_state2.c
0282682e98561b8f0c6e8bd1b70b80ea00296e08 27-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: fix occlusion query after change to block structure

block->reg point to register value not block->pm4 which point
to packet.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_priv.h
1617daaf496573eba70b35a760183b427adeff1b 27-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: fix pointsprite & resource unbinding

When asking to bind NULL resource assume it's unbinding
so free resource and unreference assoicated buffer.
Also fix pointsprite parameter.

Fix glsl-fs-pointcoord & fp-fragment-position

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_state.c
600/drm/r600_state2.c
99c422ef5ab3924aad66af026945f491d75d226f 27-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: build packet header once

Build packet header once and allow to add fake register support so
we can handle things like indexed set of register (evergreen sampler
border registers for instance.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_state.c
600/drm/r600_state2.c
7eab5ef425e1e08c0dc0ea8d161c33610a91586f 27-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: add evergreen texture resource properly.

adding sampler border looks impossible with current design, another day, another corner case not worked out.
600/drm/evergreen_state.c
16baa465a249cc9a382fa2834ec6133561d0a562 26-Sep-2010 Joakim Sindholt <opensource@zhasha.com> radeong: fix leaks
adeon/drm/radeon_r300.c
a852615946b98de2d832d4907f09649803577db7 26-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: disable early cull optimization when occlusion query running

When occlusion query are running we want to have accurate
fragment count thus disable any early culling optimization
GPU has.

Based on work from Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_state.c
600/drm/r600_priv.h
600/drm/r600_state2.c
600/drm/r600d.h
6f16e497af9bf5938541d2088e91cc79f1641a19 26-Sep-2010 Vinson Lee <vlee@vmware.com> r600g: Include p_compiler.h instead of malloc.h.
600/drm/radeon_ws_bo.c
15f16328be41a5804151c30866a2bc329fc4369a 26-Sep-2010 Vinson Lee <vlee@vmware.com> r600g: Remove unused variables.

Fixes these GCC warnings.
radeon.c: In function 'radeon_new':
radeon.c:59: warning: unused variable 'k'
radeon.c:59: warning: unused variable 'j'
radeon.c:59: warning: unused variable 'id'
radeon.c:59: warning: unused variable 'i'
600/drm/radeon.c
51bfd4e34a259243ce60915944d2c37204934620 26-Sep-2010 Vinson Lee <vlee@vmware.com> r600g: Don't return a value in function returning void.

Fixes this GCC warning.
radeon_state.c: In function 'radeon_state_fini':
radeon_state.c:140: warning: 'return' with a value, in function returning void
600/drm/radeon_state.c
048bda175b07d48cd8660eb43b37af5ac8a732d2 26-Sep-2010 Vinson Lee <vlee@vmware.com> r600g: Remove unused variable.

Fixes this GCC warning.
radeon_bo_pb.c: In function 'radeon_bo_pb_create_buffer':
radeon_bo_pb.c:178: warning: unused variable 'domain'
600/drm/radeon_bo_pb.c
b6469a8dc712f550bafef624f854f265c5c8360f 25-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: add eg db count control register.
600/drm/eg_states.h
6613605d79bc84043e74c7eefe8025c2c7c4978b 24-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: bring over fix from old path to new path

Up to 2010-09-19:
r600g: fix tiling support for ddx supplied buffers
9b146eae2521d8e5f6d3cbefa4f6f7737666313a

user buffer seems to be broken... new to fix that.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_state2.c
3ad4486bfeea0d38f0789431e5e8fc1e6579e3aa 24-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: fix evergreen new path

glxgears seems to work, had somelockup but now they seems to have vanish.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_state.c
ba7e6ccc95a4e39cd15ca03573b2f6d6f8c9f539 24-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: fix evergreen new path

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_state.c
600/drm/r600_state2.c
eff1af65afb479b3719d8fa2bed97b76d6dee768 24-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: evergreen fix for new design

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/evergreen_state.c
600/drm/r600_priv.h
600/drm/r600_state2.c
cb3aed80db05120767fb9122125723a9b1600e11 24-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: move use_mem_constants flags for new designs structure alignment

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/radeon_priv.h
3672bc14afe14334046589c869eb9ee7f5cfd137 24-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: fix typo in evergreen define (resource are in [0x30000;0x34000] range)

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600d.h
a333485386c66672fc34813c77c1400516c56ee5 23-Sep-2010 Marek Olšák <maraeo@gmail.com> r300g: make accessing map_list and buffer_handles thread-safe

NOTE: This is a candidate for the 7.9 branch.
adeon/drm/radeon_drm_buffer.c
206d92912cfd1ac73233d9c027fa590b60270cb8 23-Sep-2010 Marek Olšák <maraeo@gmail.com> r300g: fixup long-lived BO maps being incorrectly unmapped when flushing

Based on commit 3ddc714b20ac4e28b80c6f88d1993445fff2262c by Dave Airlie.

NOTE: This is a candidate for the 7.9 branch.
adeon/drm/radeon_drm_buffer.c
b360c050b60a578ce6c75cbc872dd54999b3f6c5 22-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: initial evergreen support in new path

This doesn't work yet.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/Makefile
600/drm/evergreen_state.c
600/drm/r600_state2.c
fa11c400d0bce7b1373312a224cd4daf4c1bda8a 23-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: fix typo in evergreen register list

pointed out by glisse on irc.
600/drm/eg_states.h
b8835a3992edb7b01712ea83b5729ef0f6f94e4f 22-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: disable shader rebuild optimization & account cb flush packet

Shader rebuild should be more clever, we should store along each
shader all the value that change shader program rather than using
flags in context (ie change sequence like : change vs buffer, draw,
change vs buffer, switch shader will trigger useless shader rebuild).

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_state2.c
1abe48afbe5ba894f6c160e830c04288bb2913b4 22-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: flush color buffer after draw command

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_state2.c
feb9c8c510f2deb1267b17bc10a4aff49e482630 22-Sep-2010 Luca Barbieri <luca@luca-barbieri.com> winsys: automatically build sw winsys needed by EGL and d3d1x

A cleaner solution would be preferable, but this does no harm and works.
w/Makefile
ca35292a4456fec1c584d40bf9b4197fe733f609 22-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: occlusion query for new design

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_priv.h
600/drm/r600_state2.c
6048be89697fe27e30ef0f45594daba4e896362c 21-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: directly allocate bo for user buffer

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_state2.c
600/drm/radeon_priv.h
88934273776242878dbaabdae25a7027fdeaff05 21-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: fix eg texture borders.

texture border regs are indexed on evergreen.
600/drm/eg_states.h
600/drm/r600_state.c
4fc5050f82a6b59a86370f44c64e7592ff621f6f 20-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: add back reference check when mapping buffer

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/radeon_bo_pb.c
0f099f2906773690210661fb533e207626dc8e40 20-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: use pipe context for flushing inside map

This allow to share code path btw old & new, also
remove check on reference this might make things
a little slower but new design doesn't use reference
stuff.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/radeon_bo_pb.c
363dfb83f1ca7f1ab09eec30aeb89732c5ce3e02 20-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: move chip class to radeon common structure

So texture code can be shared btw new state design
& old one.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600.c
600/drm/r600_priv.h
600/drm/radeon.c
600/drm/radeon_priv.h
f4020c66fd4ad28f27077238c7080c12bd5fa733 20-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: only flush for the correct colorbuffer, not all of them.
600/drm/r600_state.c
b110ddd9a95cfcd910900154af6f58e32e419f40 20-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: fixup r700 CB_SHADER_CONTROL register.

r600c emits this with a mask of each written output.
600/drm/r600_states.h
9b146eae2521d8e5f6d3cbefa4f6f7737666313a 20-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: fix tiling support for ddx supplied buffers

needed to emit some more relocs to the kernel.
600/drm/r600_states.h
3d12c207d7f9f1d25a0ee7f1bf94ce9a7f70dff3 20-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: send correct surface base update for multi-cbufs
600/drm/r600_state.c
0f9181811fc0e2943b156acc4d43f2da8a4846d1 19-Sep-2010 Henri Verbeet <hverbeet@gmail.com> r600g: Respect PB_USAGE_UNSYNCHRONIZED in radeon_bo_pb_map_internal().
600/drm/radeon_bo_pb.c
affd46cc2bb327490fbc6a96f936dccf82d4996d 19-Sep-2010 Henri Verbeet <hverbeet@gmail.com> r600g: Buffer object maps imply a wait.

Unless e.g. PB_USAGE_DONTBLOCK or PB_USAGE_UNSYNCHRONIZED would be specified.
600/drm/radeon_bo_pb.c
600/drm/radeon_ws_bo.c
b68030e9f8211e5905c81b4c7f8de5780f48b655 19-Sep-2010 Henri Verbeet <hverbeet@gmail.com> r600g: Check for other references before checking for existing mappings in radeon_bo_pb_map_internal().

Having a non-NULL data pointer doesn't imply it's safe to reuse that mapping,
it may have been unmapped but not flushed yet.
600/drm/radeon_bo_pb.c
d74a8da2cbc7bde71083bb33f1c5b528a7eb6b31 17-Sep-2010 Vinson Lee <vlee@vmware.com> r600g: Silence uninitialized variable warning.
600/drm/radeon_bo_pb.c
2da46949551ddf8489d823a7f25505b1805f7aee 17-Sep-2010 Vinson Lee <vlee@vmware.com> r600g: Fix memory leak on error path.
600/drm/r600_state2.c
d56e46577e674f8068f44a2c77a5a0a42d733068 17-Sep-2010 Vinson Lee <vlee@vmware.com> r600g: Fix implicit declaration warning.

Fixes this GCC warning.
r600_state2.c: In function 'r600_context_flush':
r600_state2.c:946: error: implicit declaration of function 'drmCommandWriteRead'
600/drm/r600_state2.c
36033a6446cf2990c0b81a8f971e86a6cd4c8d6e 17-Sep-2010 Vinson Lee <vlee@vmware.com> r600g: Remove unnecessary headers.
600/drm/r600_drm.c
fd266ec62ca772a8551d2d7922d718d9d84bdf07 17-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: alternative command stream building from context

Winsys context build a list of register block a register block is
a set of consecutive register that will be emited together in the
same pm4 packet (the various r600_block* are there to provide basic
grouping that try to take advantage of states that are linked together)
Some consecutive register are emited each in a different block,
for instance the various cb[0-7]_base. At winsys context creation,
the list of block is created & an index into the list of block. So
to find into which block a register is in you simply use the register
offset and lookup the block index. Block are grouped together into
group which are the various pkt3 group of config, context, resource,

Pipe state build a list of register each state want to modify,
beside register value it also give a register mask so only subpart
of a register can be updated by a given pipe state (the oring is
in the winsys) There is no prebuild register list or define for
each pipe state. Once pipe state are built they are bound to
the winsys context.

Each of this functions will go through the list of register and
will find into which block each reg falls and will update the
value of the block with proper masking (vs/ps resource/constant
are specialized variant with somewhat limited capabilities).

Each block modified by r600_context_pipe_state_set* is marked as
dirty and we update a count of dwords needed to emit all dirty
state so far.

r600_context_pipe_state_set* should be call only when pipe context
change some of the state (thus when pipe bind state or set state)

Then to draw primitive you make a call to r600_context_draw
void r600_context_draw(struct r600_context *ctx, struct r600_draw *draw)
It will check if there is enough dwords in current cs buffer and
if not will flush. Once there is enough room it will copy packet
from dirty block and then add the draw packet3 to initiate the draw.

The flush will send the current cs, reset the count of dwords to
0 and remark all states that are enabled as dirty and recompute
the number of dwords needed to send the current context.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/Makefile
600/drm/r600.c
600/drm/r600_priv.h
600/drm/r600_state2.c
600/drm/r600d.h
dab2a7660a407364a33337327743b56ea9701d9b 17-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: oops got the use_mem_constant the wrong way around.

this fixes evergreen gears again.
600/drm/radeon_ws_bo.c
d0502297e02074d0b022c1e3e33319829b750a7e 17-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: use calloc for ctx bo allocations

since the reference code relies on these being NULL.
600/drm/radeon_ctx.c
3ddc714b20ac4e28b80c6f88d1993445fff2262c 17-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: fixup map flushing.

long lived maps were getting removed when they shouldn't this
tries to avoid that problem by only adding to the flush list
on unmap.
600/drm/radeon_bo_pb.c
a927d0477a47e29d72e518880979e11e8c0f98e7 17-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: add winsys bo caching.

this adds the bo caching layer and uses it for vertex/index/constant bos.

ctx needs to take references on hw bos so the flushing works okay, also
needs to flush the maps.
600/drm/radeon.c
600/drm/radeon_ctx.c
600/drm/radeon_priv.h
600/drm/radeon_ws_bo.c
da96313afe3cff66d8ae0c9675a6299b3d7510f9 17-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: add support for kernel bo

this moves to using a pb bufmgr instead of kernel bos directly.
600/drm/Makefile
600/drm/r600_state.c
600/drm/radeon.c
600/drm/radeon_bo.c
600/drm/radeon_bo_pb.c
600/drm/radeon_ctx.c
600/drm/radeon_priv.h
600/drm/radeon_ws_bo.c
189a59751352208cb0386131f9ad82256ec9bed9 16-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: use malloc bufmgr for constant buffers
600/drm/radeon.c
600/drm/radeon_priv.h
600/drm/radeon_ws_bo.c
7c1fcc41be15b6d648f84c8c1870a3a00575a48f 16-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: move constant buffer creation behind winsys abstraction.

this paves the way for moving to pb bufmgrs now.
600/drm/radeon.c
600/drm/radeon_ctx.c
600/drm/radeon_priv.h
600/drm/radeon_ws_bo.c
f70f79f6f6027bdf2f7de09bb39e12a24420f338 16-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: attempt to abstract kernel bos from pipe driver.

introduce an abstraction layer between kernel bos and the winsys BOs.

this is to allow plugging in pb manager with minimal disruption to pipe driver.
600/drm/Makefile
600/drm/r600_drm.c
600/drm/r600_state.c
600/drm/radeon_bo.c
600/drm/radeon_ctx.c
600/drm/radeon_priv.h
600/drm/radeon_state.c
600/drm/radeon_ws_bo.c
ec9d838aa56d2c4bc5649d7c26ac61abb6c4b9bb 16-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: hide radeon_ctx inside winsys.

no need for this info to be exported to pipe driver.
600/drm/radeon_ctx.c
600/drm/radeon_priv.h
09ef8e9283f17e5dc9fa4a86c659048acda833cb 15-Sep-2010 Dave Airlie <airlied@redhat.com> r300g: fix buffer reuse issue caused by previous commit

caused by 0b9eb5c9bb03e5134d9a41786178100109e80c5a

test run glxgears, resize.
adeon/drm/radeon_drm_buffer.c
0b9eb5c9bb03e5134d9a41786178100109e80c5a 15-Sep-2010 Marek Olšák <maraeo@gmail.com> r300g: prevent creating multiple winsys BOs for the same handle

This fixes a DRM deadlock in the cubestorm xscreensaver, because somehow
there must not be 2 different BOs relocated in one CS if both BOs back
the same handle. I was told it is impossible to happen, but apparently
it is not, or there is something else wrong.
adeon/drm/radeon_drm_buffer.c
ae1aa1496561ef0faf0524c4b95d21d63e12a9ee 13-Sep-2010 Marek Olšák <maraeo@gmail.com> r300g: fix map_buffer

https://bugs.freedesktop.org/show_bug.cgi?id=30145
adeon/drm/radeon_drm_buffer.c
b5fcf0c8e07e666523b007fab1d0fc18c2c89241 28-Aug-2010 Dave Airlie <airlied@redhat.com> pb: add void * for flush ctx to mapping functions

If the buffer we are attempting to map is referenced by the unsubmitted
command stream for this context, we need to flush the command stream,
however to do that we need to be able to access the context at the lowest
level map function, currently we set the buffer in the toplevel map, but this
racy between context. (we probably have a lot more issues than that.)

I'll look into a proper solution as suggested by jrfonseca when I get some time.
adeon/drm/radeon_drm_buffer.c
vga/drm/vmw_screen_svga.c
0b4c529da5c67f9719f4ca92cbeca4fcf826796f 09-Sep-2010 Tilman Sauerbeck <tilman@code-monkey.de> r600g: Only increase a bo's map_count if radeon_bo_map() succeeded.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
600/drm/radeon_bo.c
56a80535b61a274de7bb88767e5ccd53f781e892 09-Sep-2010 Tilman Sauerbeck <tilman@code-monkey.de> r600g: Fixed a bo leak in the error path of radeon_ctx_set_bo_new().

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
600/drm/radeon_ctx.c
fcae8ca57512f84c51b7445456aab7ec92a21254 10-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: fixup state calculations for picking states.

for evergreen I ended up using a non-contig array of states, but
this code needs a bit of fixing up to deal with that.
600/drm/r600_state.c
600/drm/radeon.c
600/drm/radeon_ctx.c
600/drm/radeon_draw.c
600/drm/radeon_priv.h
600/drm/radeon_state.c
ad5ada4372356583599a84f50a43ca688165e18f 10-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: evergreen CBs are more sane to support with a single state
600/drm/eg_states.h
600/drm/r600_state.c
7d564fdddde459d29e471946bd47838069504480 10-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: add multi-buffer flush support properly.
600/drm/r600_state.c
ab686d340a5e98ee9fc2c586ad14c25c4c1e2503 10-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: fix regression in multi-buffer tests since CB flush merge
600/drm/r600_states.h
50526e094f4c66957c7f74c190c35903bc82fb62 03-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: add initial evergreen support

adds shader opcodes + assembler support (except ARL)
uses constant buffers
add interp instructions in fragment shader
adds all evergreen hw states
adds evergreen pm4 support.

this runs gears for me on my evergreen
600/drm/eg_states.h
600/drm/gen_eg_states.py
600/drm/r600_state.c
600/drm/r600d.h
600/drm/radeon.c
42da02743358fd4b212f47d2727340dcd0578b5a 10-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: align flushing of cb/db with DDX/r600c.

the DDX and r600c both flush cb/db after the draw is emitted,
as long as they do that, r600g can't be different, as it races.

We end up with r600g flush, set CB, DDX set CB, flush. This
was causing misrendering on my evergreen, where sometimes the drawing
would go to an old CB.
600/drm/r600_state.c
600/drm/r600_states.h
e795ca8f3175fa6fd97b6b2ef2775e3f8803012a 10-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: don't need 3 bos here.

the code should reloc correctly a single BO 3 times.
600/drm/r600_states.h
5c3f6787909e765e1887fe67d013d6b2b2613b3f 10-Sep-2010 Brian Paul <brianp@vmware.com> winsys: emit warning in null_sw_displaytarget_create()
w/null/null_sw_winsys.c
d42efb9e8df6ef872ab4f142e3daf1b6cb9eff11 08-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: add support for constants in memory buffers.

DX9 constants were in the constant file, and evergreen no longer support
cfile. r600/700 can also use constants in memory buffers, so add the code
(disabled for now) to enable that as precursor for evergreen.
600/drm/r600_state.c
600/drm/r600_states.h
48cdad70d9404555c9bb545d9e6408c6aef707b0 06-Sep-2010 Dave Airlie <airlied@redhat.com> r600g: add script to generate header file with offsets into state objects.

This was inherently fragile as any changes to r600_states.h would also
need manual updating of all of the bits in radeon.h. Just add a simple
python script to do the conversion, its not hooked up to make at all.

This also will make adding evergreen a bit easier.
600/drm/gen_r600_states.py
f8d11b2e8ebaab2845080900ff4a2068f9a20b5f 02-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: force unbind of previously bind sampler/sampler_view

Previously bind sampler/sampler_view can be converted and endup
overwritting the current state we want to schedule. Example :
bind texA texB to sampler_view[0] & sampler_view[1], render,
bind texB to sampler_view[0] render. Now state associated to
texB are set to configure sampler_view slot 0, but as we don't
unbind sampler_view[1] still point to texB state so we end up
with sampler_view[1] overwritting sampler_view[0], which gives
wrong rendering if next rendering bind texA to sampler_view[0],
it will endup as texB is bound to sampler_view[0]. If you are
not confuse at that point give me a call i will be buying you
beer.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/radeon_ctx.c
e73c5501b2fe20290d1b691c85a5d82ac3a0431c 02-Sep-2010 Jerome Glisse <jglisse@redhat.com> r600g: fix memory/bo leak

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/radeon_ctx.c
66e4cb1cd5a55402606a09417349d2be8b009e89 30-Aug-2010 Jerome Glisse <jglisse@redhat.com> r600g: avoid dynamic allocation of states

Make state statically allocated, this kills a bunch of code
and avoid intensive use of malloc/free. There is still a lot
of useless duplicate function wrapping that can be kill. This
doesn't improve yet performance, needs to avoid memcpy states
in radeon_ctx_set_draw and to avoid rebuilding vs_resources,
dsa, scissor, cb_cntl, ... states at each draw command.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_state.c
600/drm/radeon.c
600/drm/radeon_ctx.c
600/drm/radeon_draw.c
600/drm/radeon_priv.h
600/drm/radeon_state.c
15ce70252c5357081a61f3494261c7e343174301 01-Sep-2010 Jerome Glisse <jglisse@redhat.com> Revert "Revert "r600g: precompute some of the hw state""

This reverts commit 1fa7245c348cb7aced81f1672140f64cb6450e2f.

Conflicts:

src/gallium/drivers/r600/r600_state.c
600/drm/r600_state.c
600/drm/r600_states.h
600/drm/radeon_priv.h
600/drm/radeon_state.c
1fa7245c348cb7aced81f1672140f64cb6450e2f 01-Sep-2010 Dave Airlie <airlied@redhat.com> Revert "r600g: precompute some of the hw state"

This reverts commit de0b76cab22caa9fc7260f80acb8f151ccced6c5, its pre-computes the texture state wrong,

you can't just use an array of levels, since you can have FBOs to depth texture slices inside a level as well
it would get really messy quickly. Probably need to split commits like this up into pieces for each piece
of state, so we can revert bits easier in case of regressions.

This also break 5 piglit tests, and valgrind starts to warn about invalid read/writes after this.
600/drm/r600_state.c
600/drm/r600_states.h
600/drm/radeon_priv.h
600/drm/radeon_state.c
de0b76cab22caa9fc7260f80acb8f151ccced6c5 30-Aug-2010 Jerome Glisse <jglisse@redhat.com> r600g: precompute some of the hw state

Idea is to build hw state at pipe state creation and
reuse them while keeping a non PM4 packet interface
btw winsys & pipe driver. This commit also force rebuild
of pm4 packet on each call to radeon_state_pm4 which
in turn slow down everythings, this will be addressed.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_state.c
600/drm/r600_states.h
600/drm/radeon_priv.h
600/drm/radeon_state.c
69c30f5d6d429be4f7e211867984dab1a33da79c 26-Aug-2010 Dave Airlie <airlied@redhat.com> r600g: fixup states generation in winsys.

The current states code had an unhealthy relationship between
that had to somehow magically align themselves, editing either
place meant renumbering all states after the one you were on,
and it was pretty unapproachable code.

This replaces the huge types structures with a simple type + sub
type struct, which is keyed on an stype enum in radeon.h. Each
stype can have a per-shader type subclassing (4 types supported,
PS/VS/GS/FS), and also has a number of states per-subtype. So you
have 256 constants per 4 shaders per one CONSTANT stype.

The interface from the driver is changed to pass in the tuple,
(stype, id, shader_type), and we look for this. If
radeon_state_shader ever shows up on profile, it could use a
hashtable based on stype/shader_type to speed things up.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_state.c
600/drm/r600_states.h
600/drm/radeon.c
600/drm/radeon_ctx.c
600/drm/radeon_draw.c
600/drm/radeon_priv.h
600/drm/radeon_state.c
c48ae0b6eddc71831ea0ea480a0177523ae6ee76 28-Aug-2010 Dave Airlie <airlied@redhat.com> r600g: drop file I added by mistake in a previous commit
600/drm/radeon_bo_pb.c
2184f3ec3059eaf8a9a2b04c995162543f000862 27-Aug-2010 Dave Airlie <airlied@redhat.com> Revert "r600g: simplify states"

This reverts commit bd25e23bf3740f59ce8859848c715daeb9e9821f.

Apart from introducing a lot of hex magic numbers and being highly impenetable code,
it causes lots of lockups on an average piglit run that always runs without lockups.

Always run piglit before/after doing big things like this.
600/drm/r600_state.c
600/drm/r600_states.h
600/drm/radeon.c
600/drm/radeon_ctx.c
600/drm/radeon_draw.c
600/drm/radeon_priv.h
600/drm/radeon_state.c
a49167c1c03dab9452165f503251e543dec2be9a 23-Aug-2010 Marcin Slusarz <marcin.slusarz@gmail.com> nouveau: handle early initialization errors

handle very early errors in pipe_screen creation (failure of
nouveau_screen_init in nv50_screen_create)

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
ouveau/drm/nouveau_drm_winsys.c
bd25e23bf3740f59ce8859848c715daeb9e9821f 24-Aug-2010 Jerome Glisse <jglisse@redhat.com> r600g: simplify states

Directly build PM4 packet, avoid using malloc (no states are
bigger than 128 dwords), remove unecessary informations,
remove pm4 building in favor of prebuild pm4 packet.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_state.c
600/drm/r600_states.h
600/drm/radeon.c
600/drm/radeon_ctx.c
600/drm/radeon_draw.c
600/drm/radeon_priv.h
600/drm/radeon_state.c
8a878c266a8bf50b49d3ef8c5984790581e33133 16-Aug-2010 Henri Verbeet <hverbeet@gmail.com> r600g: Don't blindly unmap NULL->size.

There may actually be something mapped in that range, especially for large
buffers like e.g. the GL Drawable.
600/drm/radeon_bo.c
63d010115c7972d854e0583f8f74e8d0c3407fcd 17-Aug-2010 Dave Airlie <airlied@redhat.com> r600g: add occlusion query support

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_state.c
600/drm/r600_states.h
600/drm/r600d.h
600/drm/radeon_ctx.c
96a82cc314667542b7e046311595f58b01704205 19-Aug-2010 Luca Barbieri <luca@luca-barbieri.com> winsys/sw: use PIPE_TEXTURE_RECT if appropriate
w/wrapper/wrapper_sw_winsys.c
6043ee6e62800f4f7d2c62756b4c91cbf2639061 17-Aug-2010 Dave Airlie <airlied@redhat.com> r600g: kill event type magic number in winsys

these events have names, use them.
600/drm/r600_state.c
600/drm/r600d.h
3e58007892cb2e89cb979ab172b7160adc84a44d 17-Aug-2010 Dave Airlie <airlied@redhat.com> r600g: add user clip plane support.

Apart from the fact that the radeon.h/r600_states.h editing is a nightmare, this
wasn't so bad.

passes piglit user-clip test now also trivial tests.

Signed-off-by: Dave Airlie <airlied@redhat.com>
600/drm/r600_states.h
f50df65fcc99f22f912ca9be1a71a4e41a6a6e2e 13-Aug-2010 Dave Airlie <airlied@redhat.com> r600g: drop libdrm_radeon link
600/drm/radeon_bo_pb.c
db0e24e34a4680c70038715f23847b9b2f7f75d3 14-Aug-2010 Vinson Lee <vlee@vmware.com> scons: Fix r600g build.
600/drm/SConscript
77458b565a531721904b7f3e31b71505e763b97a 14-Aug-2010 Vinson Lee <vlee@vmware.com> r600g: Remove unnecessary headers.
600/drm/r600_drm.c
600/drm/radeon.c
e01a49af61a4d56800b1ad672959ba7a88c1da1e 14-Aug-2010 Vinson Lee <vlee@vmware.com> r300g: Remove unnecessary header.
adeon/drm/radeon_drm.c
527ac905f6a1cb525ba701df4ca505e1baea6378 13-Aug-2010 Dave Airlie <airlied@redhat.com> r600g: fix warning in the winsys
600/drm/r600_drm.c
f2804e70623c4c71e5758a24d695f8d6b74bf6d7 13-Aug-2010 Dave Airlie <airlied@redhat.com> r600g: fix memory leaks running gears.

I noticed gears memory usage was heading skywards, some r600 "states"
aren't properly refcounted, and the ctx->state is never freed.
600/drm/radeon_ctx.c
61205f6189bfbd410f68c3bcfd645a4e29e03b4a 11-Aug-2010 Vinson Lee <vlee@vmware.com> svga: Remove unnecessary headers.
vga/drm/vmw_screen_dri.c
72f8edfc0bb8613ac7c0decfd4199e83c8d8a737 10-Aug-2010 Jerome Glisse <jglisse@redhat.com> r600g: avoid reemiting literal, avoid scheduling empty cs

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/radeon_ctx.c
600/drm/radeon_priv.h
757c78afe7cca6a05c88c0c203fa5f4488ebd0ed 07-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: generalize the way we ask for hyperz

This makes it compatible with the modified DRM interface in drm-radeon-testing.

Also, now you need to set RADEON_HYPERZ=1 to be able to use hyperz.
It's not bug-free yet.
adeon/drm/radeon_drm.c
c3ad060488ffd98f1c6dc9127b46324c5201f434 06-Aug-2010 Jerome Glisse <jglisse@redhat.com> r600g: finish multi target rendering support

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_states.h
6e6103004c9c737297b842a4aff298da920e7c33 06-Aug-2010 Jerome Glisse <jglisse@redhat.com> Revert "r600g: don't use dynamic state allocation for states"

This reverts commit 9c949d4a4dd43b7889e13bdf683bcf211f049ced.

Conflicts:

src/gallium/drivers/r600/r600_context.h
src/gallium/drivers/r600/r600_draw.c
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state.c
600/drm/radeon.c
600/drm/radeon_ctx.c
600/drm/radeon_draw.c
600/drm/radeon_priv.h
600/drm/radeon_state.c
4d10ec4f18cfb6c386feb65805713584ff730652 06-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: do not emit GB_Z_PEQ_CONFIG on non-r500 if DRM < 2.6.0
adeon/drm/radeon_drm.c
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
9c949d4a4dd43b7889e13bdf683bcf211f049ced 04-Aug-2010 Jerome Glisse <jglisse@redhat.com> r600g: don't use dynamic state allocation for states

Simplify state handly by avoiding state allocation.
Next step is to allocate once for all context packet
buffer and then avoid rebuilding pm4 packet each time
(through use of combined crc) this would also avoid
number of memcpy.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/radeon.c
600/drm/radeon_ctx.c
600/drm/radeon_draw.c
600/drm/radeon_priv.h
600/drm/radeon_state.c
fc94fd9bfa36d003ec5a1b7041fdb74c93ec3667 04-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: debug_print on startup whether we can use hyper-z
adeon/drm/radeon_drm.c
6eb2a7fbafd49e75b6cbbee57f23dda63eff73ef 07-Jul-2010 Dave Airlie <airlied@redhat.com> r300g: implement hyper-z support. (v4)

This implements fast Z clear, Z compression, and HiZ support for r300->r500
GPUs.

It also allows cbzb clears when fast Z clears are being used for the ZB.

It requires a kernel with hyper-z support.

Thanks to Marek Olšák <maraeo@gmail.com>, who started this off, and Alex Deucher at AMD for providing lots of hints.

v2:
squashed zmask ram size fix]
squashed r300g/blitter: fix Z readback when compressed]

v3:
rebase around texture changes in master - .1 fix more bits

v4:
migrated to using u_mm in r300_texture to manage hiz/zmask rams consistently
disabled HiZ when using OQ
flush z-cache before turning hyper-z off
update hyper-z state on dsa state change
store depthclearvalue across cbzb clears and replace it afterwards.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon/drm/radeon_drm.c
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
6f0f6c64596b7bbbfa96e8af6715565e37efa91e 29-Jul-2010 Jerome Glisse <jglisse@redhat.com> r600g: split pipe state creating/binding from hw state creation

Split hw vs pipe states creation handling as hw states group doesn't
match pipe state group exactly. Right now be dumb about that and
rebuild all hw states on each draw call. More optimization on that
side coming.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
600/drm/r600_drm.c
065e3f7ff2a9b6170e51b0104036088e8d163ea0 24-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: reject resources from handles which are not large enough

The driver gets a buffer and its size in resource_from_handle.
It computes the required minimum buffer size from given texture
properties, and compares the two sizes.

This is to early detect DDX bugs.
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
a96feddddb64f6839bc292ffdbe5834a8dbb340d 23-Jul-2010 Thomas Hellstrom <thellstrom@vmware.com> xorg/vmwgfx: Implement early mode pruning based on max fb size.

Also move some initialization from screen init to pre-init, now
that it is possible.

Also import a new vmwgfx drm (1.3) header.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
vga/drm/vmwgfx_drm.h
095e99ddf6187aacf520944dabababdfd7b9a974 23-Jul-2010 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Rename winsys debug options
915/drm/i915_drm_winsys.c
9433d0e8010bfe182762f8d2bd856a416a7f93bb 21-Jul-2010 Dave Airlie <airlied@redhat.com> r600g: add family retrival

allow pipe driver to get the family of the gpu.
600/drm/radeon.c
3eb557778376bcbbc6f25da88ffbaa269607254c 16-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: do not make copies of constant buffers, emit them directly
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
fe3caa91d3f637bf9cf9f9e7adb992aa8c7ef8e4 14-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: rebuild winsys and command submission to support multiple contexts
adeon/drm/radeon_buffer.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
d63cb78dddb2fc185b6031c06bcab6c1f0315fd9 10-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: do not print a rejected CS if RADEON_DUMP_CS is not set

Also print relocation failures on non-debug builds too.
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
61a26cdfdc9c75a83c0d362c973d5436fe077be4 08-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: store/return the stride for winsys_handle in winsys
adeon/drm/radeon_r300.c
2d818ed0f86b216774dd4663b12aa0bb3119c215 03-Jul-2010 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Add flag to not send commands to hw
915/drm/i915_drm_batchbuffer.c
915/drm/i915_drm_winsys.c
915/drm/i915_drm_winsys.h
34bd0569d37391569970de81dd687d2d94bc293f 03-Jul-2010 Jakob Bornecrantz <wallbraker@gmail.com> i915g: If the kernel reject the batchbuffer print it then assert
915/drm/i915_drm_batchbuffer.c
6a34287bb5147a3213e94d88c97db4ec403509ae 29-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: move one flush from winsys to the context

This flush happens when changing the tiling flags, and it should really be
done in the context.

I hope this fixes FDO bug #28630.
adeon/drm/radeon_drm_buffer.c
a01e0afd9fc0d647081c6903baa1a7ba505c4b05 28-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> Merge branch 'gallium-drm-driver-drescriptor'

Conflicts:
src/gallium/state_trackers/egl/x11/native_dri2.c
src/gallium/state_trackers/egl/x11/native_x11.c
src/gallium/state_trackers/egl/x11/native_x11.h
src/gallium/state_trackers/xorg/xorg_driver.c
src/gallium/winsys/radeon/drm/radeon_drm.c
09b73b2a5f012128f9d3cf6c8189d68fbfcd4e1c 24-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> i965g: Remove last references to drm_api
965/drm/i965_drm_buffer.c
965/drm/i965_drm_winsys.c
59981d418f14f684c9e8d86358e7520abf34a7c9 23-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Fix scons build
Conscript
92fde20de33d9ffb4ddce9b03eebbfbffe9d93bc 24-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> r600g: Move bootstrap code to target
600/drm/r600_drm.c
600/drm/r600_drm_public.h
cf91accc93b9f172b2f7c970f39e69b268a5bb26 23-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> nouveau: Move bootstrap code to targets

Well sorta, at least I removed the drm_api dependancy and the
target can layer anything it wants to now.
ouveau/drm/nouveau_drm_public.h
ouveau/drm/nouveau_drm_winsys.c
ouveau/drm/nouveau_drm_winsys.h
10e3b9f4d029df5c6c01a5d76c9085c48d82ac43 23-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> nouveau: Rename winsys file
ouveau/drm/Makefile
ouveau/drm/nouveau_drm_api.c
ouveau/drm/nouveau_drm_api.h
ouveau/drm/nouveau_drm_winsys.c
ouveau/drm/nouveau_drm_winsys.h
95263058349060fcba9f59a866eb30b4656c33a5 23-Jun-2010 Corbin Simpson <MostAwesomeDude@gmail.com> glhd: Use an environment variable (GALAHAD) to enable. Off by default.
adeon/drm/radeon_drm.c
7dc1cf19ace0587254e86bf6544a6659a31f0af8 23-Jun-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Disable Galahad for now; breaks texturing.
adeon/drm/radeon_drm.c
40faedfe7b4c17bc62da4c5f661fac3cc292082d 23-Jun-2010 Corbin Simpson <MostAwesomeDude@gmail.com> targets, radeong: Add Galahad.

Currently unconditional and causes segfaults.
adeon/drm/radeon_drm.c
23a915e2cfbc95c018946155eb301ffad3a0d550 23-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Drop sw drm winsys

Last user went away
w/drm/Makefile
w/drm/SConscript
w/drm/sw_drm_api.c
w/drm/sw_drm_api.h
41e0f6bc2f943a05766872d419e4398ddd37b42a 18-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> i965g: Move bootstrap code to targets
965/drm/i965_drm_public.h
965/drm/i965_drm_winsys.c
965/drm/i965_drm_winsys.h
0106be903a08635fa752c65a94e7e244db3d1aff 23-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> i965g: Rename winsys file
965/drm/Makefile
965/drm/SConscript
965/drm/i965_drm_api.c
965/drm/i965_drm_winsys.c
2b15e37348ca234c5a3352db55babb7bd293b708 23-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> i965g: Moved pci_id to winsys struct
965/drm/i965_drm_api.c
965/drm/i965_drm_buffer.c
965/drm/i965_drm_winsys.h
965/xlib/xlib_i965.c
eb7ef433bbbeabda963e74adf0ef61c47883f292 22-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: optimize the immediate mode emission path a bit
adeon/drm/radeon_r300.c
c85e53bebf325b00db175bc05886a9281e95b0cc 20-Jun-2010 Marek Olšák <maraeo@gmail.com> r600g: handle DRM_API_HANDLE_TYPE_KMS in buffer_get_handle
600/drm/r600_drm.c
e4fe18a6206560a3a562147d1033389ec977d607 20-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: cleanup buffer_{from, get}_handle
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
1c0e5ba9f14ec297cbd5055ea402989b2cc71b8d 14-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: drop begin_cs/end_cs

I have had a look at the libdrm sources and they just contain more or less
the same checking we do in macros, and begin_cs may realloc the CS buffer
if we overflow it, which never happens with r300g. So these are pretty
much useless.

There is a small but measurable performance increase by dropping the two
functions.
adeon/drm/radeon_r300.c
ae182296ce28f1efc8a08d9ddcf6b8a79b1bc14b 12-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: replace r300_cs_info with simplier get_cs_free_dwords
adeon/drm/radeon_r300.c
ce0c837f60d951de4f4798e5d4ab559155c09979 03-Jun-2010 Chia-I Wu <olv@lunarg.com> winsys: Add fbdev software winsys.

This is a simple winsys that mmap()s the framebuffer device and
memcpy()s the contents of display targets to the framebuffer device for
displaying.
w/fbdev/Makefile
w/fbdev/SConscript
w/fbdev/fbdev_sw_winsys.c
w/fbdev/fbdev_sw_winsys.h
6414952efe3b53fd33d73d592da74975a1075330 06-Jun-2010 Younes Manton <younes.m@gmail.com> vl: Drop DRI1, clean up DRI2 bits.
3dvl/dri/dri_winsys.c
3dvl/dri/driclient.c
3dvl/dri/driclient.h
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
6e3fc2de2a185775a721b3633f420aa3d2c9a949 06-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> r300g: Move bootstrap code to targets
adeon/drm/radeon_drm.c
adeon/drm/radeon_drm.h
adeon/drm/radeon_drm_public.h
adeon/drm/radeon_r300.c
c7015877beedd9831402755dbc58afddcbbd5339 01-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> i915g: Move bootstrap code to targets
915/drm/i915_drm_buffer.c
915/drm/i915_drm_public.h
915/drm/i915_drm_winsys.c
915/drm/i915_drm_winsys.h
915/sw/i915_sw_public.h
915/sw/i915_sw_winsys.c
915/sw/i915_sw_winsys.h
9ff10b67bc1d69bef96cb24627481ab939ec1aa6 06-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> svga: Move bootstrap code to targets
vga/drm/svga_drm_public.h
vga/drm/vmw_screen_dri.c
20ef3a793f225361d673eb12a00d7fdb1c0c9f19 06-Jun-2010 Jakob Bornecrantz <jakob@vmware.com> nouveau: Remove left over argument in drm api
ouveau/drm/nouveau_drm_api.c
f5b9ad9a7dfde2a72ebf338b8adb078a8b38bc44 05-Jun-2010 Vinson Lee <vlee@vmware.com> i915g: Rename winsys c file.

This was missed in commit e7f0f6bb72c63fd6e6ddcb7a815be68682f1764c.
Fixes i915g SCons build.
915/drm/SConscript
bb45a15168e6c6678776fea5d8d0085454089260 02-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: use r300_buffer_domain everywhere
adeon/drm/radeon_buffer.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
37f3454eb3afa1297126a8d77a563d734c292a37 02-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: let the driver determine the GEM domain for buffer_create
adeon/drm/radeon_buffer.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
d12f2bb9c03a9e8a08824c849200f5b23c05914c 31-May-2010 Thomas Hellstrom <thellstrom@vmware.com> st/xorg, vmware: Make throttling configurable.

The xorg state tracker gets two new options to let the user choose
whether to enable / disable dirty throttling and swapbuffer throttling.
The default value of these options are enabled, unless the winsys
supplies a customizer with other values. The customizer record has been
extended to allow this, and also to set winsys-based throttling on a per-
context basis.

The vmware part of this patch disables the dirty throttling if the kernel
supports command submission throttling, and also in that case sets kernel
based throttling for everything but swapbuffers. The vmware winsys does not
set throttling per context, even if it theoretically could, but instead
sets throttling per screen. This should perhaps be changed, should the
xorg state tracker start to use multiple rendering contexts. Kernel throttling
is off by default for all new screens/contexts, so the dri state tracker
is not affected.

This significantly improves interactivity of the vmware xorg driver.

Cherry-picked from commit a8f3b3f88acc1f0193fa740e76e9d815f07f32ab

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
vga/drm/vmw_context.c
vga/drm/vmw_context.h
vga/drm/vmw_screen.c
vga/drm/vmw_screen.h
vga/drm/vmw_screen_ioctl.c
3b869b4cdb3996682f82ea02d3e3d920b127394d 30-May-2010 Alex Deucher <alexdeucher@gmail.com> r600g: RS880 is r6xx-based

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
600/drm/r600_state.c
ea3a01ae4d2117b733c0d415ce5bc69015984d30 30-May-2010 Younes Manton <younes.m@gmail.com> vl: Get nouveau building again.

Still some DRI2 bits to sort out.
3dvl/dri/dri_winsys.c
b5c147caba48f163ed12566fb3f10b9d7e719fdc 29-May-2010 Marek Olšák <maraeo@gmail.com> r600g: remove unused variable
600/drm/radeon_ctx.c
7d9396d7cfd4d9472e05f83bf20d7278d37efb4d 29-May-2010 Marek Olšák <maraeo@gmail.com> r600g: fix gallium function parameters
600/drm/r600_drm.c
e7f0f6bb72c63fd6e6ddcb7a815be68682f1764c 29-May-2010 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Rename winsys c file
915/drm/Makefile
915/drm/i915_drm_api.c
915/drm/i915_drm_winsys.c
835f5a65a11ae9ca9f4b36ceb6656c77041ec901 29-May-2010 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Move pci id to winsys struct
915/drm/i915_drm_api.c
915/drm/i915_drm_winsys.h
915/sw/i915_sw_winsys.c
915/sw/i915_sw_winsys.h
aeee52691ccb3afd24591ab3df30d7f243bc3eeb 13-May-2010 Jakob Bornecrantz <wallbraker@gmail.com> r600g: Integrate into build

Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
Conscript
b8fb1d75ce95fe5d404b301ab31ca0c323967d14 10-May-2010 Marek Olšák <maraeo@gmail.com> r600g: adapt to latest interfaces changes

- Wrapped the buffer and texture create/destroy/transfer/... functions
using u_resource, which is then used to implement the resource functions.
- Implemented texture transfers.
I left the buffer and texture transfers separate because one day we'll
need a special codepath for textures.
- Added index_bias to the draw_*elements functions.
- Removed nonexistent *REP and *FOR instructions.
- Some pipe formats have changed channel ordering, so I've removed/fixed
nonexistent ones.
- Added stubs for create/set/destroy sampler views.
- Added a naive implementation of vertex elements state (new CSO).
- Reworked {texture,buffer}_{from,to}_handle.
- Reorganized winsys files, removed dri,egl,python directories.
- Added a new build target dri-r600.
rm/r600/Makefile
rm/r600/SConscript
rm/r600/core/Makefile
rm/r600/core/bof.c
rm/r600/core/bof.h
rm/r600/core/r600_drm.c
rm/r600/core/r600_state.c
rm/r600/core/r600_states.h
rm/r600/core/r600d.h
rm/r600/core/radeon.c
rm/r600/core/radeon_bo.c
rm/r600/core/radeon_ctx.c
rm/r600/core/radeon_draw.c
rm/r600/core/radeon_pciid.c
rm/r600/core/radeon_priv.h
rm/r600/core/radeon_state.c
rm/r600/dri/Makefile
rm/r600/dri/SConscript
rm/r600/egl/Makefile
rm/r600/egl/dummy.c
rm/r600/python/README
rm/r600/python/SConscript
rm/r600/python/radeon_hardpipe_winsys.c
rm/r600/python/xf86dri.c
rm/r600/python/xf86dri.h
rm/r600/python/xf86dristr.h
600/drm/Makefile
600/drm/bof.c
600/drm/bof.h
600/drm/r600_drm.c
600/drm/r600_state.c
600/drm/r600_states.h
600/drm/r600d.h
600/drm/radeon.c
600/drm/radeon_bo.c
600/drm/radeon_ctx.c
600/drm/radeon_draw.c
600/drm/radeon_pciid.c
600/drm/radeon_priv.h
600/drm/radeon_state.c
72128962d640846472c1b0dc22cf4ac6ce875dc9 08-May-2010 Jerome Glisse <glisse@freedesktop.org> r600g: Initial import
rm/r600/Makefile
rm/r600/SConscript
rm/r600/core/Makefile
rm/r600/core/bof.c
rm/r600/core/bof.h
rm/r600/core/r600_drm.c
rm/r600/core/r600_state.c
rm/r600/core/r600_states.h
rm/r600/core/r600d.h
rm/r600/core/radeon.c
rm/r600/core/radeon_bo.c
rm/r600/core/radeon_ctx.c
rm/r600/core/radeon_draw.c
rm/r600/core/radeon_pciid.c
rm/r600/core/radeon_priv.h
rm/r600/core/radeon_state.c
rm/r600/dri/Makefile
rm/r600/dri/SConscript
rm/r600/egl/Makefile
rm/r600/egl/dummy.c
rm/r600/python/README
rm/r600/python/SConscript
rm/r600/python/radeon_hardpipe_winsys.c
rm/r600/python/xf86dri.c
rm/r600/python/xf86dri.h
rm/r600/python/xf86dristr.h
0faefb194e58ebd6a58c9ce2d00be286b8746613 27-May-2010 Brian Paul <brianp@vmware.com> sw/xlib: avoid dereferencing a null pointer
w/xlib/xlib_sw_winsys.c
a81730cb3205330b5fa1c5a80dc9f0c6dad6cb04 26-May-2010 Marek Olšák <maraeo@gmail.com> r300g: add get_cs_info winsys entrypoint, abandon check_cs
adeon/drm/radeon_r300.c
b9706886dbc1fd2eb3c671a8ecd3670f7a680fb9 25-May-2010 Jakob Bornecrantz <jakob@vmware.com> drm_api: Remove type argument from create screen callback

With the removal of DRI1 support there where no use of this argument,
some drivers didn't even properly check it.
915/drm/i915_drm_api.c
965/drm/i965_drm_api.c
adeon/drm/radeon_drm.c
adeon/drm/radeon_drm.h
vga/drm/vmw_screen_dri.c
w/drm/sw_drm_api.c
395b605e19d5357c97f2d7d45673a80cd2c729ef 25-May-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Remove dri1_api.h and winsys support for DRI1

Since DRI1 support was dropped from st/dri it
makes no sense to keep this code around.
ouveau/drm/nouveau_drm_api.c
ouveau/drm/nouveau_drm_api.h
vga/drm/vmw_screen_dri.c
e5d0c730d124aa5ed380ed29162ea76329898844 25-May-2010 Brian Paul <brianp@vmware.com> sw/xlib: NULL-out pointers after freeing image data

This fixes a double-free() error when not using a shared memory XImage.
The XDestroyImage() function frees the ximage->data buffer if non-NULL.
If we free it ourselves, we also need to NULL-out the pointer.
w/xlib/xlib_sw_winsys.c
0a51e8633287b97b4d88e0cb553854535f2fa5e7 24-May-2010 Younes Manton <younes.m@gmail.com> vl: Use pipe_screen::video_context_create hook instead of SP ctor.
3dvl/xlib/xsp_winsys.c
0e59cd33e6a38567801c7da541e4caffbd6cccd3 24-May-2010 Younes Manton <younes.m@gmail.com> vl: Get softpipe working again.

Still segfaults on softpipe->destroy() in the draw module when
freeing a vertex buffer.
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
2c29a93e875dd96fb08c65ec659efc3eb2d5c15e 09-May-2010 Younes Manton <younes.m@gmail.com> vl: Get softpipe building again.
akefile
3dvl/xlib/xsp_winsys.c
a8ea1dacc63ac567498049e5756c247b9fec6cd9 01-May-2010 Younes Manton <younes.m@gmail.com> Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into pipe-video

Conflicts:
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/SConscript
src/gallium/auxiliary/util/u_format.csv
src/gallium/auxiliary/vl/vl_compositor.c
src/gallium/auxiliary/vl/vl_compositor.h
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.h
src/gallium/drivers/identity/id_objects.c
src/gallium/drivers/identity/id_objects.h
src/gallium/drivers/identity/id_screen.c
src/gallium/drivers/nv40/Makefile
src/gallium/drivers/nv40/nv40_screen.c
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/softpipe/sp_texture.h
src/gallium/drivers/softpipe/sp_video_context.c
src/gallium/drivers/softpipe/sp_video_context.h
src/gallium/include/pipe/p_format.h
src/gallium/include/pipe/p_screen.h
src/gallium/include/pipe/p_video_context.h
src/gallium/include/pipe/p_video_state.h
src/gallium/include/state_tracker/dri1_api.h
src/gallium/include/state_tracker/drm_api.h
src/gallium/state_trackers/dri/common/dri_context.c
src/gallium/state_trackers/xorg/xvmc/attributes.c
src/gallium/state_trackers/xorg/xvmc/block.c
src/gallium/state_trackers/xorg/xvmc/context.c
src/gallium/state_trackers/xorg/xvmc/subpicture.c
src/gallium/state_trackers/xorg/xvmc/surface.c
src/gallium/state_trackers/xorg/xvmc/tests/.gitignore
src/gallium/state_trackers/xorg/xvmc/tests/Makefile
src/gallium/state_trackers/xorg/xvmc/xvmc_private.h
src/gallium/winsys/drm/radeon/core/radeon_drm.c
src/gallium/winsys/g3dvl/vl_winsys.h
src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
src/gallium/winsys/sw/Makefile
734522aceeb5120de28a081d997ef705d9137d73 22-Apr-2010 Jakob Bornecrantz <jakob@vmware.com> xorg-vmwgfx: Add vmwctrl proto
vga/drm/vmwgfx_drm.h
0853401805fc95c71e237fe9b04ff023cd268361 21-May-2010 Jakob Bornecrantz <jakob@vmware.com> nouveau: Fix build after msaa merge
ouveau/drm/nouveau_drm_api.c
581be86342858b0bbe22373f801235a1d3d792db 16-May-2010 Marek Olšák <maraeo@gmail.com> r300g: expose radeon_bo_wait to the driver
adeon/drm/radeon_buffer.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
c882c310cc03df9065af5c80bade811cc46a608c 16-May-2010 Jakob Bornecrantz <wallbraker@gmail.com> sw/wrapper: Implement dt_get_handle
w/wrapper/wrapper_sw_winsys.c
d294c349d5758e80d1fc99c57a0ad49a844a2823 16-May-2010 Jakob Bornecrantz <wallbraker@gmail.com> sw/wrapper: Make sure targets are textures
w/wrapper/wrapper_sw_winsys.c
60a053510155c119a6927bf7114e597066f8c50a 13-May-2010 Marek Olšák <maraeo@gmail.com> r300g: fix texture transfers

The regression has first shown up after this state tracker change:
b0427bedde80e3189524651a327235bdfddbc613.

FDO bug #28082.
adeon/drm/radeon_r300.c
40faa56efbcb04b6cb7d611526688423dba04a7b 10-May-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Add software drm api helper to scons build
Conscript
w/drm/SConscript
8ff59f09876686907f79ad86a12e36ebb623a0b2 10-May-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Add pipe wrapper software winsys to scons build
Conscript
w/wrapper/SConscript
433bdb160149d31f057c1928f7bdcc653179a99e 10-May-2010 Roland Scheidegger <sroland@vmware.com> i965g: avoid void * arithmetic
965/drm/i965_drm_buffer.c
296adbd545b8efd38c9ed508166b2de2764a444b 25-Apr-2010 Chia-I Wu <olv@lunarg.com> glapi: Move to src/mapi/.

Move glapi to src/mapi/{glapi,es1api,es2api}.
965/xlib/Makefile
4cad69a31b6da98f427c25029a28573676736f7d 06-May-2010 Jakob Bornecrantz <jakob@vmware.com> svga: Fix scons build
vga/drm/SConscript
b08b7b737760bc4ff8c8326763765c22c777580a 02-May-2010 Marek Olšák <maraeo@gmail.com> r300g: do not validate buffers in check_cs

It's already done in r300_emit_buffer_validate.
This also fixes Total Annihilation 3D on debug builds at least.
adeon/drm/radeon_r300.c
5c6ea462be7c589d98887b822751bffd6df13418 02-May-2010 Marek Olšák <maraeo@gmail.com> r300g: cache tiling flags to reduce the number of DRM calls
adeon/drm/radeon_drm_buffer.c
404fb63b4649f58fce443615e49337d42b8ddece 29-Apr-2010 Younes Manton <younes.m@gmail.com> vl: WIP DRI2 support in the winsys.
3dvl/dri/Makefile
3dvl/dri/dri2.c
3dvl/dri/dri2.h
3dvl/dri/dri_winsys.c
3dvl/dri/driclient.c
3dvl/dri/driclient.h
f64d0cf524b2203e648a060366a2e4220096aa1f 24-Apr-2010 Younes Manton <younes.m@gmail.com> vl: Adapt to dri changes.
3dvl/dri/dri_winsys.c
3dvl/drm/Makefile.template
3dvl/drm/nouveau/Makefile
edca5360cab6063a1dc2a388da800ca01eb86a42 24-Apr-2010 Younes Manton <younes.m@gmail.com> vl: Fix up configure.ac/Makefile
3dvl/drm/nouveau/Makefile
aa857509bd0032f636ebf45bebb143cc6a8e408e 19-Apr-2010 Jakob Bornecrantz <jakob@vmware.com> svga: Translate svga reloc flags to pb flags
vga/drm/vmw_context.c
2c512085ab79736337cf3a3ba5ca040cc44d917b 28-Apr-2010 Joakim Sindholt <opensource@zhasha.com> radeong: fix scons build
adeon/drm/SConscript
96df6064b57c2313456988882db1950e08536971 27-Apr-2010 Jakob Bornecrantz <jakob@vmware.com> i965g: Fix scons build of winsys
965/drm/SConscript
7d164fc3594177e94df92cd1df6c8f233bd3a1ea 26-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: fix warnings by using the const qualifier

See also the libdrm commit af98ccf4dd5dcb1b904ec32b9bd1521e6bf7dda5.
adeon/drm/radeon_r300.c
c53142c3f46735f91b2f11308d08fa7e17edbf91 26-Apr-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Add CS table writing.
adeon/drm/radeon_r300.c
2579fe4044012a552c8be222ffae76b48de13592 26-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: emit MSPOS regs
adeon/drm/radeon_drm.c
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
94b04d3d1ccd1b717dbc9d797341f1170121645a 24-Apr-2010 José Fonseca <jfonseca@vmware.com> sw/xlib: Fix bad logic in shm allocation.

Fixes fdo 27823.
w/xlib/xlib_sw_winsys.c
63c9b4f3d2165d4ca5d153a7a20c56c6913283da 24-Apr-2010 Brian Paul <brianp@vmware.com> xlib/sw: remove stray semicolon
w/xlib/xlib_sw_winsys.c
1820d240cd0b517ca1d73f1e8e0a528ca8d5b092 22-Apr-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Convert some uses of get option to static
w/xlib/xlib_sw_winsys.c
2ce1d6696b1415fcc340bcf888904e43c2792c68 23-Apr-2010 José Fonseca <jfonseca@vmware.com> gallium: s/free/FREE/ and same for friends.

Based on Stephen Johnson's feedback.
915/sw/i915_sw_buffer.c
405f925d4e5fa74961754af93e7fb309774551cc 23-Apr-2010 José Fonseca <jfonseca@vmware.com> sw/xlib: Fallback to XPutImage when shmget fails.

After continuously running regression tests on Ubuntu for 2 days, shmget
mysteriously starts to fail. Even when the X server is reset.

This allow rendering to proceed, albeit using a slower presentation path.
w/xlib/xlib_sw_winsys.c
71901594ed8bb2b47d492091f91c00c3e9da7c45 21-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> gallium: Fix copy typo
915/drm/i915_drm_api.c
965/drm/i965_drm_api.c
ouveau/drm/nouveau_drm_api.c
adeon/drm/radeon_drm.c
vga/drm/vmw_screen_dri.c
b88ba89397c4b54f19f0bc189955d8f38a74f90c 21-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> svga: Minor clean up of winsys
vga/drm/vmw_screen_dri.c
997969b067fa85cbef2c743810658b88ac43a75a 21-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> radeong: Minor clean up of winsys

Also try to wrap trace around driver on non-debug builds, its free.
adeon/drm/radeon_drm.c
1d98ce511dc81f717edb5f0f5251463b9941ec99 21-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> nouveau: Minor clean up of winsys
ouveau/drm/nouveau_drm_api.c
c408942c9c774257c88a6097b32743c0ba6f6718 21-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> i965g: Minor clean up of winsys
965/drm/i965_drm_api.c
1c68d1aa4c1b894b2cfda0c347c2020726bb0721 21-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Minor clean up of winsys
915/drm/i915_drm_api.c
7a1b5c937fa32968a04a11649e456a1ef8c5b442 18-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: do not tell st that a buffer is referenced by hw

It saves a few libdrm calls and unnecessary flushes.
adeon/drm/radeon_buffer.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
65a3c316baf3719350ad6974e95cc08808b9daec 18-Apr-2010 Vinson Lee <vlee@vmware.com> i915g: Remove unnecessary headers.
915/sw/i915_sw_winsys.c
44bafca1a0b1e9bf06e05a3ec982e0feab5ada47 17-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Add a software only debuging winsys
915/sw/Makefile
915/sw/SConscript
915/sw/i915_sw_batchbuffer.c
915/sw/i915_sw_buffer.c
915/sw/i915_sw_fence.c
915/sw/i915_sw_winsys.c
915/sw/i915_sw_winsys.h
ee9ee03cabf196657dbfabe8e01db49e5e6176be 14-Apr-2010 Vinson Lee <vlee@vmware.com> i915g: Fix winsys SCons build.
915/drm/SConscript
cefe2a1dc258e4c1fe75a5cf7c3d6804a616366d 10-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> winsys/sw: Fix error paths
w/drm/sw_drm_api.c
w/wrapper/wrapper_sw_winsys.c
2e7785be22181d6c6a10d2fd665bc41f8912b027 11-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: fix mipmapped 3D textures

This is a bug in the CS checker causing CS being rejected.
adeon/drm/radeon_drm.c
adeon/drm/radeon_r300.c
adeon/drm/radeon_winsys.h
287c94ea4987033f9c99a2f91c5750c9083504ca 10-Apr-2010 Keith Whitwell <keithw@vmware.com> Squashed commit of the following:

commit 0189cb2fde9f5d7326fd4bfbc2e52db4cce73b3e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Apr 10 12:48:43 2010 +0100

gallium: don't use generic get_transfer func for textures

It doesn't know and can't fill in the stride value.

commit 65bc6f88fd9ce8ff90175b250e580bef2739ea35
Author: Chia-I Wu <olv@lunarg.com>
Date: Sat Apr 10 13:49:34 2010 +0800

i915g: Initialize screen surface function.

commit eb56e64986790aa2fa35534ce652b78656b0c3c5
Merge: f8b0a7f e7f1e5c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Apr 10 00:38:43 2010 +0100

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/r300/r300_texture.c

commit f8b0a7f6a3a98fd36ce90a81073ec8c8f09b684c
Merge: a3c9980 f43c679
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Apr 10 00:35:09 2010 +0100

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/r300/r300_texture.c

commit a3c99807de37dc2c072f1d75ed3a11da333bc9a1
Author: unknown <michal@.(none)>
Date: Fri Apr 9 18:51:39 2010 +0200

scons: Add missing sources.

commit 927cec79cedb457efa9e6f335727cfcb8e4908e2
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 18:07:56 2010 +0200

gallium: fix another compile warning after merge. Hmpf.

commit 52953cd7b0e51deafecb812bdc40f9e45f9ac62a
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 18:02:11 2010 +0200

gallium: fix comment

commit 7c8763aa6cfc74adf1ea49c2bab25ca17b32575f
Author: unknown <michal@.(none)>
Date: Fri Apr 9 18:05:20 2010 +0200

util: Fix type cast.

commit 9d0086411a104b7cc9297aac0d1f82853118d7bf
Author: unknown <michal@.(none)>
Date: Fri Apr 9 18:04:33 2010 +0200

libgl-gdi: Use proper unwrap functions for resources.

commit 251a5cdd18ba31c690ef61f133dfc65cd4a45cf8
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:51:23 2010 +0200

gallium: more comments fixup

commit 8f3f9d5e1e9c0de98a3dfb19e81250d2c32ee4e9
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:48:18 2010 +0200

gallium: another fix after merge

commit 41f00a32ee5be91512c048bacb89ede0e04bc08d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:44:30 2010 +0200

gallium: more pipe_texture/resource fixes after merge

commit faf53328d1154c51d8a59513f2bfcae62272b0bf
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:44:24 2010 +0200

gallium: fix comments for changed USAGE flags

commit fdcb17bea4b0798d316b56deea69832f41142adf
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 16:40:07 2010 +0200

gallium/pb: pb uses PB_USAGE_ flags, not PIPE_TRANSFER_ (same value anyway)

commit c95f7278ecc6db417ec1053279f2a8172c47aee9
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:44:35 2010 +0100

llvmpipe: fix merge glitches

commit 28f8b8683175149a381be5eff263d4c20568bce7
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:41:39 2010 +0100

r300g: update after merge for pipe_resources

commit 248c93cbc066ba6e3fadd94c5fcf3bdbb373d8fd
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:41:20 2010 +0100

st/mesa: fix old pipe_texture usages

commit a563b1c5c2cb57b3ef28a3654d9b477460d13ced
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:40:56 2010 +0100

r300g: remove unused variable

commit 734500131d828c9dfd68c5fa26b3e6b07e086d2d
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:40:36 2010 +0100

nv50: fix compiler warning

commit efd402e13037e5c3e29759fa5b1c754c6d65d0e2
Merge: fec8a1d 5452615
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:33:57 2010 +0100

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/cell/ppu/cell_screen.c
src/gallium/drivers/cell/ppu/cell_texture.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_transfer.c
src/gallium/state_trackers/egl/common/egl_g3d.h
src/gallium/state_trackers/egl/kms/native_kms.c
src/gallium/state_trackers/egl/x11/native_dri2.c
src/gallium/state_trackers/egl/x11/native_ximage.c

commit fec8a1db13fac04ef56f6ece799d1f20aa3011db
Author: Marek Olšák <maraeo@gmail.com>
Date: Sat Apr 3 07:58:34 2010 +0200

util: fix assertion failures in pipe_buffer_flush_mapped_range

commit 1ff3984c2edce9927744f3cce3e7b07778990170
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 8 17:44:54 2010 +0200

docs: fix transfer_map description

commit 20bf14be8ac6438cb1afa38212e306fc06a5ed40
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Apr 8 14:39:13 2010 +0100

util: fix up several uses of pipe_map_buffer_range

This function used to return a pointer to where the start of the
actual buffer would have been, even though only the requested range is
being mapped.

In the resources change, the function was modified to use a transfer
internally, and started returning the pointer to the beginning of the
transfer, ie the mapped range.

Some users of the function were changed to reflect this new behaviour,
some were not. Since then the function has reverted to its original
behaviour, matching master.

This change restores some of the users of the map_buffer_range helper
to expect the old/original behaviour.

commit 33179a86058b68b518f40971030db337dc26fe6e
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Apr 8 14:38:54 2010 +0100

mesa/st: fix up several uses of pipe_map_buffer_range

This function used to return a pointer to where the start of the
actual buffer would have been, even though only the requested range is
being mapped.

In the resources change, the function was modified to use a transfer
internally, and started returning the pointer to the beginning of the
transfer, ie the mapped range.

Some users of the function were changed to reflect this new behaviour,
some were not. Since then the function has reverted to its original
behaviour, matching master.

This change restores some of the users of the map_buffer_range helper
to expect the old/original behaviour.

commit 3f5363d4dc9d7ad48467ae82d58d5f3d9bd10698
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Apr 7 17:26:52 2010 +0100

util: map_range and flush_range have offsets relative to start of buffer

commit 7eb1bfb97a790c73188d6b616d54fb3849e69b1e
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Apr 7 17:26:08 2010 +0100

nv50: fix compiler warning

commit d040daff0642dd791ac38e9b353dc251b03fc873
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Apr 7 17:25:58 2010 +0100

nvfx: fix compiler warning

commit 49ec01dffb8e99ab3ff8f856287db7b4df3efed6
Author: Chia-I Wu <olv@lunarg.com>
Date: Mon Apr 5 11:58:53 2010 +0800

mesa/es: Fixes for gallium-resources.

commit 47c87ada452be45766928a01b6d69da63e3a5f5e
Author: Marek Olšák <maraeo@gmail.com>
Date: Sat Apr 3 05:19:20 2010 +0200

r300g: fix transfers for textures created from winsys handles

commit 5f2701fddaef9c18d85c049311c2819c49cc1ae0
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Sat Apr 3 03:52:38 2010 +0200

nouveau: don't use the staging usage

Maybe it could make sense, but for now dynamic is enough.

None of these avoid uncached reads from GART on AGP cards.

commit 0db20fa49e008f35911007fa7ed9be1d678a2161
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Sat Apr 3 03:27:19 2010 +0200

i965: add brw_resource.c to Makefile

commit b94f3e7389cbd1b6465de3c04e8059ce73f1ea1f
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Sat Apr 3 01:48:33 2010 +0200

nouveau: fix for gallium-resources

commit a01ff99a19986e6beb7903431e60a074945b09bc
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 19:26:35 2010 +0200

gallium: fix missing includes

commit 26aeded562ce947a6deeb867fe22bf8daf7b1a1a
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 19:19:18 2010 +0200

gallium: remove video interface and related stuff

These interfaces weren't quite was needed, and building disabled for a while.
Some code actually build since some branch merge, and were now not fully
converted to gallium-resources.
See http://www.mail-archive.com/mesa3d-dev@lists.sourceforge.net/msg09619.html
for a discussion of this. Video related work is done in origin/pipe-video
branch.

commit c64285aea45997a276fb141d7badc8a04f617c7c
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 18:45:54 2010 +0200

python: fixes for resource changes

doesn't look quite ok yet, but sort of compiles.

commit 03d4d5a41f5cf158a358fd705c695e1c987a328f
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 18:34:46 2010 +0200

gallium: s/u_box_orgin_2d/u_box_origin_2d

commit 2444f023142bcaf7bd310b44794580f273254408
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Apr 1 03:26:50 2010 +0200

r300g: fix segfault when the transfers functions are used

Still broken.

commit 6f09bf4066ab651b323c131bb07978e700519805
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 00:05:12 2010 +0200

r300g: compile fixes

commit 76711ff40d2092f9ef03d452de7458c4e76d9246
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 00:04:47 2010 +0200

nvfx: more compile fixes

commit c5d2e90c9cc119447a447dc04a4bce4ab91fc671
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 23:18:50 2010 +0200

gallium: more mostly merge fallout fixes...

commit fbc3722696790857f4adc936190406e74dffd969
Merge: 86d9225 d97f696
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 22:09:35 2010 +0200

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/cell/ppu/cell_screen.c
src/gallium/drivers/i915/i915_buffer.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i915/i915_resource_texture.c
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/drivers/i965/brw_resource_texture.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/nvfx/nv30_fragtex.c
src/gallium/drivers/nvfx/nv40_fragtex.c
src/gallium/drivers/nvfx/nvfx_miptree.c
src/gallium/drivers/nvfx/nvfx_screen.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/svga/svga_screen_texture.c
src/gallium/state_trackers/dri/common/dri_drawable.c
src/gallium/state_trackers/dri/common/dri_screen.c
src/gallium/state_trackers/dri/common/dri_st_api.h
src/gallium/state_trackers/dri/drm/dri1.c
src/gallium/state_trackers/dri/drm/dri1.h
src/gallium/state_trackers/dri/drm/dri2.c
src/gallium/state_trackers/python/st_device.c
src/gallium/state_trackers/python/st_sample.c
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_extensions.c

commit 86d9225d19d194eebbbe95b059695697c3307d15
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 19:06:06 2010 +0200

gallium: more fixes for bind changes

commit a215ef0606347e34669a580ec8df93ede7e46399
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 18:48:36 2010 +0200

gallium/docs: some updates for bind changes

commit c6c7e6746cbc7af59f7972719ed76f43e8ac16fc
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 20:24:26 2010 +0200

gallium: more bind change compile fixes

commit a83fa1504b78180524a5eb454ae186741a27cdf8
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 17:37:13 2010 +0200

compile fixes

commit 30dc8afcd243d6a160571bac5f06d773e54a4196
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 16:56:28 2010 +0200

fix some merge issues

commit 30aa617fee11fe50c0a9c2f33fcd120a474f5e34
Merge: 1dde609 3a830bc
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 16:09:45 2010 +0200

Merge commit 'origin/gallium-buffer-usage-cleanup' into gallium-resources

Conflicts:
src/gallium/drivers/nouveau/nouveau_screen.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/winsys/drm/radeon/core/radeon_drm_buffer.c

commit 1dde609ad6c9d2dfa0a5f7167f3c5bcf023b7c4d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 24 02:35:00 2010 +0100

docs: some updates for pipe_resource

commit f236f9660d31b936f54b64ae07e569f8637067bd
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Wed Mar 24 01:31:28 2010 +0100

nvfx: fix for gallium-resources

It seems to work with basic applications but almost surely needs more work.

In particular, it probably shouldn't use PIPE_BUFFER_USAGE_* flags
and should use PIPE_TRANSFER_* in several places.

Also, we probably don't want the vtable indirect calls and that ought
to be replaced with something better instead.

commit 5a136ad7b63768cb9a753eff8686c44592e62325
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Wed Mar 24 01:31:19 2010 +0100

nv50: fix build in gallium-resources

Not actually tested.

Also needs next patch tee to actually build, this is just the nv50 part
split from the rest.

commit 3a830bc4a3f0f60c925b9434845a6bcad9a913c5
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 14:00:52 2010 -0700

st/egl: fix up for binding flags

commit c6a80dc32ef17bc972d4137ce7444ebed4d28ebb
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 13:52:15 2010 -0700

r300: restore 4k alignment for oqbo buffers

commit e75a8d5ea9e0ffcf67bc858e08937e10b4fc74ba
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 13:00:07 2010 -0700

gallium: bind flags

commit 1f5b509543a7f399835fd9edf27c18e1643fab7d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 19:32:21 2010 +0100

i965g: scons compile fixes

commit 2c385f8f905ec794d9119c05c6293e0b1b9b565a
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 19:20:33 2010 +0100

nouveau: drm compile fix

commit b285086ebd5132b47c340897c4622cc9fbd286cb
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 18:36:19 2010 +0100

r300g: pipe_resource compile fixes

bring back mistakenly deleted radeon_buffer.h
plus some more

commit 7810606f423ef2f51f0a14b919640c2fd2c931aa
Author: Michal Krol <michal@vmware.com>
Date: Tue Mar 23 16:21:03 2010 +0100

softpipe: Map GS constants, too.

commit 366f1176fb89d2b1978da6cfe60000b76bbc7338
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 15:51:52 2010 +0100

failover: update for pipe_resources

commit 615f44d70d293704ed821bc0b21fcfe6e363895d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 15:51:02 2010 +0100

identity: remove double is_resource_reference assignment

commit 7008586020395905ddfff333d02b3893de369796
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 15:50:32 2010 +0100

trace: compile fix

commit 058c5697bda4c9cf7b49d26ee27a34586544efaa
Merge: dd7ba13 b33fd3c
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 06:40:39 2010 -0700

Merge commit 'origin/gallium-resources' into gallium-buffer-usage-cleanup

Conflicts:
src/gallium/state_trackers/vega/api_filters.c
src/mesa/state_tracker/st_cb_drawpixels.c

commit b33fd3ce3daf2921a895367d0ed3fd9c718a8575
Author: Michal Krol <michal@vmware.com>
Date: Mon Mar 22 21:03:26 2010 +0100

gallium: Usage parameter of get_transfer/transfer_inline_write is a bitfield.

commit 9c1162d9d656062a490a529997def3f674cc61fc
Author: Michal Krol <michal@vmware.com>
Date: Mon Mar 22 20:50:49 2010 +0100

scons: Update file lists after gallium-resources changes.

commit af9793ab9e5386b150d6b25c0d1978fdc67172e4
Author: Michal Krol <michal@vmware.com>
Date: Mon Mar 22 20:04:39 2010 +0100

gallium: Do not use `template` for formal parameter names.

commit dc2e12d714c444af9ff1acdd5a7e91408b116c99
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:41:34 2010 +0000

ws/nouveau: remove pipe_texture reference

commit b94c72329f1be85887d40d49b0586979da469d77
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:40:41 2010 +0000

ws/xlib: remove pipe_buffer reference in comment

commit 0a2af3eeae7de1d1cb433f0a2c35136b115f9920
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:39:34 2010 +0000

st/vega: clean up reference to pipe_texture

commit 437ce98daae46be5d532fbb04c7cbf4a503c1623
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:39:02 2010 +0000

st/python: begin conversion to pipe_resources, much more to do

commit 1b02e1ee3e5e87774f0c9e5f0e1898b7f8de1b16
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:29:34 2010 +0000

st/xorg: update for pipe_resources

commit eb39977fe7a1d9f0c3f4f2d4303a93c2c613cc3b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:23:51 2010 +0000

st/dri: update for pipe_resources

commit e447aeff597a4d8c0f5de25854c14c99f2cc138c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:23:36 2010 +0000

st/egl: update for pipe_resources

commit e4cc48da8fdbd7d521257a6d7cd10e6fc5aa1a65
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:08:44 2010 +0000

r300: drop use of R300 DONT SYNC flag

commit 129a83ab4d32e44ded5faea3f86ae5e1e62cddb6
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:08:17 2010 +0000

pipebuffer: use transfer flag

commit 575b35ee6b683d77095ef21c573c1de207107e79
Merge: f29ac73 9fc6c8b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:03:25 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/winsys/drm/radeon/core/radeon_buffer.h

commit f29ac73f3f626d5779a627b7fa6fecdb60a35aab
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 18:37:25 2010 +0000

cell: attempt to convert to pipe_resources

Can't even compile test this driver.

commit 484b1947f4af81bab60b41f21c3c23ea6f67488c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 17:25:50 2010 +0000

nvfx: restore usage of pipe_winsys

The interface that cannot be killed...

commit ac76ac6eb30f4f9aa9f5733d60358b357925953a
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 17:25:10 2010 +0000

nv50: fix warning

commit 9683f4423449fa5acf6c019c571223650473bd82
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 17:14:31 2010 +0000

util: restore u_simple_screen, nouveau still relies on it

commit 961cbcb62232689c959965384c6aa9b8eca697c1
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 16:51:54 2010 +0000

nouveau: convert nvfx and nv50 to pipe_resources

Compile tested only.

This was a deeper change than I was hoping for, due to the
layering of the pipe_texture implementation in each driver on
top of a shared pipe_buffer implementation in the shared code.

Have modified the shared code to act as a set of convenience
routines operating on nouveau_bo objects.

Each driver now uses the u_resource_vtbl technique to split the
implementation of pipe_resources between the existing miptree code
for textures and a new, minimal buffer implementation in each
driver.

Eventually these should be combined, not least because APIs are now
allowing things like binding buffer resources as textures and render
targets.

commit 18ba74016db13b23282f5033ee37b628a12ee566
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 10:02:54 2010 +0000

r300: fix compilation after merge

Also build r300 by default.

commit eb9c0175c8e4baca3fcb0b8364f83ceba9d74e0d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 09:59:49 2010 +0000

st/vega: fix up after merge

commit ea8dd1d4ae7b58c9315c3491046ef3852ddd3377
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 09:59:44 2010 +0000

aux: remove unused piperesource helpers

commit be7af29d3ad1a10409b0ea689d882cf30a4e1d62
Merge: d22c2c6 12deb9e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 09:54:53 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/cso_cache/cso_context.h
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/state_trackers/vega/api_filters.c
src/gallium/state_trackers/vega/image.c
src/gallium/state_trackers/vega/image.h
src/gallium/state_trackers/vega/mask.c
src/gallium/state_trackers/vega/mask.h
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/paint.h
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/renderer.h
src/gallium/state_trackers/vega/shader.c
src/gallium/state_trackers/vega/vg_context.h
src/gallium/state_trackers/vega/vg_tracker.c
src/mesa/state_tracker/st_manager.c

commit d22c2c6cb23a063e3334a165d0c5c3d73f05d234
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 20 11:48:54 2010 +0000

drm/r300: update for r300g pipe_resources conversion

Remove old files that related to pipe_buffers but weren't being
built. Hopefully this is correct.

commit f07b2c836958bee5796899123eca4ed05ac6242b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 20 11:47:03 2010 +0000

r300: convert to pipe_resources

Do a very shallow conversion - basically keeping the existing
buffer and texture code intact and using a vtbl struct
inside our resource struct to select between the two implementations.

The buffer and texture treatments could be further merged without
much effort, but try to keep the existing code working at this point.

commit feca9c3ca62daaf0d8745370106d4e3b22340c49
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 06:00:34 2010 +0000

gallium: update new merges to pipe_resource

commit 1cad983eac77a0c5333e6a3ce92b90ac87407714
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 06:00:19 2010 +0000

drm/sw: update new merges to pipe_resource

commit 191d39490ed792c569f98d42cf05891b264f71f8
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 06:00:01 2010 +0000

vg: update new merges to pipe_resource

commit b727c59bc44812ad503d9390505c92b738a5b8b0
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:59:38 2010 +0000

llvmpipe: update new merges to pipe_resource

commit 5f4b64b37fdcd70162c382b2ebbd494bef751dbd
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:59:23 2010 +0000

brw: pipe_resource fixes

commit d4aca209f531f1b65bf706ce1e5fc0375b587eb6
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:59:06 2010 +0000

util: update new merges to pipe_resource

commit cf6bef0afee10763c78509a3d17e9a6e49bcd3c8
Merge: 1997231 6de8e56
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:38:50 2010 +0000

Merge commit 'origin/master' into gallium-resources

commit 1997231916144485c3c4a36f53eda39fce460272
Merge: ad88ac7 e1ee3ea
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Mar 17 08:46:38 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_blit.h
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/auxiliary/util/u_gen_mipmap.h
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_gen_mipmap.c

commit ad88ac79034a91670940276e722bdd398d5c9023
Merge: 77bc770 8cdfd12
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 16 09:13:07 2010 +0000

Merge branch 'gallium-sampler-view' into gallium-resources

Conflicts:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/softpipe/sp_texture.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_framebuffer.c
src/mesa/state_tracker/st_texture.c

commit 77bc770c991ea025c82eaa4e0e2390efd825d96d
Author: Keith Whitwell <keithw@vmware.com>
Date: Mon Mar 15 22:21:48 2010 +0000

util: missing file

commit f83c91db8ae63a3c3a34ff21492427a5663fb760
Merge: c1d4774 42910eb
Author: Keith Whitwell <keithw@vmware.com>
Date: Mon Mar 15 09:48:58 2010 +0000

Merge commit 'origin/gallium-sampler-view' into gallium-resources

Conflicts:
src/gallium/drivers/nv40/nv40_transfer.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/drivers/trace/tr_drm.c

commit dd7ba1378fc50710667724d30d6d4cf1125ad61e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 23:54:36 2010 +0000

gallium: start a cleanup of buffer_usage

Remove fairly meaningless CPU/GPU READ/WRITE flags and
replace with proper usages.

commit c1d4774187189f4af8ff421b210824f3d53ceefb
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 23:05:45 2010 +0000

llvmpipe: don't FREE userbuffer data

commit 9bfa07afe179f8060e7beefb754a29c4d9c6e349
Merge: 65757a1 08cddfe
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:54:51 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_scene.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/llvmpipe/lp_texture.h
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/svga/svga_screen_texture.c

commit 65757a143f8e3fcd7afbc1ff92db44a823edf46c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:41:17 2010 +0000

svga: build fixes

commit 2f5435220501d4b3050cab2bb1dce6174cd13ff6
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:39:25 2010 +0000

gallivm: build fix

commit 42642ec0984107d82b740711f2debbf38457a06e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:38:33 2010 +0000

llvmpipe: convert to pipe_resources

commit 7bbcb21e20cb545ef8dd5fc61d67ed931c69e813
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:19:30 2010 +0000

gallivm: convert to pipe_resources

commit 88ae0d04610ca52649b42e32141a52af6d5a739b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 21:01:22 2010 +0000

configs: build svga

commit 0e112bc69828e65085ebfaef895ecd78fe53f1c4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 21:01:17 2010 +0000

gallium: restore PIPE_BUFFER_USAGE_CUSTOM

commit 102aca688b95c976b7178b84092fba7d041ff9d2
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 21:00:41 2010 +0000

util: more transfer helpers

commit a79f6a4a0836fc64c07f9aeec21d914474fe3649
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 20:59:36 2010 +0000

svga: convert to use pipe_resrource

As with others so far, a fairly shallow conversion.

commit 087fb54492fa5e3baf040c5efbf7dacd98a8849b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:38:08 2010 +0000

brw: fix function name

commit cfc9dd707d16e06fd23b6926da3a6e2269f31dc8
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:19:06 2010 +0000

gallium: enable brw compile

commit 8a5b86d76bdd3c7de63322423f59940a4dc2ee25
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:18:50 2010 +0000

brw: compiles with pipe_resource

commit 563ca458b548c41ca4dca559354c16ca1a80d009
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:18:42 2010 +0000

i915: hook up userbuffer create

commit b5095b48247b6020e36cc942ac145c3fccbe9a19
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:20:51 2010 +0000

i915: use helpers for is_resource_referenced

commit d5392bdc6d70002acf9c5bac0fde14ba405c4d84
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:20:38 2010 +0000

util: helpers for is_resource_referenced

commit 2f3492a5aefbb2e745f6700d8e910ebb5cbb98cf
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:08:50 2010 +0000

i915: remove buffer.c again

commit 1373a35b65fcc25ec6cdfea2703bbb3417de2c6d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:08:34 2010 +0000

i915: add new files to scons

commit 0251612d70e57fe38e10e75915b394631d224f2c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 16:38:29 2010 +0000

i915: compiling with pipe_resources

commit 9a0235864252929a8eedd44dbd2fe30fe54c531d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 13:51:16 2010 +0000

gallium: remove inline_read transfer

commit a6ba315e25793e0c228d3a4ae2f8201634dc9ff0
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 13:50:32 2010 +0000

trace: get running

Some dumping will be incorrect or disabled, but it runs without
crashing

commit 2133f1d90aa919662a8420a0cf3b4557e6ec1afd
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 13:49:42 2010 +0000

gallium: remove the inline_read transfer

There aren't enough users of this to justify it.

commit bccaf1fa30881f6b4fb189a9b74fc7af79c3b481
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:30:37 2010 +0000

identity: hook up inline transfer operations

commit e4c152a344f2f53c842b810724a2ae7cb4554f58
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:21:54 2010 +0000

gallium: build trace and identity

commit 0b5a311db78852fa9fd021e17b5968a1e0436b49
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:21:36 2010 +0000

gallium: add more of the transfer state to pipe_transfer

Not really sure if recording all the arguments to the
create_{transfer,texture,surface,etc} functions in the result of those
calls is a great idea, but it seems we're fairly dependent on it
throughout the code.

commit a23985c26eafe76b0a7dacc892e50cb589f211fe
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:19:46 2010 +0000

identity: compiles with pipe_resources

commit d0d630944304c208f6dade6ef8836763ee2bc7b4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:13:02 2010 +0000

trace: compiles with pipe_resources

commit a4451ea459cc8bfc915fe6aed2891b90854b6c9d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:39:50 2010 +0000

softpipe: give userbuffers a format other than NONE

Most mesa demos working

commit 32bb1bd4ba29884a4ecfa11c8441d33dfceabcef
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:39:21 2010 +0000

util: correct argument order in pipe_buffer_map

commit 7e2696c06445282feb781047277b260308760a33
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:32:55 2010 +0000

softpipe: transfer flush

commit a0543b13c042e3c1142522d9d136f16fd4cabf78
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:32:13 2010 +0000

util: noop implementation of transfer_flush_region

commit ce418533be752dbeb164e7ff82a99483048e482b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:26:07 2010 +0000

gallium: softpipe runs gears with pipe_resources

commit bfda4f2eb34498e4b7f3c608d30fccff6bb9651b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:25:48 2010 +0000

util: get clip_tile working again

commit f5ef219c3bed62b6a0da842e675fae16268e0fbe
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:43:20 2010 +0000

softpipe: use u_transfer helpers

commit 072957aab25affecf0702e925310e46c694a5ee4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:42:46 2010 +0000

util: helpers for inline transfers

commit 9c45561fb0d7a52400093bcb2ce5f727fafd7777
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:42:25 2010 +0000

util: fix typo calculating transfer box

commit f3e98fd47f36804d019a684d49ff230df3ab0cf5
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:25:46 2010 +0000

st/vega: convert to pipe_resource

commit d1b7b00afc944f6499c83d676c7642115d62a62c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 08:37:56 2010 +0000

gallium: begin converting drivers to pipe_resource

Work in progress...

commit 51c25117f5d6da1926a2be5ecc66677952a8abf0
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 20:16:27 2010 +0000

gallium: work in progress on layering resources on top of old textures

Helper code in an aux module to avoid rewriting all the drivers.

commit fb6764d3ce95c55aa78af2f1c8cbb17b79ce1ba2
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 19:19:09 2010 +0000

heaps of wip

commit ee6b3bc730fcdaf8da3646d62f04578ec06d36a1
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 16:38:02 2010 +0000

wip2

commit 1830880212445189fe267d615075239ed17c7cc0
Merge: 90b4045 47bfbd4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 15:14:03 2010 +0000

Merge branch 'gallium-sampler-view' into gallium-resources

Conflicts:
src/gallium/include/pipe/p_context.h
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_texture.h

commit 90b4045fbc0a093fcd04efba7e045ec259c490b8
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 14:52:43 2010 +0000

wip
3dvl/Makefile
3dvl/nouveau/Makefile
3dvl/nouveau/nouveau_context_vl.c
3dvl/nouveau/nouveau_context_vl.h
3dvl/nouveau/nouveau_screen_vl.c
3dvl/nouveau/nouveau_screen_vl.h
3dvl/nouveau/nouveau_swapbuffers.c
3dvl/nouveau/nouveau_swapbuffers.h
3dvl/vl_winsys.h
3dvl/xlib/Makefile
3dvl/xlib/xsp_winsys.c
ouveau/drm/nouveau_drm_api.c
adeon/drm/radeon_drm.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
w/dri/dri_sw_winsys.c
w/gdi/gdi_sw_winsys.c
w/null/null_sw_winsys.c
w/wrapper/wrapper_sw_winsys.c
w/xlib/xlib_sw_winsys.c
4c26cdbe01619abad413b09317f2842dcf1a4d57 03-Apr-2010 Dave Airlie <airlied@redhat.com> r300g: fix color tiling for buffer from X server.

The tiling setup needs a bit of work, but this should be good enough for now,
when we get buffers from the kernel we need to store their tiling properties.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon/drm/radeon_buffer.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
625e024b186829f199458679921916971a5b00cb 29-Mar-2010 George Sapountzis <gsapountzis@gmail.com> st/dri/sw: add drisw_api similarly to dri1_api

I am pretty sure that this is in gallium spirit, so commit. Thanks to Chia-I
for suggesting this.
w/dri/dri_sw_winsys.c
w/dri/dri_sw_winsys.h
6cc5fbd76b8994da8174c39f8eacb6605f4aa3b2 29-Mar-2010 George Sapountzis <gsapountzis@gmail.com> ws/sw/dri: s/xm/dri_sw/
w/dri/dri_sw_winsys.c
d0d73a38dab49d762dfbe596b66634d5d187501a 28-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/xlib: Call XFlush after PutImage

Want to see the results.
w/xlib/xlib_sw_winsys.c
a24fc90703f62d286031cb2ee8f625ef728243fd 28-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drisw: probably better hack for stride and some comments
w/dri/dri_sw_winsys.c
3bfa23317c6b1b52ec637a03a0b623228ffc95ef 27-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drisw: add comment to libGL about stride
w/dri/dri_sw_winsys.c
f4e561ce127cf484d7c76c29b8cd026c9ad5cebc 27-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drisw: make stride issue profound
w/dri/dri_sw_winsys.c
7f91f2efb5b92a9ad8506c54643142f40f286d5c 26-Mar-2010 Jakob Bornecrantz <wallbraker@gmail.com> swrastg: Build with scons
Conscript
w/dri/SConscript
fb70f456fce6b9cca9330e1c1e174153e532693e 26-Mar-2010 Jakob Bornecrantz <wallbraker@gmail.com> svga/drm: Fix build under scons
vga/drm/vmw_screen_dri.c
bc88c95990f871a206a8fe93e7541f1f41841f7e 25-Mar-2010 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Rename winsys prefix to i915_ from intel_

Since the winsys isn't shared with i965 and never will be
Conscript
915/drm/Makefile
915/drm/SConscript
915/drm/i915_drm_api.c
915/drm/i915_drm_batchbuffer.c
915/drm/i915_drm_buffer.c
915/drm/i915_drm_fence.c
915/drm/i915_drm_winsys.h
915/drm/intel_drm_api.c
915/drm/intel_drm_batchbuffer.c
915/drm/intel_drm_buffer.c
915/drm/intel_drm_fence.c
915/drm/intel_drm_winsys.h
bb289a8a7019cc0b40121e91fe5cd404a76b1fb5 25-Mar-2010 George Sapountzis <gsapountzis@gmail.com> swrastg_dri: hack for loader hardcoded stride
w/dri/dri_sw_winsys.c
007e0e3ef90d73f232c463e353da13378ffcef63 25-Mar-2010 George Sapountzis <gsapountzis@gmail.com> swrastg_dri: add winsys and target
w/dri/Makefile
w/dri/dri_sw_winsys.c
w/dri/dri_sw_winsys.h
738850e52260a76ffee57e22193b21126d6d39a1 24-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Make scons build dri/xorg drivers again
Conscript
915/drm/SConscript
965/drm/SConscript
adeon/drm/SConscript
42a1bcc22f0ed84faa51dafe9e61703e02e93eba 24-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> radeong: Fix scons build
adeon/drm/SConscript
c9f98673c5b6830cd1f41c0c53a9e5e299d47464 16-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Reorg winsys directories

Attached output from commit.
delete mode 100644 src/gallium/winsys/drm/SConscript
delete mode 100644 src/gallium/winsys/drm/i965/SConscript
delete mode 100644 src/gallium/winsys/drm/intel/Makefile
delete mode 100644 src/gallium/winsys/drm/intel/SConscript
delete mode 100644 src/gallium/winsys/drm/nouveau/Makefile
delete mode 100644 src/gallium/winsys/drm/radeon/Makefile
delete mode 100644 src/gallium/winsys/drm/radeon/SConscript
delete mode 100644 src/gallium/winsys/drm/vmware/Makefile
delete mode 100644 src/gallium/winsys/drm/vmware/SConscript
rename src/gallium/winsys/{drm/intel/gem => i915/drm}/Makefile (82%)
rename src/gallium/winsys/{drm/intel/gem => i915/drm}/SConscript (100%)
rename src/gallium/winsys/{drm/intel/gem => i915/drm}/intel_drm_api.c (100%)
rename src/gallium/winsys/{drm/intel/gem => i915/drm}/intel_drm_batchbuffer.c (100%)
rename src/gallium/winsys/{drm/intel/gem => i915/drm}/intel_drm_buffer.c (100%)
rename src/gallium/winsys/{drm/intel/gem => i915/drm}/intel_drm_fence.c (100%)
rename src/gallium/winsys/{drm/intel/gem => i915/drm}/intel_drm_winsys.h (100%)
rename src/gallium/winsys/{drm/i965/gem => i965/drm}/Makefile (78%)
rename src/gallium/winsys/{drm/i965/gem => i965/drm}/SConscript (100%)
rename src/gallium/winsys/{drm/i965/gem => i965/drm}/i965_drm_api.c (98%)
rename src/gallium/winsys/{drm/i965/gem => i965/drm}/i965_drm_buffer.c (100%)
rename src/gallium/winsys/{drm/i965/gem => i965/drm}/i965_drm_winsys.h (100%)
rename src/gallium/winsys/{drm => }/i965/xlib/Makefile (97%)
rename src/gallium/winsys/{drm => }/i965/xlib/xlib_i965.c (100%)
rename src/gallium/winsys/{drm => }/nouveau/drm/Makefile (79%)
rename src/gallium/winsys/{drm => }/nouveau/drm/nouveau_dri.h (100%)
rename src/gallium/winsys/{drm => }/nouveau/drm/nouveau_drm_api.c (100%)
rename src/gallium/winsys/{drm => }/nouveau/drm/nouveau_drm_api.h (100%)
rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/Makefile (79%)
rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/SConscript (100%)
rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_buffer.h (100%)
rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_drm.c (100%)
rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_drm.h (100%)
rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_drm_buffer.c (100%)
rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_r300.c (100%)
rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_r300.h (100%)
rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_winsys.h (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/Makefile (63%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/SConscript (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_buffer.c (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_buffer.h (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_context.c (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_context.h (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_fence.c (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_fence.h (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen.c (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen.h (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen_dri.c (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen_ioctl.c (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen_pools.c (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen_svga.c (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_surface.c (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_surface.h (100%)
rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmwgfx_drm.h (100%)
rename src/gallium/winsys/{drm/i965 => sw}/Makefile (61%)
copy src/gallium/winsys/{drm/sw => sw/drm}/Makefile (73%)
rename src/gallium/winsys/{drm/sw => sw/drm}/sw_drm_api.c (98%)
rename src/gallium/winsys/{drm/sw => sw/drm}/sw_drm_api.h (100%)
rename src/gallium/winsys/{ => sw}/gdi/SConscript (100%)
rename src/gallium/winsys/{ => sw}/gdi/gdi_sw_winsys.c (100%)
rename src/gallium/winsys/{ => sw}/gdi/gdi_sw_winsys.h (100%)
rename src/gallium/winsys/{ => sw}/null/Makefile (78%)
rename src/gallium/winsys/{ => sw}/null/SConscript (100%)
rename src/gallium/winsys/{ => sw}/null/null_sw_winsys.c (100%)
rename src/gallium/winsys/{ => sw}/null/null_sw_winsys.h (100%)
rename src/gallium/winsys/{drm/sw => sw/wrapper}/Makefile (65%)
rename src/gallium/winsys/{drm/sw => sw/wrapper}/wrapper_sw_winsys.c (100%)
rename src/gallium/winsys/{drm/sw => sw/wrapper}/wrapper_sw_winsys.h (100%)
rename src/gallium/winsys/{ => sw}/xlib/Makefile (79%)
rename src/gallium/winsys/{ => sw}/xlib/SConscript (100%)
rename src/gallium/winsys/{ => sw}/xlib/xlib_sw_winsys.c (100%)
Conscript
rm/SConscript
rm/i965/Makefile
rm/i965/SConscript
rm/i965/gem/Makefile
rm/i965/gem/SConscript
rm/i965/gem/i965_drm_api.c
rm/i965/gem/i965_drm_buffer.c
rm/i965/gem/i965_drm_winsys.h
rm/i965/xlib/Makefile
rm/i965/xlib/xlib_i965.c
rm/intel/Makefile
rm/intel/SConscript
rm/intel/gem/Makefile
rm/intel/gem/SConscript
rm/intel/gem/intel_drm_api.c
rm/intel/gem/intel_drm_batchbuffer.c
rm/intel/gem/intel_drm_buffer.c
rm/intel/gem/intel_drm_fence.c
rm/intel/gem/intel_drm_winsys.h
rm/nouveau/Makefile
rm/nouveau/drm/Makefile
rm/nouveau/drm/nouveau_dri.h
rm/nouveau/drm/nouveau_drm_api.c
rm/nouveau/drm/nouveau_drm_api.h
rm/radeon/Makefile
rm/radeon/SConscript
rm/radeon/core/Makefile
rm/radeon/core/SConscript
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_drm_buffer.c
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
rm/radeon/core/radeon_winsys.h
rm/sw/Makefile
rm/sw/sw_drm_api.c
rm/sw/sw_drm_api.h
rm/sw/wrapper_sw_winsys.c
rm/sw/wrapper_sw_winsys.h
rm/vmware/Makefile
rm/vmware/SConscript
rm/vmware/core/Makefile
rm/vmware/core/SConscript
rm/vmware/core/vmw_buffer.c
rm/vmware/core/vmw_buffer.h
rm/vmware/core/vmw_context.c
rm/vmware/core/vmw_context.h
rm/vmware/core/vmw_fence.c
rm/vmware/core/vmw_fence.h
rm/vmware/core/vmw_screen.c
rm/vmware/core/vmw_screen.h
rm/vmware/core/vmw_screen_dri.c
rm/vmware/core/vmw_screen_ioctl.c
rm/vmware/core/vmw_screen_pools.c
rm/vmware/core/vmw_screen_svga.c
rm/vmware/core/vmw_surface.c
rm/vmware/core/vmw_surface.h
rm/vmware/core/vmwgfx_drm.h
di/SConscript
di/gdi_sw_winsys.c
di/gdi_sw_winsys.h
915/drm/Makefile
915/drm/SConscript
915/drm/intel_drm_api.c
915/drm/intel_drm_batchbuffer.c
915/drm/intel_drm_buffer.c
915/drm/intel_drm_fence.c
915/drm/intel_drm_winsys.h
965/drm/Makefile
965/drm/SConscript
965/drm/i965_drm_api.c
965/drm/i965_drm_buffer.c
965/drm/i965_drm_winsys.h
965/xlib/Makefile
965/xlib/xlib_i965.c
ouveau/drm/Makefile
ouveau/drm/nouveau_dri.h
ouveau/drm/nouveau_drm_api.c
ouveau/drm/nouveau_drm_api.h
ull/Makefile
ull/SConscript
ull/null_sw_winsys.c
ull/null_sw_winsys.h
adeon/drm/Makefile
adeon/drm/SConscript
adeon/drm/radeon_buffer.h
adeon/drm/radeon_drm.c
adeon/drm/radeon_drm.h
adeon/drm/radeon_drm_buffer.c
adeon/drm/radeon_r300.c
adeon/drm/radeon_r300.h
adeon/drm/radeon_winsys.h
vga/drm/Makefile
vga/drm/SConscript
vga/drm/vmw_buffer.c
vga/drm/vmw_buffer.h
vga/drm/vmw_context.c
vga/drm/vmw_context.h
vga/drm/vmw_fence.c
vga/drm/vmw_fence.h
vga/drm/vmw_screen.c
vga/drm/vmw_screen.h
vga/drm/vmw_screen_dri.c
vga/drm/vmw_screen_ioctl.c
vga/drm/vmw_screen_pools.c
vga/drm/vmw_screen_svga.c
vga/drm/vmw_surface.c
vga/drm/vmw_surface.h
vga/drm/vmwgfx_drm.h
w/Makefile
w/drm/Makefile
w/drm/sw_drm_api.c
w/drm/sw_drm_api.h
w/gdi/SConscript
w/gdi/gdi_sw_winsys.c
w/gdi/gdi_sw_winsys.h
w/null/Makefile
w/null/SConscript
w/null/null_sw_winsys.c
w/null/null_sw_winsys.h
w/wrapper/Makefile
w/wrapper/wrapper_sw_winsys.c
w/wrapper/wrapper_sw_winsys.h
w/xlib/Makefile
w/xlib/SConscript
w/xlib/xlib_sw_winsys.c
lib/Makefile
lib/SConscript
lib/xlib_sw_winsys.c
43218a45a4cdbe2bc92867dc143f4b0e5fe9ca8d 24-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Move xorg drivers to targets

Attached output from git commit:
rename src/gallium/{winsys/drm/intel/xorg => targets/xorg-i915}/Makefile (95%)
rename src/gallium/{winsys/drm/intel/xorg => targets/xorg-i915}/intel_xorg.c (98%)
rename src/gallium/{winsys/drm/i965/xorg => targets/xorg-i965}/Makefile (78%)
rename src/gallium/{winsys/drm/i965/xorg => targets/xorg-i965}/intel_xorg.c (98%)
rename src/gallium/{winsys/drm/nouveau/xorg => targets/xorg-nouveau}/Makefile (96%)
rename src/gallium/{winsys/drm/nouveau/xorg => targets/xorg-nouveau}/nouveau_xorg.c (98%)
rename src/gallium/{winsys/drm/radeon/xorg => targets/xorg-radeon}/Makefile (73%)
rename src/gallium/{winsys/drm/radeon/xorg => targets/xorg-radeon}/radeon_xorg.c (98%)
rename src/gallium/{winsys/drm/vmware/xorg => targets/xorg-vmwgfx}/Makefile (97%)
rename src/gallium/{winsys/drm/vmware/xorg => targets/xorg-vmwgfx}/SConscript (100%)
rename src/gallium/{winsys/drm/vmware/xorg => targets/xorg-vmwgfx}/vmw_driver.h (100%)
rename src/gallium/{winsys/drm/vmware/xorg => targets/xorg-vmwgfx}/vmw_hook.h (100%)
rename src/gallium/{winsys/drm/vmware/xorg => targets/xorg-vmwgfx}/vmw_ioctl.c (99%)
rename src/gallium/{winsys/drm/vmware/xorg => targets/xorg-vmwgfx}/vmw_screen.c (100%)
rename src/gallium/{winsys/drm/vmware/xorg => targets/xorg-vmwgfx}/vmw_video.c (99%)
rename src/gallium/{winsys/drm/vmware/xorg => targets/xorg-vmwgfx}/vmw_xorg.c (100%)
rm/i965/xorg/Makefile
rm/i965/xorg/intel_xorg.c
rm/intel/xorg/Makefile
rm/intel/xorg/intel_xorg.c
rm/nouveau/xorg/Makefile
rm/nouveau/xorg/nouveau_xorg.c
rm/radeon/xorg/Makefile
rm/radeon/xorg/radeon_xorg.c
rm/vmware/SConscript
rm/vmware/xorg/Makefile
rm/vmware/xorg/SConscript
rm/vmware/xorg/vmw_driver.h
rm/vmware/xorg/vmw_hook.h
rm/vmware/xorg/vmw_ioctl.c
rm/vmware/xorg/vmw_screen.c
rm/vmware/xorg/vmw_video.c
rm/vmware/xorg/vmw_xorg.c
f5ba2cdeb902993b993187a958aad89c5ac79d6b 24-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Move egl drivers to targets

Atteched output from git commit:
rename src/gallium/{winsys/drm => targets}/Makefile.egl (100%)
rename src/gallium/{winsys/drm/intel/egl => targets/egl-i915}/Makefile (86%)
rename src/gallium/{winsys/drm/i965/egl => targets/egl-i915}/dummy.c (100%)
rename src/gallium/{winsys/drm/i965/egl => targets/egl-i965}/Makefile (86%)
rename src/gallium/{winsys/drm/intel/egl => targets/egl-i965}/dummy.c (100%)
rename src/gallium/{winsys/drm/nouveau/egl => targets/egl-nouveau}/Makefile (88%)
rename src/gallium/{winsys/drm/nouveau/egl => targets/egl-nouveau}/dummy.c (100%)
rename src/gallium/{winsys/drm/radeon/egl => targets/egl-radeon}/Makefile (87%)
rename src/gallium/{winsys/drm/radeon/egl => targets/egl-radeon}/dummy.c (100%)
create mode 100644 src/gallium/targets/egl-swrast/Makefile
create mode 100644 src/gallium/targets/egl-swrast/swrast_glue.c
rename src/gallium/{winsys/drm/vmware/egl => targets/egl-vmwgfx}/Makefile (86%)
rename src/gallium/{winsys/drm/swrast/egl => targets/egl-vmwgfx}/dummy.c (100%)
delete mode 100644 src/gallium/winsys/drm/swrast/Makefile
delete mode 100644 src/gallium/winsys/drm/swrast/core/Makefile
delete mode 100644 src/gallium/winsys/drm/swrast/core/swrast_drm_api.c
delete mode 100644 src/gallium/winsys/drm/swrast/egl/Makefile
delete mode 100644 src/gallium/winsys/drm/vmware/egl/dummy.c
rm/Makefile.egl
rm/i965/egl/Makefile
rm/i965/egl/dummy.c
rm/intel/egl/Makefile
rm/intel/egl/dummy.c
rm/nouveau/egl/Makefile
rm/nouveau/egl/dummy.c
rm/radeon/egl/Makefile
rm/radeon/egl/dummy.c
rm/swrast/Makefile
rm/swrast/core/Makefile
rm/swrast/core/swrast_drm_api.c
rm/swrast/egl/Makefile
rm/swrast/egl/dummy.c
rm/vmware/egl/Makefile
rm/vmware/egl/dummy.c
be38b32531cc974ff8a33e4504d4169150be4d55 23-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Move dri drivers to targets

Attached output from git commit:
rename src/gallium/{winsys/drm/Makefile.template => targets/Makefile.dri} (100%)
rename src/gallium/{winsys/drm/intel/dri => targets/dri-i915}/Makefile (75%)
rename src/gallium/{winsys/drm/intel/dri => targets/dri-i915}/SConscript (100%)
rename src/gallium/{winsys/drm/i965/dri => targets/dri-i965}/Makefile (76%)
rename src/gallium/{winsys/drm/i965/dri => targets/dri-i965}/SConscript (100%)
rename src/gallium/{winsys/drm/nouveau/dri => targets/dri-nouveau}/Makefile (86%)
rename src/gallium/{winsys/drm/radeon/dri => targets/dri-radeong}/Makefile (85%)
rename src/gallium/{winsys/drm/radeon/dri => targets/dri-radeong}/SConscript (100%)
rename src/gallium/{winsys/drm/vmware/dri => targets/dri-vmwgfx}/Makefile (85%)
rename src/gallium/{winsys/drm/vmware/dri => targets/dri-vmwgfx}/SConscript (100%)
rm/Makefile.template
rm/i965/SConscript
rm/i965/dri/Makefile
rm/i965/dri/SConscript
rm/intel/SConscript
rm/intel/dri/Makefile
rm/intel/dri/SConscript
rm/nouveau/dri/Makefile
rm/radeon/SConscript
rm/radeon/dri/Makefile
rm/radeon/dri/SConscript
rm/vmware/SConscript
rm/vmware/dri/Makefile
rm/vmware/dri/SConscript
41d2ebf2020311eb032882d9b0bd1efe916f1feb 16-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Remove GALLIUM_WINSYS_DRM_DIRS
rm/Makefile
7e246e6aa63979d53731a591f4caee3651c1d96b 23-Mar-2010 Luca Barbieri <luca@luca-barbieri.com> dri: make unresolved symbol test link work even without a libGL.so

Currently the test link uses -lGL to define the glapi symbols.

This makes it impossible to build DRI drivers on systems without
Mesa installed and without building the libGL from the Mesa tree
first.

Some automated build systems trigger this problem.

This commit removes -lGL and instead adds a dummy implementation of
glapi to dri_test.c

This, along with Kristian's commit, should fix all known regressions
due to the addition of unresolved symbol checking.
rm/Makefile.template
e725ef171b5a4d5425461f237d9ccab223806913 16-Mar-2010 Dan Nicholson <dbn.lists@gmail.com> Change libX11 variables to not conflict with AC_PATH_XTRA

The variable X_LIBS from AC_PATH_XTRA contains only the -L searchdir
parameter and not the -lX11 to link to Xlib. Use X11 prefixed build vars
for linking with Xlib to avoid the conflict.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
lib/Makefile
ba5a53edd12fac24c176e714560b1f9ec255bbdb 23-Mar-2010 Kristian Høgsberg <krh@bitplanet.net> dri: Add $(DRI_LIB_DEPS) when linking the test binary

This will make sure we pick up libdrm_$(chipset).so from the right place.
rm/Makefile.template
fff86eb0aab506fdfe3e956587d453c52ab07730 23-Mar-2010 Luca Barbieri <luca@luca-barbieri.com> dri: use mv -f instead of mv to ensure no prompting occurs

Using just mv may cause prompts on some systems/configurations.
rm/Makefile.template
3e17a5b047124c46ee45dbd1848127c67e0d62f3 15-Mar-2010 Luca Barbieri <luca@luca-barbieri.com> dri: test whether the built drivers have unresolved symbols

This is a different approach to solving this problem that the patch
I previously posted, and unlike that, should not cause any problems.

Right now undefined symbols in DRI drivers will still allow the
build to succeed.

As a result, people modifying drivers they cannot test risk creating
unloadable drivers with no easy way of automatically avoiding it.

For instance, the modifications to nv50 for context transfers caused
such an issue recently.

Unfortunately, just adding -Wl,--no-undefined doesn't work, because
the DRI drivers depend on glapi symbols, but do not depend on
libGL.so.1

Adding -lGL is not the correct solution since DRI drivers are not loaded
just by libGL, but also by X and possibly by other clients.

So, this patch simply tries to build an executable linked to the DRI
driver and to libGL.
If the DRI driver contains any undefined symbols not satisfied by its
dependencies or by libGL, this will fail.

This solution does not alter the built drivers, and does not significantly
slow down the build process.

All classic DRI drivers as well as all the Gallium drivers with configure
options compiled successfully with this change.

Thanks to Xavier Chantry <chantry.xavier@gmail.com> and
Michel Daenzer <michel@daenzer.net> for helping with this.

Signed-off-by: Luca Barbieri <luca@luca-barbieri.com>
Acked-by: Brian Paul <brian.e.paul@gmail.com>
rm/Makefile.template
1f25eca311715f5ebceaee50ba4d68c3c9ea79a6 23-Mar-2010 Marek Olšák <maraeo@gmail.com> radeong: fix build issue with libdrm < 2.4.19
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm_buffer.c
ed61faec7ea307ff22738b4fcc96933f910e4145 23-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Always initialize this variable.

May or may not be responsible for slight increases in ipers FPS.
rm/radeon/core/radeon_drm_buffer.c
12dc4971735a8703c298d35eb21e3d1a2e053217 14-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: add and enable square microtiling

It requires DRM 2.1.0 (e.g. kernel 2.6.34) and is disabled on older ones.

Finally, the texture tiling implementation is now complete. Uff.
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm_buffer.c
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_winsys.h
33d2349119ada410dbfbaa667fc7aef8b60d1a6f 21-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: cleanup tiling flags propagation
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm_buffer.c
rm/radeon/core/radeon_r300.c
bc5778e2023543e5049ab41398aa28fb0709f5f2 21-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: remove unused code
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
a0ce95576463cedb817ad3b262c82eb06eec9b9e 21-Mar-2010 George Sapountzis <gsapountzis@gmail.com> Revert "drm/sw: does not need sw_winsys"

This reverts commit 97a694e2211dc804090f282d8e096c028f29579f.
rm/sw/sw_drm_api.c
15c7fa460b93039a1676cc08a218101f92681190 21-Mar-2010 George Sapountzis <gsapountzis@gmail.com> Revert "gallium: add soft screen helper"

This reverts commit f87a5f6499f51f651c2a9f2d4682875b22926905.
rm/sw/Makefile
rm/sw/soft_screen.c
rm/sw/sw_drm_api.c
f9c0cbd1ad0c5948ea577edb5c76b0c45976a285 21-Mar-2010 George Sapountzis <gsapountzis@gmail.com> Revert "drm/sw: just s/softpipe_create_screen/gallium_soft_create_screen/"

This reverts commit 5d524cce9c4fcc18ed977801d59ba7bb911020db.
rm/sw/sw_drm_api.c
5d524cce9c4fcc18ed977801d59ba7bb911020db 21-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drm/sw: just s/softpipe_create_screen/gallium_soft_create_screen/

This partially reverts commit f87a5f6499f51f651c2a9f2d4682875b22926905.
rm/sw/sw_drm_api.c
f87a5f6499f51f651c2a9f2d4682875b22926905 19-Mar-2010 George Sapountzis <gsapountzis@gmail.com> gallium: add soft screen helper
rm/sw/Makefile
rm/sw/soft_screen.c
rm/sw/sw_drm_api.c
97a694e2211dc804090f282d8e096c028f29579f 19-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drm/sw: does not need sw_winsys
rm/sw/sw_drm_api.c
bb324182fc7cd9cfaa62ee44bdd9287f1ed2ac7a 21-Mar-2010 Dave Airlie <airlied@redhat.com> r300g: fix occlusion query hangs.

Okay need to revist the whole OQ stuff anyways, glean test asserts
which is never good.

I'm liking the cached bufmgr restrictions less and less, I think I'll
probably play with the fence and/or busy stuff ASAP and try and clean it up.

Signed-off-by: Dave Airlie <airlied@redhat.com>
rm/radeon/core/radeon_drm_buffer.c
ff1c7baad241dd722341023806e00a07606de206 21-Mar-2010 Dave Airlie <airlied@redhat.com> r300g: add bufmgr cached for vertex/index buffers.

This adds the cached bufmgr for vertex/index buffers on top of the kernel
manager.

Signed-off-by: Dave Airlie <airlied@redhat.com>
rm/radeon/core/radeon_drm_buffer.c
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_winsys.h
7c8221b46008cd4f217d3ddab59dcc4c488a54b3 21-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Use TRUE and FALSE.
rm/radeon/core/radeon_drm_buffer.c
20dedcca3ca5bfeaaa275bec8a14ca8c69615f6a 21-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Test the BO ptr for NULL instead of using a bool.

Slight memory savings, but more importantly also avoids a potential NULL
dereference.
rm/radeon/core/radeon_drm_buffer.c
c2d17dce27d412012a3a45bbde954fb9374d5db9 20-Mar-2010 Dave Airlie <airlied@redhat.com> r300g: winsys fix tiling change flushes.

If we change the tiling on a buffer we need to flush it, the old
radeon_buffer.c code had this but it crossed streams when I ported to
radeon_drm_buffer.c and I missed it. Should fix some piglit regressions.

Signed-off-by: Dave Airlie <airlied@redhat.com>
rm/radeon/core/radeon_drm_buffer.c
e0ce4a4a0994211ead8e5a77cccdd2a084e8a288 16-Mar-2010 Chia-I Wu <olv@lunarg.com> i965g: Fix use of an uninitialized variable.
rm/i965/gem/i965_drm_api.c
8b63f9b497c22cb59678588d921699189f8b712f 11-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> winsys/sw: Add a software winsys layered on a pipe
rm/Makefile
rm/i965/dri/Makefile
rm/i965/gem/i965_drm_api.c
rm/sw/Makefile
rm/sw/sw_drm_api.c
rm/sw/sw_drm_api.h
rm/sw/wrapper_sw_winsys.c
rm/sw/wrapper_sw_winsys.h
di/gdi_sw_winsys.c
ull/null_sw_winsys.c
lib/xlib_sw_winsys.c
68e58a96e80865878e6881dc4d34fcc3ec24eb19 12-Feb-2010 Dave Airlie <airlied@redhat.com> r300g: rebuild screen/winsys interface

This creates a cleaner winsys and drop the simple screen stuff.

It makes r300g use pb_bufmgr structs.

It also tries to avoid overheads from mapping too often.

v5: clean warnings

v6: break out of cache check on first buffer - since most likely
the first busy one implies all after it are busy.

v7: cleanup a bit

v8-merged: drop cman for now to just get all the interface changes in first.
rework to changes that happened upstream

Signed-off-by: Dave Airlie <airlied@redhat.com>
rm/radeon/core/Makefile
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_drm_buffer.c
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
rm/radeon/core/radeon_winsys.h
f9d09a2e7859a2cf025d71b7c3cb189edb6688c4 21-Feb-2010 Luca Barbieri <luca@luca-barbieri.com> nv30, nv40: move last files to nvfx/ and rm -rf nv30 nv40

This is the last nvfx unification patch.

nv[34]0_fragtex.c are moved to the common directory
nv[34]0_shader.h are renamed to nv[34]0_vertprog.h and moved to
the common directory

The separate nv30 and nv40 directories are removed from the build
system
rm/nouveau/dri/Makefile
rm/nouveau/egl/Makefile
rm/nouveau/xorg/Makefile
10f464fc1073e8f3b53dbcf2209a2204f4924094 21-Feb-2010 Luca Barbieri <luca@luca-barbieri.com> nv30, nv40: non-trivially unify nv[34]0_screen.c

The files have the same structure but are substantially different.

They are unified with appropriate conditionals.
rm/nouveau/drm/nouveau_drm_api.c
6321a183319fdcb2ebee757b7f0922efe3f919db 20-Feb-2010 Luca Barbieri <luca@luca-barbieri.com> nvfx: add nvfx directory to build system

Will be used to hold source files unified between nv30 and nv40.

Eventually all nv30 and nv40 code will be moved there and the
nv30 and nv40 directories will be removed.
rm/nouveau/dri/Makefile
rm/nouveau/egl/Makefile
rm/nouveau/xorg/Makefile
de4ee20578a79e024b0de83c40648112f42c994e 13-Mar-2010 Dan Nicholson <dbn.lists@gmail.com> gallium: Respect user's CFLAGS for including X headers

This can break on systems that don't have a system X installation.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
lib/Makefile
bcec6d851ce6ec2d948f03e5a1adfb5871e4e627 13-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: refrain from using immediate mode if it causes slowdown

E.g. when mapping buffers could flush CS or cause waiting
for a busy buffer.

The side effect of this is it also fixes progs/demos/arbocclude however
a separate fix should be proposed to address this issue in other cases
it might occur.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_winsys.h
b13e305ee1a2454265fd957a99640a2e49507bea 12-Mar-2010 Michel Dänzer <daenzer@vmware.com> Merge branch '7.8'
8561bec0ac1ae5a8871c86f1f2cc29d44cb0f878 12-Mar-2010 Michel Dänzer <daenzer@vmware.com> vmwgfx/dri: Fix SCons build.
rm/vmware/dri/SConscript
a8238bb08a95e7ea4430450c304a6bee210df1a6 07-Mar-2010 Younes Manton <younes.m@gmail.com> Merge remote branch 'origin/master' into pipe-video

Conflicts:
configure.ac
src/gallium/auxiliary/vl/Makefile
src/gallium/auxiliary/vl/SConscript
src/gallium/auxiliary/vl/vl_compositor.c
src/gallium/auxiliary/vl/vl_compositor.h
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.h
src/gallium/drivers/nouveau/nouveau_winsys.h
src/gallium/drivers/softpipe/sp_video_context.c
src/gallium/include/pipe/p_video_state.h
src/gallium/include/state_tracker/drm_api.h
src/gallium/state_trackers/xorg/xvmc/surface.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.h
src/gallium/winsys/drm/radeon/core/radeon_drm.c
src/gallium/winsys/g3dvl/nouveau/Makefile
aa311ae61680f0fc300e33e8955c6c58cafd5fb4 11-Mar-2010 Vinson Lee <vlee@vmware.com> winsys/xlib: Fix memory leak.

Memory for xm_dt was allocated twice.
lib/xlib_sw_winsys.c
7b8641bbba995bc3fc299b1018720caa1e91cb9f 10-Mar-2010 José Fonseca <jfonseca@vmware.com> python: More build fixes.
Conscript
e47a619ea262ba1c49f86525b2855a64a5e36a42 10-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/xlib: remove dead lines
lib/xlib_sw_winsys.c
7e29bef7dc7669bdf44f97e235c7a7aed8c52be8 10-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/gdi: add include
di/gdi_sw_winsys.h
5235c5aac7c3a2e4af41cb70864245cc254fb797 10-Mar-2010 José Fonseca <jfonseca@vmware.com> Revert "r300-gallium: Skeleton for integrating into the python statetracker."

This reverts commit 2d56d0839e6db0861131893d67fe23734800085a.

Never actually used.
rm/radeon/python/README
rm/radeon/python/SConscript
rm/radeon/python/radeon_hardpipe_winsys.c
rm/radeon/python/xf86dri.c
rm/radeon/python/xf86dri.h
rm/radeon/python/xf86dristr.h
9a8342ebcd83a2022b3c9b9539c5b15ac56d6440 10-Mar-2010 Chia-I Wu <olv@lunarg.com> winsys/drm: Handle circular dependencies in Makefile.egl.

The libraries have circular dependencies. Use --start-group and
--end-group when producing the final shared libraries.
rm/Makefile.egl
02716cf7d16543d5dedc6e550895d77139ad2432 09-Mar-2010 José Fonseca <jfonseca@vmware.com> null: Add a null software winsys.

One where framebuffer data will be read via texture transfers.

Useful for e.g., python state tracker.
Conscript
ull/Makefile
ull/SConscript
ull/null_sw_winsys.c
ull/null_sw_winsys.h
3cadd983e875ebd2ccdde5287af1dcd3abad6db8 09-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/gdi: fix typo
di/SConscript
0df858a8d541e342dfe569091b665c2a6dff7ef0 09-Mar-2010 Keith Whitwell <keithw@vmware.com> gallium: create target for gdi libgl
di/SConscript
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
di/gdi_sw_winsys.c
25b9aafbd2f2d0737c23b4c59778c4e41f046d39 09-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/xlib: no dependency on mesa state tracker
lib/SConscript
d0aea650320fec0b8e01110eeee22b1f3700d587 09-Mar-2010 Keith Whitwell <keithw@vmware.com> gallium: create helper for swrast+xlib combination

Several targets may want to reuse this code. It's pretty simple, not
sure if this is really a win.
rm/i965/xlib/xlib_i965.c
3c57c01a44c294e69d902207b2ec94d28a397a51 09-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/xlib: remove self-knowledge about users of xlib winsys

Several software rasterizers can make use of this winsys, but there
isn't any reason why the winsys itself should know about them.

This change moves that information into the libgl-xlib target.

Need to fix up other targets making use of this winsys.
lib/Makefile
lib/SConscript
lib/xlib.c
lib/xlib.h
lib/xlib_cell.c
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
lib/xlib_sw_winsys.c
27a7f9454f190ebb51834e9d2d74c55766cbb29f 09-Mar-2010 Brian Paul <brianp@vmware.com> cell: fix up assorted compilation problems

The driver is pretty much totally broken though.
lib/xlib_cell.c
ff407a117c7bd4e9f370f8ec204d3f7b4e7f91a2 09-Mar-2010 José Fonseca <jfonseca@vmware.com> gdi: Fixup llvmpipe gdi winsys too.
di/gdi_llvmpipe_winsys.c
706eda30578cbdd1456c09ccc2a570a5d6a99c92 09-Mar-2010 José Fonseca <jfonseca@vmware.com> scons: Add new targets option.

This will likely change. Most probably we'll just add an alias to indvidual
targets and use the regular scons targets arguments.
lib/SConscript
b694f321707c98c71478aceb11f814643109367b 09-Mar-2010 Keith Whitwell <keithw@vmware.com> winsys/gdi: get softpipe version compiling
di/SConscript
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
di/gdi_sw_winsys.c
di/gdi_sw_winsys.h
3db9644a9efd37fdefbde9ef5f9e60f44938d614 09-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/gdi: missing file
di/gdi_sw_winsys.h
ce30b5bf2c4ff864542c038f59fc69c3e6518acd 09-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/gdi: sketch of gdi changes
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
di/gdi_sw_winsys.c
65233674d3598fee90d762b0c2826752f2619f05 09-Mar-2010 Keith Whitwell <keithw@vmware.com> cell: untwiddle surface contents in flush_frontbuffer()

Don't make the shared software winsys rely on internal knowledge about
the cell driver's texture twiddling.

This is just a sketch and hasn't even been compile tested.
lib/xlib_cell.c
8ac10162f1412469698322c1c1baf5aaf78a4645 09-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/xlib: remove USE_XSHM preprocessor macro
lib/SConscript
lib/xlib_sw_winsys.c
d5bf9c0a5e51d160e7037297faf7657a0e2c6360 09-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/xlib: manage the GC internally

No need for the user of this winsys to supply/manage the x11 gc for
us.
lib/xlib_sw_winsys.c
0c96690a5b6e1c2d114e7ec5f1e9d60a4ff2a330 09-Mar-2010 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/master' into gallium-sw-api-2

Conflicts:
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/softpipe/sp_winsys.h
src/gallium/state_trackers/egl/common/egl_g3d.c
src/gallium/state_trackers/egl/x11/native_x11.c
src/gallium/state_trackers/egl/x11/native_x11.h
src/gallium/state_trackers/egl/x11/native_ximage.c
95c5c69b505f562b61e23fa7dd500dbdd432a70d 08-Mar-2010 Chia-I Wu <olv@lunarg.com> st/egl: Use xlib_sw_winsys in ximage backend.
rm/Makefile.egl
da92f6db5bf0d3ac42732df556eb4f96619c9047 08-Mar-2010 Chia-I Wu <olv@lunarg.com> winsys/xlib: Fix a segfault when USE_XSHM is not defined.
lib/xlib_sw_winsys.c
3ab8211be40e3cd835bd1f6947b2c56f9a0c7a59 08-Mar-2010 Keith Whitwell <keithw@vmware.com> gallium: remove xlib_driver::display_surface

Just use flush_frontbuffer directly. The flush_frontbuffer routine has
been somewhat devalued recently, but it is actually just the right
interface for our needs.

It is in pipe_screen, meaning that any wrapping (eg trace module)
will get properly unwrapped before we try and use the pipe_surface
argument for real.

If a particular co-state-tracker needs to implement this itself, it
should organize a way to allow the winsys to call back up to its
level, rather than hijacking the driver-supplied implementation.
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
c867c58c7340eb5d56f7cc3edf95cce94600f858 08-Mar-2010 Keith Whitwell <keithw@vmware.com> gallium: make it work
lib/Makefile
lib/xlib.c
99f11d0e18e1ff5a433c84d52ffc13b9684c2650 08-Mar-2010 Keith Whitwell <keithw@vmware.com> gallium: introduce target directory

Currently there are still at least two functions bundled up inside the
winsys concept:

a) that of a backend resource manager, sometimes capable of performing
present() operations,

b) the initialization code/routine for the whole driver stack.

The inclusion of (b) makes it difficult to share implementations of
(a) between different drivers. For instance, a clean xlib winsys
could be of use for software-rasterized VG, GLES, EGL, etc, stacks.
But that is only true as long as there is no dependency from the
winsys to higher level code, as would be the case when we include (b)
in this component.

This change creates a new gallium/targets subtree, specifically for
implementing the glue needed to build individual driver stacks, and
moves that code out of a single example winsys, namely xlib.

Other drivers continue to build unchanged, but hopefully can migrate
to this structure over time.
lib/Makefile
lib/SConscript
lib/xlib.c
lib/xlib.h
lib/xlib_brw_context.c
lib/xlib_sw_winsys.c
90b3baf9b3d0236cbecb171f2e742c9157dd312d 08-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/xlib: remove dead files
lib/xmesa.h
lib/xmesa_x.h
4350e025cf18ee3b570340ca8cacc8fd857eb59a 08-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/xlib: fixup softpipe build
lib/xlib_softpipe.c
1675d05f911fbd569efb5248674aa71cb755c75b 08-Mar-2010 Keith Whitwell <keithw@vmware.com> winsys/xlib: remove dependency on glx/x11 state tracker

Introduce xlib_drawable struct, pass this down to winsys instead of
having it use the internal data structures from glx/x11
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
lib/xlib_sw_winsys.c
7f9a3959b0a69f6f4b520a87e3ea87918cf89f11 08-Mar-2010 Keith Whitwell <keithw@vmware.com> ws/xlib: remove redundant declarations
lib/xlib.h
9b7c332d5f099fcf090bee9dbda9c73d7912b211 08-Mar-2010 Keith Whitwell <keithw@vmware.com> winsys/xlib: sketch of cell support
lib/xlib_cell.c
3ca933623cf0fd3b025ab7d1b37d3fd01c854807 08-Mar-2010 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/gallium-winsys-handle-rebased'
23e951d0da5802fec70996e46ad6f0abc411594c 04-Mar-2010 Keith Whitwell <keithw@vmware.com> gallium: fix llvmpipe after winsys move
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
94ce4eb3c27706d992226d847d123c46b14b1c4f 04-Mar-2010 Keith Whitwell <keithw@vmware.com> softpipe: rework to use the llvmpipe winsys

Promote the llvmpipe winsys more or less unchanged to
state_trackers/sw_winsys.h.

Some minor breakages:
- softpipe::texture_blanket is broken, but scheduled for removal anyway.
- haven't fixed up g3vdl yet.
di/SConscript
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
lib/Makefile
lib/SConscript
lib/xlib.c
lib/xlib.h
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
lib/xlib_sw_winsys.c
caa8a365c512d477b9698e79f55da9c041eb1bef 04-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> svga: Forgot one bit in rebase
rm/vmware/core/vmw_screen_dri.c
3bd622d64ec3826d3563a5cd9790cd7accc123b4 04-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> nouveau: Conversion to winsys handle

Not the best conversion that could be done.
rm/nouveau/drm/nouveau_drm_api.c
4028fab89296346b1ae267e589d41c5ff4a5bab6 01-Mar-2010 José Fonseca <jfonseca@vmware.com> gdi: Rename pipe formats.
di/gdi_llvmpipe_winsys.c
907d5611b2d17efaf7e243ff766b04de957267d0 01-Mar-2010 José Fonseca <jfonseca@vmware.com> drm/nouveau: Rename pipe formats.
rm/nouveau/drm/nouveau_drm_api.c
d160eed005e75d8933562f4880dfc84033011ac5 01-Mar-2010 Jakob Bornecrantz <jakob@vmware.com> r300g: Conversion to to winsys handle
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_winsys.h
3a2358b6c64e028e170fef3254d54170fb2d14f1 26-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> svga: Conversion to winsys handle
rm/vmware/core/vmw_screen_dri.c
45089784e3d5f8c9b87c2c6b943391f2e5125096 17-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> i965g: Conversion to winsys handle
rm/i965/gem/i965_drm_api.c
rm/i965/gem/i965_drm_buffer.c
0e1eb1b8765149873f9fd27d455d8b7ed3387709 17-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> i915g: Conversion to winsys handle
rm/intel/gem/intel_drm_api.c
rm/intel/gem/intel_drm_buffer.c
3f37f23d17734e8a49809859df58354ed9c00a2d 17-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> gallium: Reorg texture usage flags

Introduce a new shared usage and rename primary to scanout.
The display target usage is more of a windows concept and
doesn't mean the same thing as shared. Display target means
that the surface should be presentable, for softpipe this
means that it should be backed by a hardware buffer.
rm/nouveau/drm/nouveau_drm_api.c
c05f998f02b0799e46e6c306c03a09c35bd37cc0 27-Feb-2010 Marek Olšák <maraeo@gmail.com> radeong: clean up includes
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
cfbf75670dbb7e2a1fcb760d1792e4c9de634c7f 22-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Bump to match vmware driver
rm/vmware/xorg/vmw_xorg.c
55e5737bae6b88c2d1bc4c0d94e11548518659b8 15-Feb-2010 Thomas Hellstrom <thellstrom@vmware.com> st/xorg: Encapsulate all customizable stuff in a separate class.

This avoids exposing the ms driver structure to the winsys,
and nicely encapsulates driver customizable stuff.
In the future more things might be customizable by the winsys, like
throttling, 3D readback etc.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
rm/vmware/xorg/vmw_driver.h
rm/vmware/xorg/vmw_ioctl.c
rm/vmware/xorg/vmw_screen.c
rm/vmware/xorg/vmw_video.c
ab8a232b2cad965501e3778219e957509a078757 18-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Export modinfo just as the other vmware X drivers does
rm/vmware/xorg/vmw_xorg.c
d11f9a7bd83b7f0ea9ee959a764b77a4c3c55969 11-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> drm/vmware: Latest interface changes are backwards incopatible

Since the execbuffer change actually changed size off the ioctl
struct and not just a reuse of padded bits, we can't support
old kernels as easily as the scanout change was.
rm/vmware/core/vmw_screen_dri.c
0a1b760cd274aff96d68757dabf9caa077119f37 15-Feb-2010 Thomas Hellstrom <thellstrom@vmware.com> st/xorg, vmware/xorg: Fix xnfcalloc arguments.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
rm/vmware/xorg/vmw_screen.c
4fd43b09224c0e3b37de54e24508dcea5cd50dd8 09-Feb-2010 Thomas Hellstrom <thellstrom@vmware.com> vmware: Update vmwgfx_drm.h to kernel version.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
rm/vmware/core/vmwgfx_drm.h
900b163a86cc97f029c8bf8cf2779fa173f353de 26-Feb-2010 George Sapountzis <gsapountzis@gmail.com> minor cleanup of dri/Makefile.template's after miniglx drop

also makes the WINDOW_SYSTEM configure var useless ...
rm/Makefile.template
rm/radeon/dri/Makefile
db2e1518ff4ecb4a394076321ea5cdda3483ccbe 25-Feb-2010 José Fonseca <jfonseca@vmware.com> scons: Always build trace driver

There are so many state trackers and winsys that rely on it for debug
building, and trace can really build anywhere and is thin so there's no
point is making it an option.

Based on Xavier Chantry <chantry.xavier@gmail.com>'s patch:

"I also removed the trace check in xlib SConscript which is now useless, and
that script seems to deal with the cell driver, so I added cell in the check
for supported drivers."
lib/SConscript
ccd78fed880c4c8f1fccf1d10fc46442fa146359 24-Feb-2010 Brian Paul <brianp@vmware.com> gallium: remove $(DEFINES) from cc/c++ command lines

The $(DEFINES) is already in $(CFLAG)S and (CXXFLAGS).
This prevents all the -D args appearing twice in the compilation commands.
lib/Makefile
b14548ea32000459f4f0c4b49f3fa11d1ee9c003 22-Feb-2010 Dave Airlie <airlied@redhat.com> Revert "r300g: rebuild winsys/pipe buffer handling and add buffer map"

This reverts commit fff5be8e7b4557c221f2425dcafc2e7cbbba76ba.

Probably went too soon with this, dileX reported OA not working for him
it works here fine, but the optimisations I wanted aren't working properly
yet so I'll fix that now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
rm/i965/gem/i965_drm_winsys.h
rm/radeon/core/Makefile
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_drm_buffer.c
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
rm/radeon/core/radeon_winsys.h
fff5be8e7b4557c221f2425dcafc2e7cbbba76ba 12-Feb-2010 Dave Airlie <airlied@redhat.com> r300g: rebuild winsys/pipe buffer handling and add buffer map

This creates a cleaner winsys and drop the simple screen stuff.

It makes r300g use pb_bufmgr structs and adds usage of the cached
bufmgr for vertex/index buffers.

It also avoids mapping too often.

I'm not 100% sure this is perfect but it won't find its own bugs.

Signed-off-by: Dave Airlie <airlied@redhat.com>
rm/i965/gem/i965_drm_winsys.h
rm/radeon/core/Makefile
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_drm_buffer.c
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
rm/radeon/core/radeon_winsys.h
9a939adf7d25f273048d5f92cf9d96d10e664c23 17-Feb-2010 Chia-I Wu <olv@lunarg.com> winsys/drm: Do not use --whole-archive in Makefile.egl.

--whole-archive is not portable. Have the drivers reference _eglMain as
a poor man's --whole-archive.
rm/Makefile.egl
rm/i965/egl/dummy.c
rm/intel/egl/dummy.c
rm/nouveau/egl/dummy.c
rm/radeon/egl/dummy.c
rm/swrast/egl/dummy.c
rm/vmware/egl/dummy.c
f7db96cd8f7977f4ad3591dab92c3c09f7cbc35a 12-Feb-2010 Marek Olšák <maraeo@gmail.com> radeong: flush when changing tiling flags of BO referenced by CS
rm/radeon/core/radeon_buffer.c
50812e633fa433937c7ba885fa334f44ec0bad58 14-Feb-2010 José Fonseca <jfonseca@vmware.com> progs/gallium/python: New home for python statetracker scripts.
rm/radeon/python/README
8ce747defa2dafebfa99f03913342d6aca995341 11-Feb-2010 José Fonseca <jfonseca@vmware.com> gdi: Never fail at DLL load time.

Windows doesn't really expect things to fail at this point -- it
will try many times until it finally gives up, worse, something bad
happens.

The WGL state tracker will gracefully decline to do work even when it
is loaded.
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
c72e8b3edd81c524f3237a27e6e91208ae2196c5 11-Feb-2010 José Fonseca <jfonseca@vmware.com> scons: Fix drm/intel build.
rm/intel/dri/SConscript
6ef1d6040738f5a3d93644a782ee7b600b8420b6 06-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> vmware/core: Support drm interface version 1.0.0
rm/vmware/core/vmw_screen_dri.c
6a4cd124af9175832e506888e504d9195bf614b7 06-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> vmware/core: Use correct flags in scanout code
rm/vmware/core/vmw_screen_ioctl.c
6ffb6318a05f0e6405645a155cd32e5cfbdbc2ff 06-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> vmware/core: Handle new scanout field
rm/vmware/core/vmw_screen.c
rm/vmware/core/vmw_screen.h
rm/vmware/core/vmw_screen_dri.c
rm/vmware/core/vmw_screen_ioctl.c
a9d61c286d27733d347f81ac7cfae3665accae92 06-Feb-2010 Jakob Bornecrantz <jakob@vmware.com> vmware/core: Update header to latest version
rm/vmware/core/vmwgfx_drm.h
7afcfa06831beb28d0a80b777ae701f68f0e202f 29-Jan-2010 Jakob Bornecrantz <jakob@vmware.com> vmware/core: Remove old ioctl structs not used

Leftover that was never used in this driver
rm/vmware/core/vmwgfx_drm.h
74d23546c79fe8c8d87588fa423040e3b19a8fc6 08-Feb-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Provide drm_api::destroy hook.

Pedantic Corbin is pedantic.
rm/radeon/core/radeon_drm.c
184cefcd8c3169743955cb0b6af79a1793cda685 08-Feb-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Always return something for create_screen.

Prevents a segfault on e.g. r600.
rm/radeon/core/radeon_drm.c
a23357ca60947e3e8541098d8284d9868a14856b 08-Feb-2010 Keith Whitwell <keithw@vmware.com> gallium: remove softpipe references in other drivers
rm/intel/gem/intel_drm_api.c
rm/intel/gem/intel_drm_winsys.h
6447b20ce078f057cc5a5a2d6255df45afe8b30d 08-Feb-2010 Keith Whitwell <keithw@vmware.com> drm/radeon: remove softpipe references
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_drm.c
7f41f5447c8f9113c8956901e1c5fff6081ecd94 08-Feb-2010 Keith Whitwell <keithw@vmware.com> gallium: squash-merge of gallium screen context

Squashed commit of the following:

commit 009598122adf5cad42bf9af067eccaf8e89e1233
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Mon Feb 8 11:03:26 2010 +0000

nouveau: fix gallium-screen-context branch fallout

commit 7b2ffc2019d72e833afea7eebf3e80121187375d
Merge: 51e190e c036d13
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Feb 5 09:55:02 2010 +0000

Merge commit 'origin/master' into gallium-screen-context

Conflicts:
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c

This branch has got a pretty tortured history now, I expect
a squash merge will be appropriate when it is done.

commit 51e190e95acf120f72768fafb29e9721e358df1b
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 17:58:02 2010 +0000

gallium: fix some build issues

commit f524bdaa723fb181637ad30c6ad708aeedabe25b
Merge: f906212 3aba0a2
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 17:51:32 2010 +0000

Merge commit 'origin/master' into gallium-screen-context

commit f9062126883199eabf045714c717cd35f4b7b313
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 17:17:12 2010 +0000

gallium/docs: small description of screen::create_context

commit efcb37bd3d5ed37f06c6105bd2d750b374ec0927
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:42:42 2010 +0000

drm/radeon: more dead create_context wrapper removal

commit 6badc0dd9e06cf2ec936940bcf12b9ef5324b301
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:42:30 2010 +0000

drm/i965: more dead create_context wrapper removal

commit cf04ebd5a54b18b2d894cfdab2b0f2fd55626ffc
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:42:05 2010 +0000

st/python: more dead create_context wrapper removal

commit 444f114c3516abf71c430e6e9d0d2ae3b80679d3
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:37:58 2010 +0000

idenity: wrapped context creation

commit 5a6d09cb9e468d1ee6c8d54b887618819d8d94f2
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:28:47 2010 +0000

ws/gdi: remove dead context_create wrapper

commit 132b55f4bec39386ac625f09aaa11f609664024c
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:27:52 2010 +0000

ws/gdi: remove dead context_create wrapper

commit 56d2d21a0cdcb197a364049d354c2f15a4fc026a
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:25:38 2010 +0000

st/xorg: use screen::context_create

commit 838c5cfe56b2af6c644909bed3c5e7cdd64c336a
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:23:20 2010 +0000

glx/xlib: simplify creation of trace-wrapped contexts

Trace screen knows how to properly wrap context creation in the
wrapped screen, so nothing special to do here.

commit c99404c03ebaec4175f08a2f363e43c9085f2635
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:18:24 2010 +0000

st/python: no need to special case context creation for trace

commit 193a527a682b6877bb1faecd8092df4dfd055a18
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:15:30 2010 +0000

drm/radeon: remove dead create_context declaration

commit bb984eecc25cf23bc77e1c818b81165ba1a07c9a
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:14:58 2010 +0000

nv/drm: remove dead create_context ref

commit e809313a44287dc4e16c28e9e74ef3b2b5271aa1
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:12:51 2010 +0000

st/egl: remove a layer of wrappers around screen::create_context

commit 39caa6672a04122f185c22e17aab86d1c40938bf
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:05:28 2010 +0000

r300g: fill in screen::context_create

commit 407f12556d16ba0656774d8a1d9ebda22f82f473
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 16:04:04 2010 +0000

cell: adapt for screen::create_context, untested

commit d02b0c6ce321a04c76fdabb09e0e4380ce1c1376
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 15:50:24 2010 +0000

drm/nv: adapt for screen::create_context

All contexts now created directly through the screen, so remove
equivalent code here.

Remove apparently un-needed array of contexts in the winsys.

commit 53eec5b1349aa1b6892a75a7bff7e7530957aeae
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 15:50:08 2010 +0000

stw: adapt for screen::create_context, untested

commit c6a64de3eb381bc9a88e9fbdecbf87d77925aaf5
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 15:49:20 2010 +0000

trace: expose the wrapped context's priv data

If we are going to keep this priv idea, really want an accessor
function for it so that trace and other drivers can wrap that.

commit 75d6104e11d86ec2b0749627ed58e35f856ee6eb
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 15:47:55 2010 +0000

nv30: adapt to screen::context_create

commit 12f5deb6ed9723e9b5d34577052b8365813ca14e
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 15:44:47 2010 +0000

nv40: adapt to screen::context_create

commit 14baccaa3b6bbb3b91056126f6521828e786dc62
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 15:35:27 2010 +0000

nv50: adapt to screen::create_context

Not build tested. Need to figure out how to build nouveau.

commit a0e94505ccd2d7f3e604465a2ac302f1286b73b6
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 15:22:27 2010 +0000

llvmpipe: update for screen::create_context, untested

commit 0eae17107c950346030e4f7e0ec232f868d3893d
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 15:16:57 2010 +0000

xlib/llvmpipe: remove dead winsys context creation path

commit 2f69f9ffaa7e2a01d2483277246ed13051ae4ca3
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 14:58:27 2010 +0000

gallium: convert most code to use screen::create_context

I wish I could build all of gallium at once to find breakages.

commit d7b57f4061b82322cbcae176125913d9f0dea6c1
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 12:46:21 2010 +0000

glx: permit building with older protocol headers

I'd like to be able to build mesa on current distro releases without
having to upgrade from the standard dri2proto and glproto headers. With
this change I'm able to build on ancient releases such as Ubuntu 9-10...

In general, it would be nice to be able to build-test mesa to check for
unintended breakages without having to follow the external dependencies
of every group working on the codebase.

commit 57adedd6fb06c98572ed8d4aef19203df4c4eea2
Merge: da71847 e1906ae
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Feb 4 11:38:15 2010 +0000

Merge commit 'origin/master' into gallium-screen-context

Conflicts:
src/gallium/drivers/softpipe/sp_video_context.h
src/gallium/drivers/trace/tr_context.c
src/gallium/state_trackers/wgl/shared/stw_context.c
src/gallium/winsys/gdi/gdi_softpipe_winsys.c

commit da71847ea6414d7e352c6094f8963bb4eda344dc
Author: José Fonseca <jfonseca@vmware.com>
Date: Sat May 2 08:57:39 2009 +0100

wgl: Use pipe_screen::context_create.

commit 2595a188f93fd903600ef5d8517737ee0592035d
Author: José Fonseca <jfonseca@vmware.com>
Date: Sat May 2 08:56:47 2009 +0100

trace: Implement pipe_screen::context_create.

commit f3640e4ae37a5260cbfba999d079f827de0a313a
Author: José Fonseca <jfonseca@vmware.com>
Date: Sat May 2 08:56:17 2009 +0100

softpipe: Implement pipe_screen::context_create.

commit 347266bddc8bd39c711bacb2193793759d0f3696
Author: José Fonseca <jfonseca@vmware.com>
Date: Sat May 2 08:55:31 2009 +0100

gallium: New pipe_screen::context_create callback.
rm/i965/gem/i965_drm_api.c
rm/i965/xlib/xlib_i965.c
rm/intel/gem/intel_drm_api.c
rm/nouveau/drm/nouveau_drm_api.c
rm/nouveau/drm/nouveau_drm_api.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
rm/radeon/python/radeon_hardpipe_winsys.c
rm/vmware/core/vmw_context.c
rm/vmware/core/vmw_context.h
rm/vmware/core/vmw_screen_dri.c
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
lib/xlib_cell.c
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
e423df0f0c3e5a5d33d301b6176e9380e61b98ad 05-Feb-2010 Patrice Mandin <patmandin@gmail.com> nouveau: Fix warning for void function returning value. Add missing include for pipe_reference_init function.

Signed-off-by: Patrice Mandin <patmandin@gmail.com>
rm/nouveau/drm/nouveau_drm_api.c
5b6b67eb3ff714fbba8aed88a22a7646e1dbf655 04-Feb-2010 Francisco Jerez <currojerez@riseup.net> Nuke the nv0x-nv2x gallium pipe drivers.
rm/nouveau/dri/Makefile
rm/nouveau/drm/nouveau_drm_api.c
rm/nouveau/egl/Makefile
rm/nouveau/xorg/Makefile
3dvl/nouveau/Makefile
3aba0a28757e9b2a2f6a3f42fff955ccfd3fa4d4 04-Feb-2010 Brian Paul <brianp@vmware.com> i965g: include u_inlines.h
rm/i965/gem/i965_drm_buffer.c
821b3e2302a59332f96767b54040720dc0b83a13 04-Feb-2010 Vinson Lee <vlee@vmware.com> winsys: Add missing headers.
rm/intel/gem/intel_drm_api.c
rm/intel/gem/intel_drm_fence.c
3584a44270a7f3a04e187bd79b5373314514d383 04-Feb-2010 Dave Airlie <airlied@redhat.com> gallium: fix more missing includes from various places

nouveau/ dri st / vmware
rm/vmware/core/vmw_buffer.h
rm/vmware/core/vmw_screen_dri.c
rm/vmware/core/vmw_surface.h
25357696c3f253d44e83798e2a7e7f1f60c5adc5 02-Feb-2010 José Fonseca <jfonseca@vmware.com> gallium: Move deprecated pipe/internal/p_winsys_screen.h inside util/u_simple_screen.h
rm/nouveau/drm/nouveau_drm_api.h
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_winsys.h
3dvl/xlib/xsp_winsys.c
di/gdi_softpipe_winsys.c
lib/xlib_brw_context.c
lib/xlib_cell.c
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
2aaca1df9df6980ec88180c8866c8987b31db91a 02-Feb-2010 José Fonseca <jfonseca@vmware.com> gallium: Move p_thread.h and p_atomic.h out of gallium interfaces.

Into os/os_thread.h and util/u_atomic.h respectively.
rm/intel/gem/intel_drm_fence.c
rm/vmware/core/vmw_surface.h
38f6f23fcf37247fd709d1c612d08bfa9b124e69 02-Feb-2010 José Fonseca <jfonseca@vmware.com> gallium: Make pipe_atomic a regular int32_t.
rm/intel/gem/intel_drm_fence.c
rm/vmware/core/vmw_surface.h
28486880ca3ec39419ccee0cb1a3bedc9ef7117c 02-Feb-2010 José Fonseca <jfonseca@vmware.com> gallium: pipe/p_inlines.h -> util/u_inlines.h
rm/radeon/core/radeon_buffer.h
rm/vmware/core/vmw_buffer.c
rm/vmware/core/vmw_screen_dri.c
rm/vmware/core/vmw_screen_svga.c
3dvl/xlib/xsp_winsys.c
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
lib/xlib_brw_context.c
lib/xlib_cell.c
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
4d65133e8691e51a17aa896d5bb40022cfae5a62 01-Feb-2010 Cooper Yuan <cooperyuan@gmail.com> r300g/g3dvl: Fix build error and correct Makefile for xvmc lib
rm/radeon/core/radeon_drm.c
3dvl/drm/radeon/Makefile
6783672a974d73b9900f596fc71fb9c17d2c2ecc 29-Jan-2010 Cooper Yuan <cooperyuan@gmail.com> r300g/g3dvl: port xvmc video stuff to mesa/pipe-video branch
rm/radeon/core/radeon_drm.c
3dvl/drm/radeon/Makefile
241a0b8cf34a2c688f59f33758446d95d29e8447 28-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Slight improvement to buffer creation.
rm/radeon/core/radeon_buffer.c
9b22427911ad27efc1f36faee9462c6082d0417c 25-Jan-2010 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:

src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_swapbuffers.c
src/mesa/drivers/dri/r300/r300_emit.c
src/mesa/drivers/dri/r300/r300_ioctl.c
src/mesa/drivers/dri/r300/r300_tex.c
src/mesa/drivers/dri/r300/r300_texstate.c
1571602153128971ae9ed549d633d67aac65da14 25-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Make sure that we're not emitting relocations for local buffers.

Split from Marek's immd-mode patch.
rm/radeon/core/radeon_r300.c
c486bfb463f30bf894d2dae1326973aeb3de1159 25-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Make is_r3xx inline to avoid warnings.

Split from Marek's immd-mode patch.
rm/radeon/core/radeon_drm.h
67149051be56825151659eb1672242b624555f7d 25-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Clean up domain usages.

Split from Marek's immd-mode patch.
rm/radeon/core/radeon_buffer.c
72778a9d254f6c9c63d86413936ee7f3e5a6e56e 25-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> Revert "r300g,radeong: finish and enable the immediate mode"

This reverts commit 112239e9a66a155d36fe2ad0ab130e6f26eff298.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_winsys.h
2204447de320afe201a9369f57658cae0a11a440 25-Jan-2010 Chia-I Wu <olvaffe@gmail.com> winsys/drm: Correctly install EGL drivers.

Remove extraneous quotes that prevent some drivers to be installed when
there are more than one display in EGL_DISPLAYS.
rm/Makefile.egl
6877c5de3c3ff39da514a74928ea270138cddff9 25-Jan-2010 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Do buffer round-robin logic differently
rm/vmware/xorg/vmw_video.c
a3b783ea294f348bf3424eeb4170dd7f0741519a 21-Jan-2010 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Export pci_probe function for ugly chain-loading
rm/vmware/xorg/vmw_xorg.c
112239e9a66a155d36fe2ad0ab130e6f26eff298 18-Jan-2010 Marek Olšák <maraeo@gmail.com> r300g,radeong: finish and enable the immediate mode

Nearly 100% performance increase in glxgears.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_winsys.h
b7a002df1e06504ff1ed0dc005c9b10aa4be54f7 17-Jan-2010 Marek Olšák <maraeo@gmail.com> r300g,radeong: set tiling flags in libdrm
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_winsys.h
85059964307c3f10e4a328d82af2bb791a5a4927 23-Jan-2010 Marek Olšák <maraeo@gmail.com> radeong: do not emit a zero-sized command stream

Fixing a hardlock introduced in fcbd285e421903ee0a65f19f5d633b25b5923c24 and
reproducible with piglit/bugs/fdo23489.
rm/radeon/core/radeon_r300.c
74989972ba4fd629905799ed2181f8f6f4e53c2b 17-Jan-2010 Marcin Slusarz <marcin.slusarz@gmail.com> nouveau/winsys: be nice and close the device on destroy
rm/nouveau/drm/nouveau_drm_api.c
283b21d02bff3d4bd6127f6b642331e06db41ace 17-Jan-2010 Marcin Slusarz <marcin.slusarz@gmail.com> nouveau: fix winsys object leak
rm/nouveau/drm/nouveau_drm_api.c
28c3e57c8354f988f49bac69a6866418e6009a5d 23-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Install drivers to ${libdir}/egl.

Install EGL drivers to EGL_DRIVER_INSTALL_DIR, which is default to
${libdir}/egl.
rm/Makefile.egl
f6a49ac21721353948b03cf3ca3b5aa5c87e59e6 23-Jan-2010 Brian Paul <brianp@vmware.com> svga: fix up breakage from earlier 7.7 merge
rm/vmware/core/vmw_screen_dri.c
7b5ad23c7f7f9016f725cb1caa3cf8971aeedbc8 23-Jan-2010 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:

src/mesa/shader/prog_execute.c
efde2df114c2c15212198cb196b50cd29bd75f70 22-Jan-2010 Brian Paul <brianp@vmware.com> xlib/softpipe: more buffer free fixes

The previous memory leak fix didn't always work properly.
Now check the xm_buffer::smh field (now documented!) to
see if the buffer points to shared memory.
lib/xlib_softpipe.c
cd8614b0287dc5a69725ec4ee0208fad61f7789e 22-Jan-2010 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/pipebuffer/Makefile
src/gallium/auxiliary/pipebuffer/SConscript
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/drivers/i915/i915_surface.c
src/gallium/drivers/i915/i915_texture.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/softpipe/sp_prim_vbuf.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/winsys/drm/intel/gem/intel_drm_api.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
src/gallium/winsys/drm/radeon/core/radeon_drm.c
src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
src/mesa/state_tracker/st_cb_clear.c
3c967a920718c2a74996ac23b8c1964915db88c2 22-Jan-2010 Chia-I Wu <olvaffe@gmail.com> st/egl_g3d: Rename to st/egl.

Simply the name to egl.
rm/Makefile.egl
rm/Makefile.egl_g3d
rm/i965/egl/Makefile
rm/i965/egl/dummy.c
rm/i965/egl_g3d/Makefile
rm/i965/egl_g3d/dummy.c
rm/intel/egl/Makefile
rm/intel/egl/dummy.c
rm/intel/egl_g3d/Makefile
rm/intel/egl_g3d/dummy.c
rm/nouveau/egl/Makefile
rm/nouveau/egl/dummy.c
rm/nouveau/egl_g3d/Makefile
rm/nouveau/egl_g3d/dummy.c
rm/radeon/egl/Makefile
rm/radeon/egl/dummy.c
rm/radeon/egl_g3d/Makefile
rm/radeon/egl_g3d/dummy.c
rm/swrast/egl/Makefile
rm/swrast/egl/dummy.c
rm/swrast/egl_g3d/Makefile
rm/swrast/egl_g3d/dummy.c
rm/vmware/egl/Makefile
rm/vmware/egl/dummy.c
rm/vmware/egl_g3d/Makefile
rm/vmware/egl_g3d/dummy.c
3a4b7d3071c7377d8fbe37a0a2f486b919ff53cb 22-Jan-2010 Chia-I Wu <olvaffe@gmail.com> winsys/drm: Update the options of mklib in Makefile.egl_g3d.

Pass -linker, -ldflags, and $(MKLIB_OPTIONS) to mklib.
rm/Makefile.egl_g3d
3b0ffd5a36c4626b44eafc43f5eaebb7c758bfbd 22-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Remove egl_softpipe.

With the addition egl_x11_swrast, egl_softpipe is sort of deprecated.
The new driver serves the same purpose as egl_softpipe does. It is
based on egl_g3d and provides more features.
gl_xlib/Makefile
gl_xlib/egl_xlib.c
gl_xlib/sw_winsys.c
gl_xlib/sw_winsys.h
a1306f4ef6f83a86d03720641f3cdc5e13485fa6 22-Jan-2010 Chia-I Wu <olvaffe@gmail.com> winsys/drm: Add swrast.

The swrast winsys always returns NULL when drm_api_create is called.
rm/swrast/Makefile
rm/swrast/core/Makefile
rm/swrast/core/swrast_drm_api.c
rm/swrast/egl_g3d/Makefile
rm/swrast/egl_g3d/dummy.c
383f460cf7472af4a526668c2412ab08ea30c0ec 22-Jan-2010 José Fonseca <jfonseca@vmware.com> vmware/core: Update for pipebuffer changes.

In particular, delay patching GMR relocations until the buffers are
validated, since the buffers relative offset can only be established then.
rm/vmware/core/vmw_context.c
rm/vmware/core/vmw_screen_pools.c
52d7b2cedee44fbd9a0e6405b974c62898bed169 22-Jan-2010 Chia-I Wu <olvaffe@gmail.com> st/egl: Remove the egl state tracker.

The egl_g3d state tracker has support for KMS, and the support is based
on the egl state tracker. As egl_g3d provides more features, it should
be better to keep only egl_g3d to unify the efforts.
rm/i965/egl/Makefile
rm/intel/egl/Makefile
rm/intel/egl/dummy.c
rm/radeon/egl/Makefile
rm/radeon/egl/dummy.c
rm/vmware/egl/Makefile
883b57e66c8adc800d56080706c04cda4ffede11 22-Jan-2010 Chia-I Wu <olvaffe@gmail.com> winsys/drm: Update Makefile.template.

Mainly to respect LDFLAGS and remove unused target $(LIBNAME_EGL). This
is based on the patch by Tomáš Chvátal <scarabeus@gentoo.org>.
rm/Makefile.template
a626565178fb810f439fbdfdaf6cc28a973a6a81 22-Jan-2010 José Fonseca <jfonseca@vmware.com> vmware/core: Flush preemptively the FIFO commands to keep the GMR working set within reasonable bounds.
rm/vmware/core/vmw_context.c
beb8e8f2f2de0c1221090554159129665a79a292 22-Jan-2010 José Fonseca <jfonseca@vmware.com> vmware/core: Put GMR pool size in a define.
rm/vmware/core/vmw_screen.h
rm/vmware/core/vmw_screen_pools.c
e45579e50ba3b9736465f68377b3f5d0afb7c1da 22-Jan-2010 José Fonseca <jfonseca@vmware.com> vmw/wgl: Update for pipebuffer changes.

This is a minimum change to keep things building and running minimally -- it
might cause applications to fail to allocate buffers due to out of
GMR memory.

A proper update will be commited later.
rm/vmware/core/vmw_screen_pools.c
bdd250080593c6d0d5addcaff0b2a5c880d7a3b2 21-Jan-2010 Chia-I Wu <olvaffe@gmail.com> Do not include glapi/dispatch.h outside Mesa core.

Include the glapi*.h directly instead. glapi/dispatch.h became a Mesa
core header since 22884db174b9fb0736cec1c6a192f8b9a97500c1.
lib/xlib.c
c1334ce23550a8321023c0b8fa58ad266199afa1 20-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Fix EGL driver names.

Using "radeon" instead of "radeong" because we don't have classic EGL.
rm/radeon/egl/Makefile
rm/radeon/egl_g3d/Makefile
1ffb72a6bf2de0d1044eacb0b72ad6a27c2198c4 20-Jan-2010 Tomas Chvatal <scarabeus@gentoo.org> Fix touching live system during install.
rm/radeon/egl/Makefile
a416123f5b0f05d95eb334473473f660c22b439e 20-Jan-2010 Brian Paul <brianp@vmware.com> xlib/softpipe: fix buffer memory leak

Fixes leak caused by window resize.
lib/xlib_softpipe.c
5e8240320ac39a3e8984054bc300743725312741 20-Jan-2010 Chia-I Wu <olvaffe@gmail.com> Merge remote branch 'origin/opengl-es-v2'
bea9ed4dc6abbcf2b95f5f55554800d4f41da47a 19-Jan-2010 Jakob Bornecrantz <jakob@vmware.com> svga: Do a more propper creation of textures from handles
rm/vmware/core/vmw_screen_dri.c
a5fb5d6a54195d19942482873d0738eaade9e986 19-Jan-2010 Jakob Bornecrantz <jakob@vmware.com> st/drm: Expose kernel driver name

Based on patch by Chia-I Wu <olvaffe@gmail.com>

Expose the name of the kernel driver as accepted by drmOpenByName.
rm/intel/gem/intel_drm_api.c
rm/nouveau/drm/nouveau_drm_api.c
rm/radeon/core/radeon_drm.c
rm/vmware/core/vmw_screen_dri.c
0857f38c398bf14526bb47e0c57602be4e7a0ae4 18-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Don't allocate HW BOs for constantbufs.

We have broken 1000 FPS. Hell yes.

Heavily inspired by Marek's patch, but using pipebuffer instead of
a roll-your-own malloc.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
58a7d8db98e5ffd0699d4cb59663d7621bc20594 18-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Check DRM version, and report stats.
rm/radeon/core/radeon_drm.c
11a2bbc3e96a5d72cc1473362c771ddebe0f9b8d 18-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Use vram_size instead of vram_visible.

The kernel will decide on its own what to give us.
rm/radeon/core/radeon_drm.c
31c626811a20d74f28cee4c96a756ade2ca81141 17-Jan-2010 Jakob Bornecrantz <wallbraker@gmail.com> i965g: Link against drm_intel instead of drm_radeon
rm/i965/xorg/Makefile
8959608051ef8e4a97214323009d09c5e9e633fb 09-Jan-2010 Marek Olšák <maraeo@gmail.com> r300g: output texture debug messages if only RADEON_DEBUG=tex is set
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
66e561a036199e1786bd315c0ca4b192ad2ae386 16-Jan-2010 Dave Airlie <airlied@linux.ie> i965g: make xorg state tracker build i965g_drv.so

don't make modesetting_drv.so anymore
rm/i965/xorg/Makefile
ae97520e37ee70c813a198c805c7338aefbd8156 18-Jan-2010 Thomas Hellstrom <thellstrom@vmware.com> ws/vmware: Check DRM version also when bootstrapping in dri2 mode.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
rm/vmware/core/vmw_screen_dri.c
8feb27b8ff7802f247017747fa6cc730940720d4 14-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Change DRI driver name to radeong.
rm/radeon/dri/Makefile
3e6139d158a054a0dfe8def28bf60201cdb9f385 12-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Add _EGLDriver as the first argument to GetProcAddress.

The rest of the driver API has it as the first argument. It should be
there so that a driver has access to itself.
gl_xlib/egl_xlib.c
562c127693200822f04a145db50add1be2425d7b 12-Jan-2010 Chia-I Wu <olvaffe@gmail.com> Merge branch 'master' into opengl-es-v2

Conflicts:
src/mesa/main/dd.h
077d6dd7508af88509dd0499c5dfbdaa186b4015 10-Jan-2010 Chia-I Wu <olvaffe@gmail.com> winsys/drm: Use egl_g3d to build EGL drivers.

The new EGL drivers use egl_g3d and respect EGL_DISPLAYS. They are
named after the display supported and the DRM name.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
rm/Makefile.egl_g3d
rm/i965/egl_g3d/Makefile
rm/i965/egl_g3d/dummy.c
rm/intel/egl_g3d/Makefile
rm/intel/egl_g3d/dummy.c
rm/nouveau/egl_g3d/Makefile
rm/nouveau/egl_g3d/dummy.c
rm/radeon/egl_g3d/Makefile
rm/radeon/egl_g3d/dummy.c
rm/vmware/egl_g3d/Makefile
rm/vmware/egl_g3d/dummy.c
6dafd61ab278f23ecfebac7ef647610875abd2db 02-Jan-2010 Chia-I Wu <olvaffe@gmail.com> winsys/drm: Add name field to drm_api.

The name can be used for driver selection. It has the same name as the
DRI driver does right now.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
rm/i965/gem/i965_drm_api.c
rm/intel/gem/intel_drm_api.c
rm/nouveau/drm/nouveau_drm_api.c
rm/radeon/core/radeon_drm.c
rm/vmware/core/vmw_screen_dri.c
2d44b6f8848ee2c43a92c5a00ec9981b82319ed8 02-Jan-2010 Chia-I Wu <olvaffe@gmail.com> st/mesa: Remove st_api.c.

st_api.c is supposed to define st_api_OpenGL to advertise OpenGL
support. However, the linker discards the symbol because it has no
user. It is better to leave this to other state trackers that link to
libmesagallium.a.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
lib/xlib.c
2bfb21790c866cd738f91c7e9ba21a6d9ddd37ef 11-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Check for DONTBLOCK before flushing, remove dead code.
rm/radeon/core/radeon_buffer.c
d9de848de14da5d1a3c64ee55cc271ab25ce8f59 11-Jan-2010 Marcin Kościelnicki <koriakin@0x04.net> nouveau: Make winsys recognise the original NV50.
rm/nouveau/drm/nouveau_drm_api.c
064242ae9f26bf64c84fe4a30a750bf7963e265c 05-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl_softpipe: Remove the unnecessary call to _eglSwapBuffers.

The call to _eglSwapBuffers is unnecessary, and the function is missing
when -fvisibility=hidden. Also remove the extraneous braces and indent
the block.
gl_xlib/egl_xlib.c
d699b6720c391a0ab44e09b5fa93fc51b1a13c9e 08-Jan-2010 José Fonseca <jfonseca@vmware.com> scons: Don't build xlib when dri is enabled.

Hopefully adddresses fdo 25828.
lib/SConscript
c6509f89b436e209f7c56f97614002dff01f83ed 08-Jan-2010 José Fonseca <jfonseca@vmware.com> scons: Output a meaningful message when xlib libGL.so can't be built.
lib/SConscript
5ac16495a2772886100789f04e1a7d65068e9a40 05-Jan-2010 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:
docs/relnotes.html
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
src/gallium/drivers/r300/r300_cs.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/main/enums.c
8282185752a93acca54a67a8e97e0066ee233709 04-Jan-2010 Michel Dänzer <daenzer@vmware.com> vmware/xorg: Fix SCons build.
rm/vmware/xorg/SConscript
f3739bdb60edc051348526d469d5222bb6934917 01-Jan-2010 José Fonseca <jfonseca@vmware.com> gdi: Don't generate import libraries for opengl32.dll.

Both MinGW and MSVC include opengl32 import libraries, and its safer to
always use those.
di/SConscript
187066caa0d98836ecb1e2fd5e5c96bc83fcc82e 01-Jan-2010 José Fonseca <jfonseca@vmware.com> gdi: Don't generate import libraries for opengl32.dll.

Both MinGW and MSVC include opengl32 import libraries, and its safer to
always use those.
di/SConscript
c847a13d38d4e8c5f4c386d060dcc8ec09e491a3 01-Jan-2010 José Fonseca <jfonseca@vmware.com> gallium: Generate a single library for auxiliaries with Make too.
3dvl/nouveau/Makefile
3dvl/xlib/Makefile
f8f4757d46627fb453f08dc63fde3d7f458eafe2 31-Dec-2009 José Fonseca <jfonseca@vmware.com> scons: Aggregate all tiny libraries in a single library.

Makes integration of gallium into out of tree components much easier. No
pratical change for components in this tree,
rm/i965/dri/SConscript
rm/intel/dri/SConscript
rm/radeon/dri/SConscript
rm/radeon/python/SConscript
rm/vmware/dri/SConscript
rm/vmware/xorg/SConscript
di/SConscript
lib/SConscript
25024d948298a9f3f3210a0b91486f79a3917b0f 31-Dec-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:
configs/darwin
src/gallium/auxiliary/util/u_clear.h
src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
src/mesa/drivers/dri/i965/brw_draw_upload.c
67171ed85f3f9486238a994e8a427ddc1ac31069 28-Dec-2009 José Fonseca <jfonseca@vmware.com> xlib: Integrate the trace driver with all pipe drivers.

And not just softpipe.

It is particularly convenient to use llvmpipe instead, since it is much
faster. It also allows to use rbug with all xlib drivers.
lib/Makefile
lib/SConscript
lib/xlib.c
lib/xlib.h
lib/xlib_trace.c
7abdaf574a31f4f09b20a6bc59bdb1bbebf9b15b 28-Dec-2009 José Fonseca <jfonseca@vmware.com> scons: Fix xlib build.

After glsl rework merge.
lib/SConscript
d0b7ff551ab25153e3023871af3daa65b394a828 27-Dec-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
src/gallium/auxiliary/util/u_network.c
src/gallium/auxiliary/util/u_network.h
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/trace/tr_rbug.c
src/gallium/state_trackers/vega/bezier.c
src/gallium/state_trackers/vega/vg_context.c
src/gallium/state_trackers/xorg/xorg_crtc.c
src/gallium/state_trackers/xorg/xorg_driver.c
src/gallium/winsys/xlib/xlib_brw_context.c
src/mesa/main/mtypes.h
bdbabcd1e4257fd7de119617609f978d2dd7dd35 27-Dec-2009 Dave Airlie <airlied@redhat.com> r300g: fix use of uninitialised variables.

These buffers were getting dereferenced later.
rm/radeon/core/radeon_drm.c
9ee5b78e7fb31c04a4f5ed96c202604832cc90dd 27-Dec-2009 Dave Airlie <airlied@redhat.com> r300g: rename modesetting_drv.so to radeong_drv.so
rm/radeon/xorg/Makefile
rm/radeon/xorg/radeon_xorg.c
aae32df718cbbe5bb561d3e0589b26c8b9306563 23-Dec-2009 Vinson Lee <vlee@vmware.com> xlib: Use C-style comments.
lib/xlib_brw_context.c
aa02683e45f1eaf61bba2ba7eeda7686efeed2ca 22-Dec-2009 Keith Whitwell <keithw@vmware.com> Merge branch 'i965g-restart'

Conflicts:
configure.ac
9eb7fc6661a1d46c06cec8584b898e3e690af6fa 22-Dec-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:
src/mesa/main/version.h
src/mesa/state_tracker/st_atom_shader.c
a5585cb533af3d4e5d5324d5f526447b98597402 21-Dec-2009 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/master' into i965g-restart

Conflicts:
SConstruct
configs/default
configs/linux-dri
d288a30610767f87e3e7c069730d4bc255246568 21-Dec-2009 Keith Whitwell <keithw@vmware.com> ws/i965: respect DEBUG_WINSYS flag
rm/i965/xlib/xlib_i965.c
a70eba5648b114e13d48b79dc38705b2fc2a8e95 18-Dec-2009 Corbin Simpson <MostAwesomeDude@gmail.com> Revert "r300g: flush CS if a buffer being deleted is referenced by it"

As requested by just about everybody. I'm going back to actually reading
patches before ACKing and pushing them.

This reverts commit 417ce06306962a9355cbb35cefcdea1951b0ce85.

Conflicts:

src/gallium/winsys/drm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
7855fcb63ba0594cdaee15f8579b66af651828e0 18-Dec-2009 Michal Krol <michal@vmware.com> Merge branch 'pipe-format-simplify'
5f59e79f3a9f273c683304117802bb216171c257 18-Dec-2009 Dave Airlie <airlied@redhat.com> r300g: store own copy of flush_cb and flush data.

don't go sneaking around inside the libdrm copy.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_r300.c
b1ed72ebe2599ec178f51d86fd42f26486b9a19b 17-Dec-2009 Michal Krol <michal@vmware.com> Move the remaining format pf_get_* functions to u_format.h.

Previously they depended on format blocks, but after removing those
they started depending on format encoding.
rm/nouveau/drm/nouveau_drm_api.c
rm/radeon/core/radeon_buffer.c
gl_xlib/sw_winsys.c
3dvl/xlib/xsp_winsys.c
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
lib/xlib_cell.c
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
16c6dce013f089d072256652f012b3b604781bfd 17-Dec-2009 Michal Krol <michal@vmware.com> Merge branch 'master' into pipe-format-simplify

Conflicts:
src/gallium/auxiliary/draw/draw_pipe_aaline.c
src/gallium/auxiliary/draw/draw_pipe_pstipple.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/auxiliary/util/u_surface.c
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
src/gallium/drivers/cell/ppu/cell_texture.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/softpipe/sp_tile_cache.c
src/gallium/drivers/svga/svga_state_vs.c
src/gallium/include/pipe/p_format.h
src/gallium/state_trackers/dri/dri_drawable.c
src/gallium/state_trackers/egl/egl_surface.c
src/gallium/state_trackers/python/p_device.i
src/gallium/state_trackers/python/st_softpipe_winsys.c
src/gallium/state_trackers/vega/api_filters.c
src/gallium/state_trackers/vega/image.c
src/gallium/state_trackers/vega/mask.c
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/vg_tracker.c
src/gallium/state_trackers/xorg/xorg_crtc.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/gallium/state_trackers/xorg/xorg_renderer.c
src/gallium/state_trackers/xorg/xorg_xv.c
src/gallium/state_trackers/xorg/xvmc/surface.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
src/gallium/winsys/drm/radeon/core/radeon_buffer.c
src/gallium/winsys/egl_xlib/sw_winsys.c
src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
src/gallium/winsys/gdi/gdi_llvmpipe_winsys.c
src/gallium/winsys/gdi/gdi_softpipe_winsys.c
src/gallium/winsys/xlib/xlib_cell.c
src/gallium/winsys/xlib/xlib_llvmpipe.c
src/gallium/winsys/xlib/xlib_softpipe.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_texture.c
e195eab9093d2a6cf55a42b2e7789c9a381b7782 17-Dec-2009 Michal Krol <michal@vmware.com> Merge branch 'glsl-pp-rework-2'
417ce06306962a9355cbb35cefcdea1951b0ce85 12-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: flush CS if a buffer being deleted is referenced by it
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
22d2547ad1cac1f91e839f646918ef7df6293ae9 15-Dec-2009 Matthew Bell <matthew@bells23.org.uk> mesa: Add missing $(DESTDIR) support to src/gallium/winsys/xlib/Makefile
lib/Makefile
75e8dbb2351c6bdbda0e5eaefdf434a7a5518c75 13-Dec-2009 Vinson Lee <vlee@vmware.com> i915g: Silence unused value warning in intel_drm_get_device_id.
rm/intel/gem/intel_drm_api.c
a3eb0f718e19653a2ad8e49396c904183be456f3 12-Dec-2009 Michal Krol <michal@vmware.com> Merge branch 'master' into glsl-pp-rework-2

Conflicts:
progs/perf/drawoverhead.c
progs/perf/teximage.c
progs/perf/vbo.c
progs/perf/vertexrate.c
src/mesa/shader/slang/library/slang_common_builtin_gc.h
a087eb590d780cb82b49464e05ffc85123adce7e 11-Dec-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:
src/gallium/state_trackers/xorg/xorg_xv.c
src/mesa/drivers/dri/intel/intel_span.c
491f384c3958067e6c4c994041f5d8d413b806bc 10-Dec-2009 José Fonseca <jfonseca@vmware.com> scons: Get GLSL code building correctly when cross compiling.

This is quite messy. GLSL code has to be built twice: one for the
host OS, another for the target OS.
di/SConscript
71f4267ac23f52dcc94590cb94c3e0ce451662aa 10-Dec-2009 Roland Scheidegger <sroland@vmware.com> winsys/intel: fix dereferencing of opaque type due to pipe_reference changes
rm/intel/gem/intel_drm_fence.c
5e2a86cb1be935f1c54efcf5b4e6a1b7371ff5e7 08-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Properly detect overlay support
rm/vmware/xorg/vmw_driver.h
rm/vmware/xorg/vmw_ioctl.c
rm/vmware/xorg/vmw_video.c
b7cf8a1f93ef3a81f2e8c44adca9a3990da4466d 08-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/core: Update vmwgfx_drm.h
rm/vmware/core/vmwgfx_drm.h
4ebc54795dc93f7eee200312abfa2da1b49506e3 08-Dec-2009 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-strict-aliasing'
eaa3a025da18a0b7f25460f86bb4afcd08017dfe 08-Dec-2009 Michel Dänzer <daenzer@vmware.com> Merge branch 'mesa_7_7_branch'
32ccc9b0bbfad46d2f4ce3b9ac4cdd182d7b64e4 08-Dec-2009 Michel Dänzer <daenzer@vmware.com> vmware/xorg: Fix SCons build.

Not sure how vmw_screen.c could build at all though...
rm/vmware/xorg/SConscript
rm/vmware/xorg/vmw_screen.c
9e42683fb3ecd453267a5885a138b425a2b79236 08-Dec-2009 Michel Dänzer <daenzer@vmware.com> vmware/xorg: Avoid warning about HAVE_STDINT_H being redefined.
rm/vmware/xorg/vmw_ioctl.c
b5e256c76dea2182c82af2a4f66224735701d55a 08-Dec-2009 Andre Maasikas <amaasikas@gmail.com> Merge branch 'mesa_7_7_branch'

Conflicts:
src/mesa/drivers/dri/r600/r700_assembler.c
src/mesa/main/version.h
12981589b729de0242d6ea74d8e4e9889793088c 07-Dec-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Automatically softpipe for non-r3xx.

Well, technically non-r[345]xx. At any rate...

$ glxgears
libGL: OpenDriver: trying /home/simpson/mesa/lib/gallium/r600_dri.so
131 frames in 5.0 seconds = 26.107 FPS

I'm sure you can see where this is going. :3
rm/radeon/core/radeon_drm.c
e3a3ca097c1859c59daf99b722a788cd432b40dc 07-Dec-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Call softpipe_create directly.

Allows us to finally remove radeon_winsys_softpipe.
rm/radeon/core/Makefile
rm/radeon/core/SConscript
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_winsys_softpipe.c
rm/radeon/core/radeon_winsys_softpipe.h
447dddb93d8dc2551ef7a9c43004237c7a8dd2dd 06-Dec-2009 Younes Manton <younes.m@gmail.com> Merge branch 'master' into pipe-video

Conflicts:

src/gallium/auxiliary/vl/vl_compositor.c
src/gallium/auxiliary/vl/vl_compositor.h
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
src/gallium/auxiliary/vl/vl_shader_build.c
9e8ab2e7c1b8ff5279d4247b8690c9bfc57f7e02 05-Dec-2009 Younes Manton <younes.m@gmail.com> g3dvl: It's ok to not have cliprects (minimized windows, etc).
3dvl/dri/dri_winsys.c
042b524d48ebb15215430149b9b1653f4b46dee3 04-Dec-2009 Marek Olšák <maraeo@gmail.com> radeong: flush CS if a buffer being mapped is referenced by it

Also, overlapping occlusion queries seems to work now.
rm/radeon/core/radeon_buffer.c
7679447b5835fd73ab44b3d77b12a034c95af5c5 02-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g, radeong: fix the CS overflow
rm/radeon/core/radeon_r300.c
3da8265cd3233e2b22ab0f8a28fbba892984e399 04-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: fix warnings
rm/radeon/core/radeon_buffer.c
6f1db18f148b9014af80abe0524827f1cb3ec013 04-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Also stop ports on close
rm/vmware/xorg/vmw_video.c
124f4bc97712acfe7d08807b013a101a4d6276e1 04-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Stop video ports on leave vt
rm/vmware/xorg/vmw_driver.h
rm/vmware/xorg/vmw_screen.c
rm/vmware/xorg/vmw_video.c
1ef8c493b25cdb4bb006f9198c00acacd19e2c75 04-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Use Write instead of WriteRead for cursor bypass
rm/vmware/xorg/vmw_ioctl.c
cd4d806a47d2cbb706a9f1cd49d990fcb803efb6 04-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Give kernel infromation about cursor bypass
rm/vmware/xorg/vmw_driver.h
rm/vmware/xorg/vmw_ioctl.c
rm/vmware/xorg/vmw_screen.c
12fdef20b02595c10cec91aad75abe6ca59f5513 04-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Handle no init of video in vmw_video_close
rm/vmware/xorg/vmw_video.c
47e128331a26fa61506920c48bc82eaf5bd0460a 04-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/core: Update vmwgfx_drm.h to include cursor bypass
rm/vmware/core/vmwgfx_drm.h
9c6a9363ef96c00dd0ad63e340b32479e43fea45 04-Dec-2009 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-noblocks'

Conflicts:
src/gallium/state_trackers/xorg/xorg_exa.c
4153ec547cfb7fcb26bbeb09ac9ef19fe88d3e4e 03-Dec-2009 Roland Scheidegger <sroland@vmware.com> gallium: fix remaining users of pipe_reference function
rm/intel/gem/intel_drm_fence.c
rm/vmware/core/vmw_surface.c
cceeab39ea541b1be1521114316d660a77769c2a 03-Dec-2009 Michal Krol <michal@vmware.com> Move pf_get_bits/size() to u_format auxiliary module.
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
6df42d80234d13676fc3207cf44f0e371e3372b5 03-Dec-2009 Michal Krol <michal@vmware.com> Move pf_get_block() to u_format auxiliary module.
rm/nouveau/drm/nouveau_drm_api.c
rm/radeon/core/radeon_buffer.c
gl_xlib/sw_winsys.c
3dvl/xlib/xsp_winsys.c
di/gdi_softpipe_winsys.c
lib/xlib_cell.c
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
ab7e70fabd17ebab755a41142a783d84570f298e 02-Dec-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Clean up some bad code.
rm/radeon/core/radeon_r300.c
f79028bbd4398b1c0f5c34014d8283bd6352aca6 02-Dec-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Add helper to determine pipe driver.
rm/radeon/core/radeon_drm.c
4395d35c8a9f56d5e5614db583e700668933bfd3 02-Dec-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Do ioctls before selecting pipe driver.
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_r300.c
4f77b0103d5f150845300ee8bddcef20d11a9820 02-Dec-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g, radeong: De-specialize r300_winsys into radeon_winsys.

There's like five good reasons for this, I swear.
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
rm/radeon/core/radeon_winsys.h
dad193d516422a9e330e58148822735b0decb8da 02-Dec-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeong: Change ioctl order, document it.
rm/radeon/core/radeon_r300.c
908a3e56ccf2e6266ebf081e2947e2d6b24f2585 02-Dec-2009 Brian Paul <brianp@vmware.com> cell: added tex_usage param to xm_surface_buffer_create()
lib/xlib_cell.c
cc8a537c57a62a196106b592e510e4c93bd1826e 02-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> Merge branch 'mesa_7_7_branch'
0c75854cc1650dc870e042aa66a053e70b3d4556 02-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> Merge commit 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
src/mesa/main/version.h
77ff3a5619721cfd917f9fd45e4b3a1c866c578f 01-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Add video support

By using the hooks st/xorg provides us we can create a driver
specific implementation that uses the svga overlay engines.
rm/vmware/xorg/Makefile
rm/vmware/xorg/vmw_driver.h
rm/vmware/xorg/vmw_ioctl.c
rm/vmware/xorg/vmw_screen.c
rm/vmware/xorg/vmw_video.c
64102a56256c95f17f59456a78d9ff2b05889bfb 24-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Create a small driver that sits ontop of st/xorg
rm/vmware/xorg/Makefile
rm/vmware/xorg/vmw_driver.h
rm/vmware/xorg/vmw_hook.h
rm/vmware/xorg/vmw_screen.c
rm/vmware/xorg/vmw_xorg.c
232e59ca6fe678ac370ee5a45bc31e6f7f3e6bcf 01-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/core: Update vmwgfx_drm.h to latest version
rm/vmware/core/vmwgfx_drm.h
06d3732a9094030fc33120f16f162e0d405f132c 01-Dec-2009 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/mesa_7_7_branch'

Conflicts:
src/gallium/drivers/svga/svga_screen_texture.c
src/gallium/state_trackers/xorg/xorg_composite.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/gallium/state_trackers/xorg/xorg_renderer.c
src/gallium/state_trackers/xorg/xorg_xv.c
src/mesa/main/texgetimage.c
src/mesa/main/version.h
decf6ed810eae473d043a4a399a5a84f1378a725 30-Nov-2009 Roland Scheidegger <sroland@vmware.com> fixups for interface changes (mostly state trackers)
rm/nouveau/drm/nouveau_drm_api.c
rm/radeon/core/radeon_buffer.c
gl_xlib/sw_winsys.c
3dvl/xlib/xsp_winsys.c
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
lib/xlib_cell.c
lib/xlib_llvmpipe.c
lib/xlib_softpipe.c
6781f624af8b06061673f3fd6f19ffb6a56c3e8c 30-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: pass backbuffer tiling information to driver

The gem winsys gets this information, needs to pass it on.
rm/i965/gem/i965_drm_api.c
rm/i965/gem/i965_drm_winsys.h
1fd3a2773b83c6b893b220a4e449f34e73adfe0b 30-Nov-2009 Keith Whitwell <keithw@vmware.com> ws/i965: more debug output
rm/i965/gem/i965_drm_api.c
rm/i965/gem/i965_drm_buffer.c
1dfdc0a615f378cb92e45d878d778bf01dffaa66 30-Nov-2009 Keith Whitwell <keithw@vmware.com> ws/i965: rename and change sense of I965_SEND_CMD to BRW_NO_HW
rm/i965/gem/i965_drm_api.c
rm/i965/gem/i965_drm_winsys.h
cddc7e3a9cd321247c2298ef1b94cced1122a8e5 30-Nov-2009 Keith Whitwell <keithw@vmware.com> brw: add dumping to gem winsys
rm/i965/gem/i965_drm_api.c
rm/i965/gem/i965_drm_buffer.c
rm/i965/gem/i965_drm_winsys.h
rm/i965/xlib/xlib_i965.c
6f1bc4267f6cd2e18a6a572a5aed2fccd747ce0f 28-Nov-2009 Dave Airlie <airlied@linux.ie> i965g: link xorg state tracker with -ldrm_intel
rm/i965/xorg/Makefile
c95cbd45c657ac47e908a4d99d118737034bde43 27-Nov-2009 Roland Scheidegger <sroland@vmware.com> Merge branch 'width0'

Conflicts:
src/gallium/drivers/r300/r300_texture.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/mesa/state_tracker/st_cb_texture.c
69671df74c8b45f08149c248a7ee905912aec2b0 27-Nov-2009 Vinson Lee <vlee@vmware.com> svga: Prevent potential null pointer dereference in vmw_surface.c.
rm/vmware/core/vmw_surface.c
d509f84543d0979e9bb53c20c195f378dd61e728 26-Nov-2009 Roland Scheidegger <sroland@vmware.com> gallium: fix more statetrackers/drivers for not using texture width/height/depth arrays
rm/nouveau/drm/nouveau_drm_api.c
rm/radeon/core/radeon_buffer.c
949d95e88a18e5047a6a7ceb1e28a8d80a30fb17 24-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Remove gem include
rm/vmware/xorg/Makefile
45d9ea361981520a7c5df3ef1e10b76fac14bf02 24-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Link against libkms

If the system doesn't have libkms installed it wont try to link against it.
rm/vmware/xorg/Makefile
77529a2cf296b611fa49ab4fe711d8bbb2177d85 24-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Clean Makefile a bit
rm/vmware/xorg/Makefile
522e840a91ef9fe35e5830626b9ce388169e5d22 24-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Don't link against libdrm_intel
rm/vmware/xorg/Makefile
eca5d6944aa20e33d1c2c2653f827f5707f8274a 24-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Stage driver in lib/gallium
rm/vmware/xorg/Makefile
0a27c7b96337b1a56100d2cc3b5fa0454fc7c165 24-Nov-2009 Brian Paul <brianp@vmware.com> egl: use util_bitcount()
gl_xlib/egl_xlib.c
86710c3334850eeaeffcac6d538e01fd5c203167 23-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> svga: Scrub Makefiles a bit

Remove x86 specific hacks. Not that they will ever be used on
none x86 arches, but they are built by default. And the way the
flags where added was a hack.
rm/vmware/core/Makefile
57d389aab5ea4462475756c0e262f3cb543f889d 22-Nov-2009 Vinson Lee <vlee@vmware.com> svga: Prevent potential null pointer deference in vmw_surface.c.
rm/vmware/core/vmw_surface.c
b62a74d3b94024bc08b31394f827761d354d2516 22-Nov-2009 Vinson Lee <vlee@vmware.com> svga: Fix memory leak in vmw_screen_ioctl.c
rm/vmware/core/vmw_screen_ioctl.c
46492f11f6f771e12ab2d13f9d7e9eb9e032c2dc 17-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> svga: More -Werror removal
rm/vmware/core/Makefile
rm/vmware/dri/SConscript
rm/vmware/xorg/SConscript
8c5a108dc321c4760e6d70b1104493b5bd54e6de 17-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> svga: Remove -Werror for now as GCC 4.4.x raises a bunch of warnings
rm/vmware/core/SConscript
60769b232c8eedddc24f25ab91f35bcb6973dded 12-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> svga: Build svga driver
rm/SConscript
f7109aaf6c6020da89a0683cf5548181f2db36fb 17-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> svga: Add vmwgfx_drm.h file from vmwgfx kernel driver

Add the vmwgfx_drm.h header for now, this allows the svga driver
to be enabled by default without forcing people to install the
vmwgfx_drm.h header on their system.

To be removed once vmwgfx_drm.h is in libdrm.
rm/vmware/core/vmwgfx_drm.h
3192633d4abe262d413e41feb871fe8deed409d8 16-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> svga: Add svga driver
rm/vmware/Makefile
rm/vmware/SConscript
rm/vmware/core/Makefile
rm/vmware/core/SConscript
rm/vmware/core/vmw_buffer.c
rm/vmware/core/vmw_buffer.h
rm/vmware/core/vmw_context.c
rm/vmware/core/vmw_context.h
rm/vmware/core/vmw_fence.c
rm/vmware/core/vmw_fence.h
rm/vmware/core/vmw_screen.c
rm/vmware/core/vmw_screen.h
rm/vmware/core/vmw_screen_dri.c
rm/vmware/core/vmw_screen_ioctl.c
rm/vmware/core/vmw_screen_pools.c
rm/vmware/core/vmw_screen_svga.c
rm/vmware/core/vmw_surface.c
rm/vmware/core/vmw_surface.h
rm/vmware/dri/Makefile
rm/vmware/dri/SConscript
rm/vmware/egl/Makefile
rm/vmware/xorg/Makefile
rm/vmware/xorg/SConscript
rm/vmware/xorg/vmw_xorg.c
c5f9713bd3a306e37560fb23d8f68161d2f50d7c 15-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: remove droppings in xlib winsys
lib/Makefile
334676ed9a185bc0836d2ffe070e21210fac1bde 14-Nov-2009 Younes Manton <younes.m@gmail.com> nouveau: Link with softpipe.
rm/nouveau/dri/Makefile
f5b6e0639065eed99c491a1eb5413b96957b3b6a 13-Nov-2009 Michal Krol <michal@vmware.com> gdi: Link to glslcl.
di/SConscript
4b9cc50345b5b10bb998ce5ce6f7cb37b72f354f 09-Nov-2009 Chia-I Wu <olvaffe@gmail.com> st/egl: Allow APIs other than OpenGL.

This is done by stopping linking to libmesagallium.a and removing DRI
related stuff. The state tracker an application links to decides the
API supported.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
rm/intel/egl/Makefile
rm/intel/egl/dummy.c
rm/radeon/egl/Makefile
rm/radeon/egl/dummy.c
5f0ea53747c14b1cd9686bcf650b96504128116e 10-Nov-2009 Chia-I Wu <olvaffe@gmail.com> egl_softpipe: Clean up Makefile.

Fix generation of depend. Link to the dynamic libraries used.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/Makefile
1f94c06d3fcf7ff365c3e528179869d702bdd25e 06-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> i965g: Fixup buffer creation function

First tri!
rm/i965/gem/i965_drm_buffer.c
0532cc0c86d36f98ae33291847fbd9f2564cbed2 06-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> i965g: trivial/clear can now send stuff to hardware

Added a flag if we should send commands to hardware
as what we send isn't all that correct.
rm/i965/gem/i965_drm_api.c
rm/i965/gem/i965_drm_buffer.c
rm/i965/gem/i965_drm_winsys.h
6949d5c777a1f1b2a6daf4a1151fca417ba3c8be 06-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> i965g: Winsys whitespace
rm/i965/gem/i965_drm_api.c
rm/i965/gem/i965_drm_buffer.c
68b5a501c564c68dadc728a08293742897031fd8 06-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> i965g: Build winsys again
rm/i965/dri/Makefile
rm/i965/gem/i965_drm_buffer.c
8ebc795ec4265577fe67185a32d8985debda076a 06-Nov-2009 Younes Manton <younes.m@gmail.com> g3dvl: Shared drm winsys bits.
akefile
3dvl/Makefile
3dvl/dri/Makefile
3dvl/dri/XF86dri.c
3dvl/dri/dri_winsys.c
3dvl/dri/driclient.c
3dvl/dri/driclient.h
3dvl/dri/xf86dri.h
3dvl/dri/xf86dristr.h
3dvl/drm/Makefile
3dvl/drm/Makefile.template
3dvl/drm/nouveau/Makefile
3dvl/nouveau/Makefile
3dvl/nouveau/drm_nouveau_winsys.c
3dvl/nouveau/nouveau_context_vl.c
3dvl/nouveau/nouveau_context_vl.h
3dvl/nouveau/nouveau_screen_vl.c
3dvl/nouveau/nouveau_screen_vl.h
3dvl/nouveau/nouveau_swapbuffers.c
3dvl/nouveau/nouveau_swapbuffers.h
6678f597e7c9ba784c9af0c86cfc6821558bcaa7 15-Oct-2009 Chia-I Wu <olvaffe@gmail.com> gallium/xlib: Fix missing symbols when GLX_INDIRECT_RENDERING is defined.

When GLX_INDIRECT_RENDERING is defined, some symbols are used in
libglapi.a but are not defined. Define them through the help of
glapitemp.h.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
lib/xlib.c
c93d9c1ce350241c32cbf882d247423cea4cf9c4 05-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: clean up winsys dumping code a little
rm/i965/xlib/xlib_i965.c
4c196ed7a8e06933d11b96ac520afa39252fc5c7 05-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: pass relocation information in an array with bo_subdata

Makes it easier to dump as we get all of the information
about the upload in a single hit.

Opens the window to simplification in the driver if these
relocation arrays can be maintained statically rather than
being recreated whenever we check for a new upload.

Still needs some cleanup to avoid uglyness introduced with the
delta values.
rm/i965/xlib/xlib_i965.c
3763457892c2d0c654c0eca7585e4d3a863f7714 05-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: propogate map-buffer-range semantics down to winsys
rm/i965/xlib/xlib_i965.c
963728665aa0d48d4fdbba4276084528f221ee39 05-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: make the winsys responsible for all buffer->offset handling

The winsys now inserts the presumed offset into referring buffers from
inside of bo_emit_reloc(). Remove the many locally coded places where
this was happening in the driver and eliminate the worry of getting it
wrong.

No longer need to expose offset values to the driver at all, so no need
to worry about what to do in the driver when they change. Just use
zero values wherever we had offsets previously -- the relocations will
fix it all up for us.
rm/i965/xlib/xlib_i965.c
b229ee342f2cef5396a251525d5b499760280933 05-Nov-2009 Keith Whitwell <keithw@vmware.com> brw: push more dumping into the winsys
rm/i965/xlib/xlib_i965.c
aa9773d056a8799050304f75c1bf4c1f470e7e53 05-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: disassemble more than one instruction at a time
rm/i965/xlib/xlib_i965.c
61a8ab3359e7b4886af95a6cce2d6cfc4302678e 05-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: call dissassembler for appropriate data uploads
rm/i965/xlib/xlib_i965.c
c796aed5ddad011d66e631c4cafdbf779e73f213 05-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: add lots of error checks and early returns

Any allocation that may fail should be checked, and propogate the
error upwards. At the highest level we will flush batch and retry.

This is an alternate strategy to what the original DRI driver did of
attempting to flush batch from the lowest levels (eg inside
BEGIN_BATCH). The trouble with that strategy was that flushes could
occur at unexpected times, and additionally there was a need for a
wierd notification mechanism to propogate the 'lost context' state
back up to higher levels.

Propogating the errors directly gives us a lot of flexibility how to
deal with these states, at the expense of a lot more checking in the
code.

Will add some sanity checks later to make sure that out-of-memory
conditions are properly escalated and not lost halfway up the stack.
rm/i965/xlib/xlib_i965.c
09454f68e5d5f267b1d76d1cde4ff8e2a91e105c 05-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: hook up dumpers in dumping winsys
rm/i965/xlib/xlib_i965.c
6ac38232ee1ebde5ed390e3ccc22cba59ad00854 05-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: add data type tags to aid dumping/decoding
rm/i965/xlib/xlib_i965.c
47cbbb7253f89ff165c4953758efaaca19adf16f 05-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> i965g: Builds with scons

But there are some missing symbols, "nm -u i965_dri.so"
[SNIP]
U brw_surface_bo
U brw_surface_pitch
U brw_texture_blanket_winsys_buffer
U brw_texture_get_winsys_buffer
U brw_update_dirty_counts
[SNIP]
rm/SConscript
37c6820d0d60046e811a723201e4129acba2707a 05-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> i965g: Do not create a symlink for i965_dri.so
rm/i965/dri/Makefile
9bc59a9b6da5d05eda9427e60853b93c83c9cabc 05-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Do not create a symlink for i965_dri.so
rm/intel/dri/Makefile
220566d8dc4ff023ef833fd6519ab7b187e598d2 05-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: consolidate some includes
rm/i965/xlib/xlib_i965.c
18efe9a6878e52c53161c7a169863c4a7c5778fd 05-Nov-2009 Keith Whitwell <keithw@vmware.com> ws/i965: allow NULL buffer in winsys::bo_unreference

Special case to avoid clutter in the driver
rm/i965/xlib/xlib_i965.c
cde48bc8d1576482d7381b9b6fdce32b013e5d00 04-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: hook up flush-frontbuffer
rm/i965/xlib/xlib_i965.c
a09b3d50975e68c13c0421d770f3865ad2a1257c 04-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: add missing buffer functions
rm/i965/xlib/xlib_i965.c
82a19f097427916f4ce594b7c40b0d4b33502727 04-Nov-2009 Keith Whitwell <keithw@vmware.com> ws/i965: add load-time driver registration

Otherwise xlib state-tracker doesn't know about us.
rm/i965/xlib/xlib_i965.c
b549bbb49868702d45fbcf5d75d2c14ffeca692b 04-Nov-2009 Keith Whitwell <keithw@vmware.com> ws/i965: add butt-ugly linker hack

Need more linker magic to keep the glX symbols externally visible even
though they started off in a .a file.
rm/i965/xlib/xlib_i965.c
211d7ab22b13430aaae00a0dfe95492450bcca20 04-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: add standalone xlib debug winsys

Create a dummy winsys that just debug-prints on calls into the winsys
functions. Will use this to get to the point where we are generating
sane-looking debug dumps and diassembly.

Also fix various warnings generated with the new compiler flags set in
this config.
rm/i965/xlib/Makefile
rm/i965/xlib/xlib_i965.c
lib/Makefile
a277bb20debc413f6ccf46f529497bf8bafa64dd 04-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: convert read/write domain pairs into single usage value

Easier to understand what's going on in the driver sources, convert
stereotype usage values back to GEM read/write domain flags in the
winsys.
rm/i965/gem/i965_drm_buffer.c
e60a8e4fcf2b4073a5fc2d9ec1de5a6ca6c7b9fe 03-Nov-2009 Younes Manton <younes.m@gmail.com> g3dvl: DRM winsys changes.
rm/nouveau/drm/nouveau_drm_api.c
rm/nouveau/drm/nouveau_drm_api.h
3dvl/nouveau/Makefile
3dvl/nouveau/drm_nouveau_winsys.c
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
87d7c1aa15a944d64e43b217e18553256f9fb681 02-Nov-2009 Younes Manton <younes.m@gmail.com> nouveau: Assume all texture blankets are linear for now.
rm/nouveau/drm/nouveau_drm_api.c
15a8ac2c9d6ed13468ef88f3f3bd3ccf4ee2fd0e 01-Nov-2009 Keith Whitwell <keithw@vmware.com> i965g: driver and winsys compile

A milestone of sorts. Still a long way from something working --
the old one compiled too, at least some of the time...
rm/i965/gem/Makefile
rm/i965/gem/SConscript
rm/i965/gem/i965_drm_api.c
rm/i965/gem/i965_drm_batchbuffer.c
rm/i965/gem/i965_drm_buffer.c
rm/i965/gem/i965_drm_fence.c
rm/i965/gem/i965_drm_winsys.h
da1fb3be8293df9f89aaec726f32d73e03d57fb6 29-Oct-2009 Cooper Yuan <cooperyuan@gmail.com> r300g: Fix bytes_per_line calculation error while displaying surface
rm/radeon/core/radeon_buffer.c
357e5c9a0e4656bc8f68799a2a082bbdd1277b7a 24-Oct-2009 Keith Whitwell <keithw@vmware.com> ws/i965: renames from i915, hook up makefiles
rm/i965/dri/Makefile
rm/i965/dri/SConscript
rm/i965/egl/Makefile
rm/i965/gem/Makefile
rm/i965/gem/SConscript
rm/i965/gem/i965_drm_api.c
rm/i965/gem/i965_drm_batchbuffer.c
rm/i965/gem/i965_drm_buffer.c
rm/i965/gem/i965_drm_fence.c
rm/i965/gem/i965_drm_winsys.h
rm/i965/gem/intel_drm_api.c
rm/i965/gem/intel_drm_batchbuffer.c
rm/i965/gem/intel_drm_buffer.c
rm/i965/gem/intel_drm_fence.c
rm/i965/gem/intel_drm_winsys.h
rm/i965/xorg/Makefile
c93d2e4540606bfd878730351dc5b68dc6d3dd8f 24-Oct-2009 Keith Whitwell <keithw@vmware.com> ws/i965: pull in the rest of the i915 winsys tree.

The intel_xorg file looks like it's got quite a bit of code that could
be lifted up into the xorg state tracker -- should really just have a
list of pci ids and a pointer to a screen create func.
rm/i965/Makefile
rm/i965/SConscript
rm/i965/dri/Makefile
rm/i965/dri/SConscript
rm/i965/egl/Makefile
rm/i965/xorg/Makefile
rm/i965/xorg/intel_xorg.c
b7efe646b66e617ff968cb69bad33308c3a2c06a 24-Oct-2009 Keith Whitwell <keithw@vmware.com> ws/i965: clone the i915 winsys

I'll want to rework this, not sure trying to share this code is a very
good idea at least until the interfaces from the two drivers calm
down.
rm/i965/gem/Makefile
rm/i965/gem/SConscript
rm/i965/gem/intel_drm_api.c
rm/i965/gem/intel_drm_batchbuffer.c
rm/i965/gem/intel_drm_buffer.c
rm/i965/gem/intel_drm_fence.c
rm/i965/gem/intel_drm_winsys.h
9b6c86b8be092b40f8a84506bc929ee939937a16 23-Oct-2009 Cooper Yuan <cooperyuan@gmail.com> r300g: last changes's typo, miss a include file
rm/radeon/core/radeon_buffer.c
6df12aad2fcdc30b200142a86c762b5e60e4b05e 23-Oct-2009 Cooper Yuan <cooperyuan@gmail.com> r300g: add flush_frontbuffer function to display video surface
rm/radeon/core/radeon_buffer.c
0072a26662994653e07b0bb14cb1f12817540566 23-Oct-2009 Cooper Yuan <cooperyuan@gmail.com> g3dvl: pass display and screen to g3dvl when creating video private context
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
3e56bef5a5f56feb65ae94a51e5db9cf943ce0ce 16-Oct-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Use debug_get_bool_option instead of getenv.
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
c1bee7bdea470b6b5dcebef9aacc8fe4feca687c 14-Oct-2009 Dave Airlie <airlied@redhat.com> r300g: fixup arb occulsion query support.

1: add rv530 support
- num z pipes cap
- add proper start/finish query options for rv530

2: convert to use linked list properly.

3: add flushing required check.

4: initial Z top disabling support.

TODO:
make it actually work on my rv530.
rm/radeon/core/radeon_r300.c
210481ae16e966865dcf9f1fd5f5dfabf4dc28bc 14-Oct-2009 Dave Airlie <airlied@redhat.com> r300g: attempt to make bo space check sane.

This attempts to make r300g do proper bo space checking as opposed
to whatever it was doing now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
rm/radeon/core/radeon_r300.c
59ae3d51556229631f558f56268df89c885de664 06-Oct-2009 Zack Rusin <zackr@vmware.com> configs: fix some remains of the i915simple driver
lib/SConscript
b858257ca698e2f7dd3004299ae91d3687ae1f1b 05-Oct-2009 José Fonseca <jfonseca@vmware.com> gdi: Fix the build when llvmpipe is requested (the default) but llvm is not present.
di/SConscript
f8ba93aefdf23b88a945d6037cd2e672c99b314c 07-Oct-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Change order of buffer_write arguments

They now follow the pipe_buffer_write style,
its the gallium driver that sets the interface not
the winsys.
rm/intel/gem/intel_drm_buffer.c
4911443d364e38bf93915cf9587f5cf8791cb30d 06-Oct-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: fix buffer object leak

Very apparent with resizing windows on DRI2.
rm/nouveau/drm/nouveau_drm_api.c
db8b363eb9fd03a377f8d1f1bab5b29c64a3caa7 06-Oct-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Add more defines to tweek batchbuffer
rm/intel/gem/intel_drm_batchbuffer.c
722ae91722342ae8d32244a0e0c3a8ad1fdae4e2 05-Oct-2009 Brian Paul <brianp@vmware.com> i965g: remove 965/brw files from XLIB_WINSYS_SOURCES
lib/Makefile
f00da2a3ff59c1a7104ac25a1c6eba5a6050ad68 30-Sep-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Drop the simple sufix

None of the other driver have a silly sufix,
so just drop it. Nothing new added in this commit
or any other commit but this is better marketing.
rm/intel/dri/Makefile
rm/intel/dri/SConscript
rm/intel/egl/Makefile
rm/intel/gem/intel_drm_api.c
rm/intel/gem/intel_drm_winsys.h
rm/intel/xorg/Makefile
c4b821a4c64d75d944653d665bede946763ed95b 29-Sep-2009 Jakob Bornecrantz <jakob@vmware.com> i965g: Drop i965simple

The driver never work with real hardware and has
bitrotted for quite some time now, might as well
drop it. If somebody wants to look at it just use git.
lib/SConscript
lib/xlib.c
lib/xlib.h
lib/xlib_brw.h
lib/xlib_brw_aub.c
lib/xlib_brw_aub.h
lib/xlib_brw_context.c
lib/xlib_brw_screen.c
5313f1be11568b21f2e5fa5e8607bcbb422c3cab 05-Oct-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: return pitch value from local_handle_from_texture()

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
rm/nouveau/drm/nouveau_drm_api.c
59b20b760d63dad15d4d62a43bae8b7e26085c79 03-Oct-2009 Nicolai Hähnle <nhaehnle@gmail.com> r300g: Fix memory leak in radeon_texture_from_shared_handle

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
rm/radeon/core/radeon_drm.c
aa6aa77a1be91022933975dbccf8f2aabc584baa 03-Oct-2009 Sedat Dilek <sedat.dilek@gmail.com> r300g: Build in the trace and softpipe driver for xorg state tracker

Same as in src/gallium/winsys/drm/intel/xorg/Makefile

Thanks MrCooper for explanations on IRC

[ Summary amended by Michel Dänzer to clarify that this is related to the xorg
state tracker ]
rm/radeon/xorg/Makefile
f9f7646fe64364f74cc8dd1a6d5ca3a6700f142f 02-Oct-2009 Younes Manton <younes.m@gmail.com> g3dvl: Formatting.
3dvl/xlib/xsp_winsys.c
577f12fbba0b30925f43832ffd15214ca2218dca 02-Oct-2009 Younes Manton <younes.m@gmail.com> g3dvl: Delete state_trackers/g3dvl, other unused files.
3dvl/xsp_winsys.c
fcb595c04f9ee275eae49b7bb7c61246671f5ce2 02-Oct-2009 Younes Manton <younes.m@gmail.com> g3dvl: Copyright blocks.
3dvl/vl_winsys.h
3dvl/xlib/xsp_winsys.c
97c28bb63a4e1029eaf36d23b780f4d3396118a0 28-Sep-2009 Younes Manton <younes.m@gmail.com> g3dvl: Move XvMC under the Xorg state tracker.
3dvl/xlib/Makefile
e44c85637a3298918e292e9ddba812856cf92924 28-Sep-2009 Younes Manton <younes.m@gmail.com> g3dvl: Implement XvMC using pipe_video_context.
3dvl/Makefile
3dvl/vl_winsys.h
3dvl/xlib/Makefile
3dvl/xlib/xsp_winsys.c
5aecddc1532d6c7f5095145a50eed0405ea2bda4 23-Sep-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Make sure to map tiled buffers via the gtt
rm/intel/gem/intel_drm_api.c
rm/intel/gem/intel_drm_buffer.c
c3663bdc35d393194da9fb3b4d5120ea70eb1bbe 23-Sep-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Enable reuse of buffers
rm/intel/gem/intel_drm_api.c
86962d6f6eb74cc426f57b760cc0cdcb9fec3eef 24-Sep-2009 José Fonseca <jfonseca@vmware.com> gdi: Update for WGL state tracker interface changes.
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
890679d4322e7ba4f12f32532a3fdd277edff886 23-Sep-2009 Keith Whitwell <keithw@vmware.com> Merge branch 'softpipe-opt'

Conflicts:
progs/demos/cubemap.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_texture.c
f8c11526c0034faca7b7e3ab01ab85206847f441 22-Sep-2009 José Fonseca <jfonseca@vmware.com> gdi: Update for WGL statetracker source reorg.
di/gdi_llvmpipe_winsys.c
di/gdi_softpipe_winsys.c
19798e17feb3616ec301ada306a6fa3765077f56 22-Sep-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Activate trace
rm/intel/gem/intel_drm_api.c
774db70506670b4f4121b6697ac39abd184a56d9 21-Sep-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: allow building modesetting_drv.so
rm/nouveau/xorg/Makefile
rm/nouveau/xorg/nouveau_xorg.c
344e2fd1f2aa580e13faf398b5d0179479cd5e76 21-Sep-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: drm_api create_screen()'s 'arg' argument can be NULL
rm/nouveau/drm/nouveau_drm_api.c
2a661c383fee65bc4413541e706925fa3e9b9cf5 17-Sep-2009 Michal Krol <michal@vmware.com> Merge commit 'origin/master' into glsl-pp-rework-2

Conflicts:
src/gallium/winsys/gdi/SConscript
b60e1d7630fb35017b07df51493e1df46715fa53 16-Sep-2009 José Fonseca <jfonseca@vmware.com> gdi: Integrate with llvmpipe where available.
di/SConscript
di/gdi_llvmpipe_winsys.c
41bbc8395111c6ef37e08a63ee58876d10a09e77 15-Sep-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_6_branch'
287f0072d2bb8b74500076685830c397c580e4a2 15-Sep-2009 Cooper Yuan <cooperyuan@gmail.com> st/g3dvl: pass color values to softpipe clear function
3dvl/xsp_winsys.c
9f273f109875cd9208d4c1c8f5939fb5e507c230 14-Sep-2009 Michal Krol <michal@vmware.com> Merge commit 'origin/master' into glsl-pp-rework-2
d81086a86bd7c82eae5a8f0d1092a30c23626257 11-Sep-2009 Brian Paul <brianp@vmware.com> llvmpipe: asst fixes for 'make linux-llvmpipe'
lib/Makefile
lib/xlib_llvmpipe.c
e589a37f7b72da4f5eb8cbb46443d7baf710b37c 09-Sep-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Add buffer write callback
rm/intel/gem/intel_drm_buffer.c
547b726484766b644c40587a5b41a44dbe80f3be 08-Sep-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: pwrite batchbuffer instead of map
rm/intel/gem/intel_drm_batchbuffer.c
3833587818cc40a3d0f09b430e5a0a475d5a7167 08-Sep-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Map vertex buffers via gtt
rm/intel/gem/intel_drm_buffer.c
530fbd314e9d04db7f4e2a8f7d3a705393a6f9aa 05-Sep-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Remove lib prefix from driver
rm/intel/dri/SConscript
0aeff7638b4ae14a9142ff05390cbc89a058d57e 08-Sep-2009 Michal Krol <michal@vmware.com> gdi: Fix prototype of gdi_softpipe_surface_buffer_create().
di/gdi_softpipe_winsys.c
fcb94f6e3e81abe9fbfe8dac3925c6c210b5cf42 08-Sep-2009 Michal Krol <michal@vmware.com> gdi: Fix prototype of gdi_softpipe_surface_buffer_create().
di/gdi_softpipe_winsys.c
d26d77295b87cbd61ccafcf03d30b0c900d22a5f 07-Sep-2009 Michal Krol <michal@vmware.com> gdi: Add glsl to LIBS.
di/SConscript
617202b5783b227be4f082b0da51b84d48500b3c 06-Sep-2009 Michel Dänzer <daenzer@vmware.com> r300g: Fix some issues pointed out by compiler warnings.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_r300.c
7b8ec0d8e72b4dd0c60db9c9454acd1f1ec75a7e 06-Sep-2009 Michel Dänzer <daenzer@vmware.com> r300g: Handle PIPE_BUFFER_USAGE_DONTBLOCK as intended.

Return NULL if the BO is busy, otherwise just map it.
rm/radeon/core/radeon_buffer.c
9e711b6865fdd2842d1dbfa15ab03488dfd2e86f 03-Sep-2009 Brian Paul <brianp@vmware.com> gallium/xlib: silence uninitialized var warning
lib/xlib_brw_screen.c
3070b13f4c418359ca11f6cf44b39dcf630b29fb 03-Sep-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Up the number of relocs
rm/intel/gem/intel_drm_batchbuffer.c
8303c722cbfd75bc181b5d281ab3be836104b088 03-Sep-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Don't run in sync with HW
rm/intel/gem/intel_drm_batchbuffer.c
c0cf0fd163397d68acfb2e226a6b9a569ded54cd 02-Sep-2009 Michel Dänzer <daenzer@vmware.com> st/xorg: Remove code no longer support by xserver Git master.

Shouldn't be necessary with older versions either.
rm/intel/xorg/intel_xorg.c
rm/radeon/xorg/radeon_xorg.c
836a9f0ae6e03d2f92dc024703015c25a5b3c353 01-Sep-2009 José Fonseca <jfonseca@vmware.com> scons: Tool for LLVM. Gracefully disable llvmpipe if LLVM not found.
lib/SConscript
935e4c56e5b10a0a702d95f78e9f4e6660c452dc 01-Sep-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Implement new winsys
rm/intel/gem/Makefile
rm/intel/gem/SConscript
rm/intel/gem/intel_be_api.c
rm/intel/gem/intel_be_api.h
rm/intel/gem/intel_be_batchbuffer.c
rm/intel/gem/intel_be_batchbuffer.h
rm/intel/gem/intel_be_context.c
rm/intel/gem/intel_be_context.h
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
rm/intel/gem/intel_be_fence.h
rm/intel/gem/intel_drm_api.c
rm/intel/gem/intel_drm_batchbuffer.c
rm/intel/gem/intel_drm_buffer.c
rm/intel/gem/intel_drm_fence.c
rm/intel/gem/intel_drm_winsys.h
1ea114958baba14ff3bcac1d92bb6acf93289e59 31-Aug-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: fix for dri state tracker changes
rm/nouveau/drm/nouveau_drm_api.c
500b2604947cfe99f38119d9e3860fcf5ba8d499 30-Aug-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: hack winsys to compile again, it's broken still however
rm/nouveau/drm/nouveau_drm_api.c
d336ef410afddfdfb665dae7001c2995e2d2a70d 29-Aug-2009 José Fonseca <jfonseca@vmware.com> xlib: Implement lp_winsys::destroy.
lib/xlib_llvmpipe.c
85a0a4b2965560f279a6d7bd96c2b56dc54130bc 29-Aug-2009 José Fonseca <jfonseca@vmware.com> xlib: Implement llvmpipe lp_winsys interface.
lib/xlib_llvmpipe.c
da1248bee5471f8da2277118a23b53d308721fca 29-Aug-2009 José Fonseca <jfonseca@vmware.com> xlib: Update llvmpipe integration for changes in master.
lib/xlib_llvmpipe.c
aa2514d12d17189b2b6e9ffc51c7092fe35b309d 18-Aug-2009 Brian Paul <brianp@vmware.com> llvmpipe: add missing break in xlib _init()
lib/xlib.c
556eecea67354068f6e328da6564bef6cb74cb4e 18-Aug-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Allow to build without udis86.
lib/SConscript
818d444e12bb57568fbf3bf5f06ee24c6c73a61a 16-Aug-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Disassemble generated x86 code.
lib/SConscript
b836b2593c0450125bef6b88b02c7d6c20e9eff8 09-Aug-2009 José Fonseca <jfonseca@vmware.com> xlib: Complete llvmpipe integration.
lib/SConscript
lib/xlib.c
lib/xlib.h
c4903ee27f29b39a493701d35b38941249117a54 28-Jul-2009 José Fonseca <jfonseca@vmware.com> xlib: Integrate with llvmpipe.

Actually, the makefile/sconscript changes were already commit by mistake.
lib/xlib_llvmpipe.c
644060c0252d8d377e2be35067b30305b0569653 28-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Don't forget to init buffer ptrs
rm/intel/gem/intel_be_device.c
dbe58d7f9f48ba57d5c56265bc5a6dce0dfa11b0 28-Aug-2009 Joakim Sindholt <opensource@zhasha.com> r300g: pretty up the new drm code a bit

As it turns out, I made some boners. This corrects them (I hope)
rm/radeon/core/radeon_drm.c
6bfec14d6dbe7877e59fdb048bbbdd9871156a71 28-Aug-2009 Joakim Sindholt <opensource@zhasha.com> r300g: support new drm_api
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_r300.h
1e5014f7dfabcaf1f4b5608eb08e97179446eb09 27-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> drm_api: Operate on textures instead of buffers

Most use cases just got the buffer from the texture
and then called into one of the get_handle functions.

Also with this patch it would be easier to move to a
generic function for getting handles from textures
and textures from handles, that is exposed via the screen.
rm/intel/gem/intel_be_api.c
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
6f0a1a842685a2b172187ece08113352c3765ce6 28-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> st/xorg: Pass dri driver name as driverName on screen
rm/intel/xorg/intel_xorg.c
rm/radeon/xorg/radeon_xorg.c
c06699dd121a3f3820f6f9e3bf7829fd574cf8d2 26-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl_softpipe: Make winsys and pipe screen per display.

This is to allow a driver to drive multiple displays. Remove the use of
_EGL_PLATFORM_X along the way.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/Makefile
gl_xlib/egl_xlib.c
69170a4aae5aeb765e8ab9c61a3adfddcc5830ad 24-Aug-2009 Brian Paul <brianp@vmware.com> xlib: fix single buffer window resize bug

When a single-buffered window was resized the new window size was never
detected. This fix that, but there's still a bug which causes window
contents corruption for certain window sizes...
lib/xlib_softpipe.c
a469b4c459765445eb581e94643c75e9f651aabd 22-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Remove bad assert on fence
rm/intel/gem/intel_be_context.c
1f871a4d1536a7124d82d4503d1167bd668f84da 20-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl_softpipe: Do not flush unlinked context.

An unlinked context is destroyed after _eglMakeCurrent. Flushing such
context would cause segfault.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/egl_xlib.c
c0bc070ff5334db173df6f774257ae4c5c6e394e 19-Aug-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Oh, look, we *do* already support DONTBLOCK.

Well, okay, the kernel doesn't, but that's no excuse for us! :3
rm/radeon/core/radeon_buffer.c
14378cbd2df79d7695757b4fcb7a3ca2b1d964fe 19-Aug-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Stop using outdated ioctls.
rm/radeon/core/radeon_r300.c
c63bd15f81cecfb421ff798a3e2d0f82b90331db 18-Aug-2009 Corbin Simpson <MostAwesomeDude@gmail.com> Revert "r300-gallium, radeon-gallium: Nuke gb_pipes from orbit."

This reverts commit 6a40d1e9d96f8e8c57bc3bbd6f567cacd4471f59.

Turns out that we *do* need these for OQ after all. Go figure.

Conflicts:

src/gallium/winsys/drm/radeon/core/radeon_r300.h
rm/radeon/core/radeon_r300.c
e4aa62a6ce7067269c0befb984bcb8136420cb2c 19-Aug-2009 Brian Paul <brianp@vmware.com> egl/xlib: move call to create_configs() after we set the Xdpy field
gl_xlib/egl_xlib.c
5a2c9372a0d9fa1efd924f9386a4e3df47c17d0e 13-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Some per-driver data should be per-display.

Move some fields of _EGLDriver to _EGLDisplay. It also becomes
unnecessary to pass _EGLDisplay to drivers when _eglMain is called.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/egl_xlib.c
2f2cf461c57974abd89e4917945cc8ae6a67a72e 11-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Overhaul driver API.

The motivation is so that drivers do not need to look up and check for
bad display, context, and etc. It also becomes unnecessary for drivers
to call the link functions.

This commit makes eglapi.[ch] do the lookup and check. As a result, the
driver API is overhauled, and almost all sources and drivers need
update. The updates are mainly find and replace with human brains.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/egl_xlib.c
7c08614b325a409890b44c9b6375cda26d09867d 13-Aug-2009 Michel Dänzer <daenzer@vmware.com> gallium/drm: Handle circular dependencies in the auxiliary libraries with make.
rm/Makefile.template
b681f396e6bb4775e1724bf45819c394365588a2 12-Aug-2009 Brian Paul <brianp@vmware.com> gallium/xlib: add missing tex_usage parameter
lib/xlib_softpipe.c
6deaa6d4b17c98643bea0dfcb71ecec0b221efc8 12-Aug-2009 Brian Paul <brianp@vmware.com> gallium/egl: add missing tex_usage parameter
gl_xlib/sw_winsys.c
2e8be3ab7979bc03596dc5ed305fdbdcbff6c5ff 12-Aug-2009 Brian Paul <brianp@vmware.com> gallium/xlib: add missing tex_usage parameter
lib/xlib_brw_screen.c
164d8e87010f245efbc8eced9625db5c22928742 08-Aug-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Reduce max relocs
rm/intel/gem/intel_be_batchbuffer.c
7a60ed20158bff84da6eed8aca511602d95fd5b5 11-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Implement surface_buffer_create for softpipe

In order to run softpipe on st/xorg we need this function
rm/intel/gem/intel_be_device.c
738e02c3c813ca290ec5e7596c5870adde3a3808 08-Aug-2009 Jakob Bornecrantz <jakob@aurora.walkyrie.se> i915g: Don't try to free a mapped buffer at shutdown
rm/intel/gem/intel_be_batchbuffer.c
8662f2c5421a809e7ed93f793c358116f0cacf0f 06-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Compile with scons
rm/intel/dri/SConscript
b6c9401f138720adaebde90ec7b1805eae441fc7 06-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Always run in sync with the HW
rm/intel/gem/intel_be_batchbuffer.c
901b87547e50fae25722fdf5dee216d809a0d453 06-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: The i915 seems more happier with sampler domain so lets use that
rm/intel/gem/intel_be_context.c
66b00380a251b14b7622edadb5e7c9344d0f1d5b 06-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Switch to mapping the batch buffer instead of using subdata
rm/intel/gem/intel_be_batchbuffer.c
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
6f97a41964b38aa065649d4b65660042ceb32871 06-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl_softpipe: Add support for pbuffer binding.

This adds support for eglBindTexImage and eglReleaseTexImage. They rely
on the state tracker to do the real work.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/egl_xlib.c
0153614cb0ce52e5b2321de73ad6cd73e106bb34 06-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl_softpipe: Flush when switching current context.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/egl_xlib.c
0500404cdff44c6a278c2738d32b9e45cb9a5572 05-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Treat primary textures as scanout buffers
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
ec269c198a8e9d6ba7f88110d3aeb9541fa9ce6f 05-Aug-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Link with trace on EGL and Xorg
rm/intel/egl/Makefile
rm/intel/xorg/Makefile
7420e33848bfe6d53ee28cc06e53856d542ae2c7 03-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl_softpipe: Add support for pbuffer surface.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/egl_xlib.c
07ee01365a8bddf6f50821ecd585784498a25ff0 03-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Replace IsBound by a pointer to the binding.

IsBound tells if a context or surface is current. What it does not tell
is, to which thread a context is current, or to which context a surface
is current. This commit replaces IsBound by a pointer to the binding
thread or context.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/egl_xlib.c
725c1f004c9ec2f7b99146eecf0a35f1b3e54dca 27-Jul-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: If BO allocation fails, return NULL.
rm/radeon/core/radeon_buffer.c
12b183d2506e49774aad23543f5bb477904cb1c7 24-Jul-2009 Joakim Sindholt <opensource@zhasha.com> radeon-gallium: remove old getparam ioctl
rm/radeon/core/radeon_r300.c
ca83d5a8db510756eb95423a52b19ff52a2d6dc1 23-Jul-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g, radeon-gallium: Fix API, cleanup.

Something called "validate" should return FALSE on failure, not TRUE.
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
27b3c435ba0b9da6ab25cbffac9f975e0adaa66e 23-Jul-2009 Nicolai Hähnle <nhaehnle@gmail.com> radeon-gallium: Build fixes wrt changed libdrm_radeon space check API

Had to be hacked up a bit to apply to master. Sorry 'bout that. :3
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
07bb026900a6c01226217ceee1d4d1426c040d6e 16-Jul-2009 Keith Whitwell <keithw@vmware.com> gallium/xlib: use XSHM for swapbuffers

Makes some difference, but suprisingly little. Barely worth the effort.
lib/xlib_softpipe.c
3d0009ce457c78390ba1ffa0e8a991d65a99c448 20-Jul-2009 Michel Dänzer <daenzer@vmware.com> r300g: Fix SCons build.
rm/radeon/SConscript
rm/radeon/core/SConscript
rm/radeon/dri/SConscript
11522b74b318db9d099466ff226124c23595e8e2 15-Dec-2009 Ian Romanick <ian.d.romanick@intel.com> Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
src/gallium/drivers/softpipe/sp_quad_blend.c
f4de0b176d282a75ee3f47547667feea31e0d3f3 14-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmwgfx: Update vmwgfx_drm.h to the on upstream
rm/vmware/core/vmwgfx_drm.h
rm/vmware/xorg/vmw_video.c
fb06d8f0977b19068d65daca88f58da09ed13b5c 14-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmware/xorg: Use new stream ioctl
rm/vmware/core/vmwgfx_drm.h
rm/vmware/xorg/vmw_driver.h
rm/vmware/xorg/vmw_ioctl.c
rm/vmware/xorg/vmw_video.c
49e4b624e5f4a68d51eb9681dbd2218aea0645fa 12-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> vmwgfx/core: Check for 3D via the get param ioctl
rm/vmware/core/vmw_screen_ioctl.c
rm/vmware/core/vmwgfx_drm.h
15fdbc8361d0b865aea5e2f374b471081ed4214a 17-Jul-2009 Chia-I Wu <olvaffe@gmail.com> egl: Remove redundant DeletePending flag.

A context or surface that is neither linked to a display nor current to
a thread should be destroyed. Therefore, an unlinked context or surface
implies a pending delete automatically.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/egl_xlib.c
cca31340b5a9c0b941946753a31236c7201ca87c 17-Jul-2009 Chia-I Wu <olvaffe@gmail.com> egl: Use the link functions to manage resources.

This commit uses the newly introduced link functions to manage EGL
contexts and surfaces. As a result of this, the API for drivers are
changed. All drivers are updated for the change.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
gl_xlib/egl_xlib.c
b3f1d370a2eeb5ae69a9d59300820d3a2e86724c 13-Jul-2009 Nicolai Hähnle <nhaehnle@gmail.com> r300g, radeon: Whitespace fixes.

Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
645bfa32c9b330f7f4dba1126604b7ddb28f9dce 05-Jul-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Compile warning fix.

Fixes flush during validation, in case a buffer is double-validated.
rm/radeon/core/radeon_r300.c
c8e0d55ac6e7fcb778a8e884e27b84dba10fa5db 05-Jul-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Use FLINK to do proper global buffers.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
df04e72d25cfcc5aaa574949b8634bc564df0644 05-Jul-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Wait for BOs before mapping them.
rm/radeon/core/radeon_buffer.c
d1c8a0a30860ab6cd4a50582972fb185766595bd 02-Jul-2009 Jakob Bornecrantz <jakob@vmware.com> r300g: Readd trace driver support
rm/radeon/core/radeon_drm.c
59abfa8e42599a8c6c11db841ec527826cdcb717 02-Jul-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Readd trace driver support
rm/intel/gem/intel_be_api.c
338db0af61910be9c9990ef1cda2166c3de17b78 02-Jul-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Adapt to drm_api changes.

Note that trace debugging is temporarily gone. I'll rework it later.
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
55fc63cd7d2b1358dad151f228ca4eed9e1624e8 01-Jul-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: fix build...
rm/nouveau/drm/nouveau_drm_api.c
64849d1236e33b3325e00167c97119af52990ad8 01-Jul-2009 Jakob Bornecrantz <jakob@vmware.com> drm/st: Remove drm_api struct from drivers

Remove the drm_api from the functions in the softpipe and
i915simple drivers. Create wrapper functions in the
backends instead.
rm/intel/gem/intel_be_api.c
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
f7cbaae13d67c55abe81ac230de37f564365099f 30-Jun-2009 Jakob Bornecrantz <jakob@vmware.com> identity: Create a drm_api wrapper
rm/intel/dri/Makefile
rm/intel/gem/intel_be_api.c
303cbb45b558a2b94e6922252cf57d115ba60b82 30-Jun-2009 Jakob Bornecrantz <jakob@vmware.com> drm/st: Return drm_api struct from a function
rm/intel/gem/intel_be_api.c
rm/intel/gem/intel_be_api.h
rm/intel/gem/intel_be_context.c
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
7a879500ac465104e330d431c7d8a0b640153100 22-Jun-2009 Jakob Bornecrantz <jakob@vmware.com> gallium-intel: Improve Xorg Makefile a bit

The real solution is to create a Makefile.template for xorg
drivers and use that here.
rm/intel/xorg/Makefile
03760a3903028759032efe9806ea39804db7fba0 10-Jun-2009 Michal Krol <michal@vmware.com> winsys/gdi: Link to ws2_32 library.
di/SConscript
6b3ca672eb85d30d6c28e91000e2cc2231a41bef 05-Jun-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: remove unneeded code from ws, use pipe_buffer_ instead of ws->
rm/nouveau/drm/Makefile
rm/nouveau/drm/nouveau_drm_api.c
rm/nouveau/drm/nouveau_drm_api.h
rm/nouveau/drm/nouveau_winsys_pipe.c
rm/nouveau/drm/nouveau_winsys_pipe.h
80e9e1ee8172d1e5a81d702681897dddd9d815f1 05-Jun-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: move channel creation into pipe drivers
rm/nouveau/drm/Makefile
rm/nouveau/drm/nouveau_drm_api.c
rm/nouveau/drm/nouveau_winsys.c
1b207d9bb81ae3385e5658a81c71fbf2fe15c18f 05-Jun-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: call notifier/grobj etc funcs directly

libdrm_nouveau is linked with the winsys, there's no good reason to do all
this through yet another layer.
rm/nouveau/drm/nouveau_winsys.c
bc466be695913cd504cefddd857ac1cefda87a04 04-Jun-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: add pipe_buffer/fence code to pipe drivers, move nv50 over
rm/nouveau/dri/Makefile
04cef8a03799aa88ebfa1c391e29f8d2ea020d95 04-Jun-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: call nouveau_pushbuf directly rather than going through nvws
rm/nouveau/drm/nouveau_winsys.c
bc302b2a33ceffe454bcf443daa0ac1edc118e9b 22-May-2009 Dan Nicholson <dbn.lists@gmail.com> Use separate $(MINSTALL) for installing libraries

The special feature of bin/minstall to copy symlinks is only ever needed
when installing libraries which may have .so symlinks. All the headers
and directories can use a normal install program.

These two modes are separated as $(INSTALL) and $(MINSTALL) to allow the
user (or autoconf) to override installing normal files as they please.
An autoconf check for the install program has been added and will be
used in preference to minstall when available.

Fixes bug 16053.
rm/Makefile.template
rm/intel/xorg/Makefile
rm/radeon/xorg/Makefile
gl_xlib/Makefile
lib/Makefile
b70fcd620d69850c6e19213d84ae4584e77ab689 28-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium, radeon-gallium: Make add_buffer indicate when a flush is needed.

On a side note, why is RADEON_MAX_BOS 24? Should ask airlied about that.
rm/radeon/core/radeon_r300.c
65e3fb7b46cc9fc02ad12fe41e0c023c65ffe1e8 28-May-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: explicitly request mappable buffers for the moment
rm/nouveau/drm/nouveau_winsys_pipe.c
0ba7f762339cbc8be31fe98421b0c9b44c7402fa 20-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Add surface_buffer_create callback.
rm/radeon/core/radeon_buffer.c
4550423211063010a2fa482037d8233bb80e3773 20-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Don't permit reading and writing a BO in one CS.

This fixes some silent problems in current libdrm_radeon.

surface_copy still locks up hard.
rm/radeon/core/radeon_r300.c
026f4c97dc4cf29c93461857afa76b07086ede42 18-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Remove BO validation debug.

It appears that that area of code "just works" much like classic Mesa's
version, so might as well not waste scrollback on it.
rm/radeon/core/radeon_r300.c
6a40d1e9d96f8e8c57bc3bbd6f567cacd4471f59 18-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium, radeon-gallium: Nuke gb_pipes from orbit.

See the previous commit for an explanation. This is just all the support code
for GB_TILE_CONFIG.
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
0e8c6e56e467864249dfa311be1eef4dfc381f2a 16-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> intel-gallium: Fix trace_drm integration.

Compile-tested only, sorry.
rm/intel/gem/intel_be_api.c
5e39a8c4503596a019dc7c3ed4e24ee4117b1fca 16-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> Create common trace_drm code, add to radeon_winsys.
rm/radeon/core/radeon_drm.c
rm/radeon/dri/Makefile
rm/radeon/egl/Makefile
3259f52a9296c1b82cd18f405735e65d2b727144 16-May-2009 Jakob Bornecrantz <jakob@vmware.com> gallium-intel: Enable trace driver
rm/intel/dri/Makefile
rm/intel/dri/SConscript
rm/intel/gem/intel_be_api.c
97ccdee68aef925d14ee4ee17eef307f55a3c92f 15-May-2009 Jakob Bornecrantz <wallbraker@gmail.com> gallium-intel: Build with scons
rm/intel/SConscript
rm/intel/dri/SConscript
rm/intel/gem/SConscript
e7cb125b2d9e9c7b1ad89b988fa3bf53ead9eb0c 12-May-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch'

Conflicts:

Makefile
src/mesa/main/version.h
f38a02212fef426dd3f86e5d0f52126e4132a003 11-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Forgot a typedef.
rm/radeon/core/radeon_r300.h
2e22bd8460ebbb2dd85417d8e5e670fa651d0da9 11-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Support new info ioctls in addition to classic getparams.

This makes non-hybrid kernels like newttm from drm-next-radeon work
while avoiding breakage with Fedora/Ubuntu/etc.
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
c8c0953294daf9176bc89c28484410e9b7de2b93 10-May-2009 Hanno Böck <hanno@hboeck.de> gallium: replace lib with $(LIB_DIR)
rm/intel/dri/Makefile
53c2cc8fefa07723fc456d94eda292e201c41dae 09-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Clean up some of the BO counting logic.
rm/radeon/core/radeon_r300.c
1b26c2bbaefe3608b96d9351c0f2eac80274891c 09-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium, radeon: BO handling fixes, some useful asserts.
rm/radeon/core/radeon_r300.c
bed917641cfde06b9ff609760ba20b498a65cefa 09-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Shut up Valgrind.
rm/radeon/core/radeon_r300.c
cd59933d9f70c6acea63013f1b773b545026bf81 09-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium, radeon: A couple cleanups.

Trying to track down goddamn bugs. :C
rm/radeon/core/radeon_r300.c
71b1c92405de2848de4b7effdbc236da1a4815bd 08-May-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: respect GALLIUM_STATE_TRACKERS_DIRS
rm/nouveau/Makefile
9e02fa45320c724c69839dae5aaa47034eae5125 08-May-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: remove dri1 code now we're using the dri state tracker
rm/nouveau/Makefile
rm/nouveau/dri/Makefile
rm/nouveau/dri/nouveau_context.c
rm/nouveau/dri/nouveau_context.h
rm/nouveau/dri/nouveau_lock.c
rm/nouveau/dri/nouveau_screen.c
rm/nouveau/dri/nouveau_screen.h
rm/nouveau/dri/nouveau_swapbuffers.c
rm/nouveau/dri/nouveau_swapbuffers.h
rm/nouveau/dri2/Makefile
b7f2b7e93609836260ca7eef635776073b8f7069 08-May-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: use dri state tracker for dri1
rm/nouveau/Makefile
rm/nouveau/dri/nouveau_dri.h
rm/nouveau/dri2/Makefile
rm/nouveau/drm/nouveau_dri.h
rm/nouveau/drm/nouveau_drm_api.c
rm/nouveau/drm/nouveau_drm_api.h
rm/nouveau/drm/nouveau_winsys_pipe.h
293f576db7cf3f411c2eeb0a72232d25b631dcd1 24-Mar-2009 José Fonseca <jfonseca@vmware.com> egl_xlib: Pass RTLD_LAZY to dlopen.

dlopen manpage mandates that either RTLD_LAZY or RTLD_NOW flags must be
passed. Not doing so was causing a NULL return on debian unstable x86-64.
gl_xlib/egl_xlib.c
2953b180044df602fbbf5882715774a779ff2123 01-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon: Don't even bother with things too big to fit into our card.
rm/radeon/core/radeon_r300.c
5b15cc312f16c6147e1f8f3d25c6ed34076aa3a1 01-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium, radeon-winsys: Hide radeon_cs from r300 pipe.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_r300.c
c11ad489e7432f3ed2fcaf5b15b8fe3538ae6d30 01-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium, radeon-winsys: Space accounting.

It is no longer optional in current libdrm, so it was time to actually
start counting our BOs.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_r300.c
d7f4ac9f34a72efe53a1a140557f1822afbadf16 01-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium, radeon-winsys: Reorganize r300_winsys header, break ABI.

Make things more consistent, prepare for more function hooks.
rm/radeon/core/radeon_r300.c
1f43cc1d841d3be04433224842f89ff03ba28a02 28-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon: Fix cast and comment.
rm/radeon/core/radeon_r300.c
9cb3cdec76b679f15c591955084bd48e91a32142 01-May-2009 Tormod Volden <debian.tormod@gmail.com> mesa: Prepend "-Wl," to linking options

Let mklib ignore -Wl options inside the object list when building
static libraries
gl_xlib/Makefile
lib/Makefile
aef3bccbdaf20f7e0e1fdab0084f60556a12d55d 28-Apr-2009 Jakob Bornecrantz <jakob@vmware.com> gallium-intel: Create a i965_dri.so symlink

This is only used for debuging the gem backend on i965
chipset using the softpipe pipe driver.

Usage: "export INTEL_SOFTPIPE=y" and point LIBGL_DRIVERS_PATH
to "$MESA/lib/gallium" where $MESA is the mesa root.
rm/intel/dri/Makefile
c9b336bc936a733b1273170fc5e2ecc4980116b2 28-Apr-2009 Jakob Bornecrantz <jakob@vmware.com> gallium-intel: Fix build of dri driver
rm/intel/dri/Makefile
rm/intel/dri2/Makefile
81ded8092a4068ec289e6c7207078f076bfee5fd 28-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-r300: Fix a bit of breakage.

Not really sure why reordering the ioctls makes them work again.
rm/radeon/core/radeon_r300.c
rm/radeon/dri/Makefile
rm/radeon/dri/SConscript
rm/radeon/dri2/Makefile
rm/radeon/dri2/SConscript
1ae877d95adbc19cb0a8d4fe07f46ac4d46c8147 28-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon: Use PCI_MATCH_ANY for xorg driver.

Might as well.
rm/radeon/xorg/radeon_xorg.c
05af5a7f593ac6451cff9e6923d4a969d5358bcb 28-Apr-2009 Thomas Hellstrom <thellstrom-at-vmware-dot-com> gallium: Rename the dri state tracker lib to libdridrm.a
rm/intel/dri2/Makefile
rm/nouveau/dri2/Makefile
rm/radeon/dri2/Makefile
2e5acd24b0421f3824fbe441f4a7062c1f081109 28-Apr-2009 Thomas Hellstrom <thellstrom-at-vmware-dot-com> gallium: Move the dri2 state tracker since we're about to extend it to dri1.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
rm/intel/dri2/Makefile
rm/nouveau/dri2/Makefile
rm/radeon/dri2/Makefile
638261b3530106b70819c2fe0c3cd613c0d85777 28-Apr-2009 Thomas Hellstrom <thellstrom-at-vmware-dot-com> gallium: Update the drm_api.

Make it possible to pass state-tracker-specific data to the
init_screen function, and even open the door for device-specific
state-tracker screen initialization.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
rm/intel/gem/intel_be_api.h
rm/intel/gem/intel_be_device.c
rm/nouveau/dri/nouveau_screen.c
rm/nouveau/drm/nouveau_drm_api.c
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
a098e6090319e618f71e2ff5ee9b6a993571fddf 25-Apr-2009 Jakob Bornecrantz <wallbraker@gmail.com> gallium-intel: Fix warning
rm/intel/gem/intel_be_device.c
5f701f22f00ea17e0aba91c9995c9f559963d591 25-Apr-2009 Jakob Bornecrantz <wallbraker@gmail.com> gallium-intel: Cache software switch
rm/intel/gem/intel_be_context.c
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
f44f1155a9d1539bc5173928af20f5a2541ec6be 25-Apr-2009 Jakob Bornecrantz <wallbraker@gmail.com> gallium-intel: Link dri2 driver with softpipe
rm/intel/dri2/Makefile
e0da812c5bdb7ffdd3450f614a4b73e44cd7feca 23-Apr-2009 Michel Dänzer <daenzer@vmware.com> gallium: Make the intel xorg winsys start up with any Intel chipset.

For unsupported devices the screen/context creation should fail cleanly later
on.
rm/intel/xorg/intel_xorg.c
13cb8264d81f09ce046c73fd751596572d13512e 23-Apr-2009 Michel Dänzer <daenzer@vmware.com> gallium/intel/gem: Use softpipe rather than i915simple if INTEL_SOFTPIPE is set.
rm/intel/gem/intel_be_context.c
rm/intel/gem/intel_be_device.c
rm/intel/xorg/Makefile
dc1153ce83041a397b1d1815db4133ce8c53eaa1 19-Apr-2009 José Fonseca <jfonseca@vmware.com> softpipe: Simplify softpipe_create's prototype.
rm/radeon/core/radeon_winsys_softpipe.c
gl_xlib/egl_xlib.c
3dvl/xsp_winsys.c
di/gdi_softpipe_winsys.c
lib/xlib_softpipe.c
eb63e8cc75f7ac0f4b8b89ceecc030b61789ea8c 18-Apr-2009 José Fonseca <jfonseca@vmware.com> softpipe: Remove softpipe_winsys.

Not used by softpipe anyway.
rm/radeon/core/radeon_winsys_softpipe.c
867afa4c093cb05bedf11a1c7a74feb202fb858b 17-Apr-2009 Jakob Bornecrantz <jakob@vmware.com> xlib/trace: Fixup xlib trace
lib/xlib_trace.c
ee2a5f307a026c1c258d3f7616d46cc7230d77ce 17-Apr-2009 Zack Rusin <zackr@vmware.com> egl: don't crash with one more khronos api
gl_xlib/egl_xlib.c
fa2b9e43067298bc67f7787b6ab886eb7992abaf 09-Apr-2009 José Fonseca <jfonseca@vmware.com> gdi: Use stw_* names.
di/gdi_softpipe_winsys.c
923b4413a63530be37cd44eed29910db21b39ac6 08-Apr-2009 José Fonseca <jfonseca@vmware.com> wgl: Integrate the trace driver on debug builds.
di/SConscript
2d56d0839e6db0861131893d67fe23734800085a 06-Apr-2009 José Fonseca <jfonseca@vmware.com> r300-gallium: Skeleton for integrating into the python statetracker.
rm/radeon/python/README
rm/radeon/python/SConscript
rm/radeon/python/radeon_hardpipe_winsys.c
rm/radeon/python/xf86dri.c
rm/radeon/python/xf86dri.h
rm/radeon/python/xf86dristr.h
024817649f61d303f799c7b0449e71b84a52b6de 04-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon: A bit of indent and line break cleanup.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_winsys_softpipe.c
21f1cdbe075ee6c24ebd6db2902f19a9d33beb22 04-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon: If the CS emit fails, dump it to stderr.
rm/radeon/core/radeon_r300.c
b7ffe1e8763efdf042e2d5eb33ce4f3d5d365121 04-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> Add scons build support for radeon/r300.
rm/SConscript
rm/radeon/SConscript
rm/radeon/core/SConscript
rm/radeon/dri2/SConscript
d6fd672bf9a9b7b24147341338055da3b9f81f89 04-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon: Fix compile warnings, compile errors.
rm/radeon/core/radeon_r300.c
26e27ba30884be927cf1bc21d39f32d6096a6678 25-Mar-2009 José Fonseca <jfonseca@vmware.com> scons: Support building with the Windows SDK.

x86_64 is also supported.
di/SConscript
578af516104bf0078cf93b1b9dd783e19e113177 24-Mar-2009 Younes Manton <younes.m@gmail.com> nouveau: Frontbuffer needs to be marked as linear.
rm/nouveau/dri/nouveau_screen.c
36e985e96e6da817042ba1b2dfadf96f85e32afb 20-Mar-2009 Michal Krol <michal@vmware.com> winsys/gdi: Init state tracker's per-thread data.
di/gdi_softpipe_winsys.c
e00ae524e236afba1305150cacd634eaa1f5460b 17-Mar-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: rewrite winsys in terms of drm_api, support dri2 state tracker

drm_api is a set of hooks used by the dri2 state tracker, this wraps our
dri1 code around the same set of hooks.

Currently the dri2 build will produce nouveau_dri2.so which you'll need
to install as nouveau_dri.so if you wish to try it. The dri2 state
tracker doesn't make it easy for a driver to support both paths in the
same binary.
rm/nouveau/Makefile
rm/nouveau/common/Makefile
rm/nouveau/common/nouveau_context.c
rm/nouveau/common/nouveau_context.h
rm/nouveau/common/nouveau_dri.h
rm/nouveau/common/nouveau_local.h
rm/nouveau/common/nouveau_lock.c
rm/nouveau/common/nouveau_screen.c
rm/nouveau/common/nouveau_screen.h
rm/nouveau/common/nouveau_winsys.c
rm/nouveau/common/nouveau_winsys_pipe.c
rm/nouveau/common/nouveau_winsys_pipe.h
rm/nouveau/common/nouveau_winsys_softpipe.c
rm/nouveau/dri/Makefile
rm/nouveau/dri/nouveau_context.c
rm/nouveau/dri/nouveau_context.h
rm/nouveau/dri/nouveau_context_dri.c
rm/nouveau/dri/nouveau_context_dri.h
rm/nouveau/dri/nouveau_dri.h
rm/nouveau/dri/nouveau_lock.c
rm/nouveau/dri/nouveau_screen.c
rm/nouveau/dri/nouveau_screen.h
rm/nouveau/dri/nouveau_screen_dri.c
rm/nouveau/dri/nouveau_screen_dri.h
rm/nouveau/dri/nouveau_swapbuffers.c
rm/nouveau/dri/nouveau_swapbuffers.h
rm/nouveau/dri2/Makefile
rm/nouveau/drm/Makefile
rm/nouveau/drm/nouveau_drm_api.c
rm/nouveau/drm/nouveau_drm_api.h
rm/nouveau/drm/nouveau_winsys.c
rm/nouveau/drm/nouveau_winsys_pipe.c
rm/nouveau/drm/nouveau_winsys_pipe.h
4f5678c1eb635cb961502cc8adf1eadb9cc46447 16-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Add my R580 to the xorg PCI ID list.

At some point, going to have to grab the big list from xf86-video-ati.
rm/radeon/xorg/radeon_xorg.c
f500f3a72c6be61ff9b8e1166f734e408d00aded 13-Mar-2009 Jakob Bornecrantz <jakob@vmware.com> gallium: Remove do_flip argument from surface_copy

I should have gotten most uses and implementation
correctly fixed, but things might break.

Feel free to blame me.
rm/nouveau/dri/nouveau_swapbuffers.c
3dvl/nouveau/nouveau_swapbuffers.c
42fc3d3fa9d7c4a9fe7e15b9ddecfd816a12f1bc 10-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Unbreak non-RADEON_SOFTPIPE.

Hehe, sleep may be necessary now.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
fdfde00cd8e1465a214062e38b715787919de6e5 10-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Unbreak RADEON_SOFTPIPE.

And there was much rejoicing.
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_r300.c
67f2c6054c7303547c790f283ab3d124ac60a276 07-Mar-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: use bo_handle_ref instead of bo_fake to get front-buffer bo

This'll work on non-GEM also as the DDX will just pass an offset, and
libdrm_nouveau knows to treat "handle" as a VRAM offset. When running
on GEM the DDX (it doesn't yet, but will) passes a buffer handle
instead.
rm/nouveau/common/nouveau_context.c
51fa4d47eac58c98c5b265e15a7dbf961ecbda4e 07-Mar-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: fix more breakage from pipe_reference..
rm/nouveau/common/nouveau_context.c
19229fcf3a6eaf5e64b10b43aa5e8619444791b4 06-Mar-2009 Victor Stinner <victor.stinner@haypocalc.com> Fix nouveau_pipe_create() / nouveau_context_init(): raise an error if the screen/pipe creation failed
rm/nouveau/common/nouveau_context.c
rm/nouveau/common/nouveau_winsys.c
8acca48cd575335b33cdc8fed6906f4d656233cc 06-Mar-2009 Joel Bosveld <Joel.Bosveld@gmail.com> st/xorg: Install to XORG_DRIVER_INSTALL_DIR
rm/intel/xorg/Makefile
rm/radeon/xorg/Makefile
dc527de95ee0aace0b98ae923a034c9c1a715f77 05-Mar-2009 Joakim Sindholt <opensource@zhasha.com> radeon-gallium: fix dri2 build
rm/radeon/dri2/Makefile
86a06f06740eca39badf2292b1f9406ca31be0fe 05-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Add Xorg state tracker Radeon winsys stub.
rm/radeon/xorg/radeon_xorg.c
fc1859c26467fddb2fe8f51b89fc0e33e3648e63 05-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Only build drivers for state trackers that are enabled.
rm/radeon/Makefile
1281bac3ba8e4870e9d9e78d405a347bc02c4c16 05-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Enable EGL and Xorg state trackers.

Compile-tested only, but I have high hopes.
rm/radeon/Makefile
rm/radeon/egl/Makefile
rm/radeon/xorg/Makefile
07ffb00d30c750f85047485dbf091c3196a2abbf 05-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: DRI2 state tracker, part 3.

Properly setup the build process for adding in xorg and egl trackers,
and finally put radeon_context and radeon_screen to bed.
rm/radeon/Makefile
rm/radeon/core/Makefile
rm/radeon/core/radeon_buffer.c
rm/radeon/core/radeon_buffer.h
rm/radeon/core/radeon_drm.c
rm/radeon/core/radeon_drm.h
rm/radeon/core/radeon_r300.c
rm/radeon/core/radeon_r300.h
rm/radeon/core/radeon_winsys_softpipe.c
rm/radeon/core/radeon_winsys_softpipe.h
rm/radeon/dri2/Makefile
rm/radeon/radeon_buffer.c
rm/radeon/radeon_buffer.h
rm/radeon/radeon_context.c
rm/radeon/radeon_context.h
rm/radeon/radeon_drm.c
rm/radeon/radeon_drm.h
rm/radeon/radeon_r300.c
rm/radeon/radeon_r300.h
rm/radeon/radeon_screen.c
rm/radeon/radeon_screen.h
rm/radeon/radeon_winsys_softpipe.c
rm/radeon/radeon_winsys_softpipe.h
5aa356d3e454c78332cd9faa01cd6dc24579e46c 04-Mar-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Fixup from refcount changes
rm/intel/gem/intel_be_device.c
ca06c0c16d09d58f96736aa095e1a592862a9427 04-Mar-2009 Brian Paul <brianp@vmware.com> cell: update cell driver after gallium reference count changes
lib/xlib_cell.c
45bde75bd67e7e920f0113842d1fa58613ccc3ec 04-Mar-2009 Michel Dänzer <daenzer@vmware.com> gallium: Remove some superfluous instances of #include "p_inlines.h".
lib/xlib_brw_screen.c
5e27cd46c04a9e7b5904cc014bffd0f4daae31fe 04-Mar-2009 Michel Dänzer <daenzer@vmware.com> gallium: Unify reference counting.

The core reference counting code is centralized in p_refcnt.h.

This has some consequences related to struct pipe_buffer:

* The screen member of struct pipe_buffer must be initialized, or
pipe_buffer_reference() will crash trying to destroy a buffer with reference
count 0. u_simple_screen takes care of this, but I may have missed some of
the drivers not using it.
* Except for rare exceptions deep in winsys code, buffers must always be
allocated via pipe_buffer_create() or via screen->*buffer_create() rather
than via winsys->*buffer_create().
rm/intel/gem/intel_be_batchbuffer.c
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_fence.h
rm/nouveau/common/nouveau_context.c
rm/nouveau/common/nouveau_context.h
rm/nouveau/common/nouveau_winsys_pipe.c
rm/radeon/radeon_buffer.c
rm/radeon/radeon_drm.c
gl_xlib/sw_winsys.c
3dvl/xsp_winsys.c
di/gdi_softpipe_winsys.c
lib/xlib_brw_screen.c
lib/xlib_cell.c
lib/xlib_softpipe.c
60041203d5847de8ab71842a6ce5d33d96cc4930 04-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium, radeon-gallium: Continue migration to DRI2 state_tracker, part 2.

Almost there. glxinfo still works, and AFAICT so does trivial/clear.
rm/radeon/radeon_drm.c
9e67b0a1745e50fe34efedb0a3191b4a27e10724 04-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium, radeon-gallium: Begin migration to DRI2 state tracker, part 1.

s/migration/migrane/ , actually. Anyway, this has working glxinfo...
rm/radeon/Makefile
rm/radeon/radeon_buffer.c
rm/radeon/radeon_buffer.h
rm/radeon/radeon_drm.c
rm/radeon/radeon_drm.h
rm/radeon/radeon_r300.c
rm/radeon/radeon_r300.h
rm/radeon/radeon_winsys_softpipe.c
rm/radeon/radeon_winsys_softpipe.h
16526b70998b8c6e0ba298db86f1f738c1a3df3f 03-Mar-2009 Jakob Bornecrantz <wallbraker@gmail.com> st/drm: s/hocks/hooks/
rm/intel/gem/intel_be_api.c
0f3d226143d21b60cba63b8234340ae31d6d7281 03-Mar-2009 Keith Whitwell <keithw@vmware.com> winsys: return null for DONTBLOCK flag on existing winsys

Add code so that existing driver behaviour doesn't change.
rm/intel/gem/intel_be_device.c
rm/nouveau/common/nouveau_winsys_pipe.c
rm/radeon/radeon_buffer.c
72cf6e8e92e49753472e760b1cf4575327b48f43 03-Mar-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Add Xorg driver
rm/intel/xorg/Makefile
rm/intel/xorg/intel_xorg.c
4a1b8cbab8dc779d98830ba86e2d3d25f8545987 03-Mar-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Add dri2 driver for gallium
rm/intel/dri2/Makefile
cc9fbb16a6787e03186926b7488bfcaaf41635d9 03-Mar-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Increase max relocs per batchbuffer
rm/intel/gem/intel_be_batchbuffer.c
c9fe0f7ab5071a5c6ba2ef13fe96e726ec2b512b 25-Feb-2009 Younes Manton <younes.m@gmail.com> g3dvl: Grab surface pointer when flushing front buffer in SP winsys.
3dvl/xsp_winsys.c
991c945e726311c9db6bea72a63e2a5cfb7ab37b 27-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon: Add DRM stubs.

Nothing really of note, unfortunately.
rm/radeon/Makefile
rm/radeon/radeon_drm.c
rm/radeon/radeon_drm.h
e1d276f9351a6524f4a48d9606ae531cc04ccad4 27-Feb-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Use flink for global buffer ids

Also fix minor drm api change
rm/intel/gem/intel_be_api.c
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
5726a5afa56e18b1662a8b03cf36c77e2d8b3114 20-Feb-2009 Younes Manton <younes.m@gmail.com> g3dvl: Update winsys stuff.
3dvl/xsp_winsys.c
d7c6ffbc5f658979b6cddf0b2b6b1165c8d45511 25-Feb-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Adopt to the new drm_api.h
rm/intel/gem/intel_be_api.c
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
c92dc32dc26263c28a3446bc4829cfd972c8252b 24-Feb-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915: Clean up i915_winsys.h a bit
rm/intel/gem/intel_be_device.c
66ddf1a00f7f730831c32b27e46515a0369487ff 24-Feb-2009 Brian Paul <brianp@vmware.com> cell: added null ptr check in xm_flush_frontbuffer()
lib/xlib_cell.c
8344b85333df8c8eb1f2ca243129d29dcd0ed0dd 23-Feb-2009 Joel Bosveld <joel.bosveld@gmail.com> gallium: Install winsys/drm to DESTDIR rather than /
rm/Makefile.template
fffadc219f3900a5b0405a9fddbc289873ea0842 20-Feb-2009 Jakob Bornecrantz <jakob@vmware.com> gallium: Improve recursive makefiles
akefile
rm/Makefile
rm/intel/Makefile
rm/nouveau/Makefile
3eebd24cb6202171ee00506bb3fc71ac7dcc4cb8 20-Feb-2009 Jakob Bornecrantz <jakob@vmware.com> gallium: Improve winsys dri template Makefile

LIBNAME_EGL had to be removed since if you didn't
set it (nobody set it anyways) make would get it
confused it with the $(TOP)/lib/gallium target.
rm/Makefile.template
5089e5c0525363fa709dacbbd8874b69ca858c4d 20-Feb-2009 Jakob Bornecrantz <jakob@vmware.com> intel: Use new makefile template for drm gem
rm/intel/gem/Makefile
rm/intel/gem/Makefile.template
2734b8079dd0cc3d0a275f2a415dd5c828fd4697 20-Feb-2009 Jakob Bornecrantz <jakob@vmware.com> nouveau: Use new makefile template for drm common
rm/nouveau/common/Makefile
rm/nouveau/common/Makefile.template
8cf997b7c8a2c8eb347ce06d0e8bfaf2e9d4bd9d 20-Feb-2009 Ben Skeggs <bskeggs@redhat.com> nouveau: reenable all the non-nv50 pipe drivers

They still won't build yet, but anyway..
rm/nouveau/common/nouveau_winsys.c
rm/nouveau/dri/Makefile
63a3a3762c8e1a67666d36b35fdb0ada8e4b7d08 20-Feb-2009 Ben Skeggs <bskeggs@redhat.com> nv50: rework for texture_transfer changes
rm/nouveau/common/nouveau_winsys.c
rm/nouveau/common/nouveau_winsys_pipe.c
rm/nouveau/dri/Makefile
0794f1d6df7c41dc362ec0a1296cef084bf10301 19-Feb-2009 Michel Dänzer <daenzer@vmware.com> gallium/winsys/xlib: Fix build with USE_XSHM undefined.
lib/xlib_softpipe.c
65fde5be8bd5e485dd69afc244568f164cf24fa4 19-Feb-2009 José Fonseca <jfonseca@vmware.com> wgl: Use a separate .DEF for MinGW

gnu linker fails to resolve the @n symbols, unless:
- they are listed verbatim in the .def
- they are already linked.

And mingw's .def parser is slightly incompatible with MSVC in respect with
underscores. Will try to work with upstream to fix this, but for now there
is no option other to use seperate .def for mingw.
di/SConscript
d98bc1e32470c7b78e8246f1cbcfb96d0fa6338c 18-Feb-2009 José Fonseca <jfonseca@vmware.com> gdi: Update for texture/surface interface changes.
di/gdi_softpipe_winsys.c
897331ed1545b840aba429d749d283342417323f 18-Feb-2009 Michel Dänzer <daenzer@vmware.com> gallium/winsys/egl_xlib: Fix build after introduction of struct pipe_transfer.
gl_xlib/egl_xlib.c
3bd7c5ceffc88a052c5e8e114df2f2c7549ddb4a 18-Feb-2009 Michel Dänzer <daenzer@vmware.com> Merge branch 'gallium-texture-transfer'

Conflicts:
src/gallium/drivers/softpipe/sp_tile_cache.c
59d54334c96f44ed1d8bf660dc96221362a77d04 16-Feb-2009 Keith Whitwell <keithw@vmware.com> Merge branch 'master' into gallium-texture-transfer

Conflicts:

src/mesa/state_tracker/st_cb_accum.c
src/mesa/state_tracker/st_cb_drawpixels.c
76142d2b8bdb0d5b32ad4e71264f7e0341d312b4 14-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> radeon-gallium: Clean out extensions explicitly enabled by Mesa.

This cleans up some of the cruft from the old DRI setup, and
it turns out that only the GLSL extensions are still off if we
let st_extensions.c handle the setup instead.
rm/radeon/radeon_context.c
ea4bf267e4b023b08043f91ac44592fed1736e7f 18-Feb-2009 José Fonseca <jfonseca@vmware.com> util: Move p_debug.h into util module.

The debug functions depend on several util function for os abstractions, and
these depend on debug functions, so a seperate module is not possible.
lib/xlib_brw_aub.c
aa66f57a5966703d11e20f3c596d8d588a1c7176 12-Feb-2009 Michel Dänzer <daenzer@vmware.com> gallium/winsys/xlib: Use XShmPutImage when possible.
lib/xlib_softpipe.c
9ab677a84b564a00e2e1e6874dbc2c0295b3402d 12-Feb-2009 Michel Dänzer <daenzer@vmware.com> gallium/winsys/xlib: Fix stride calculations.
lib/xlib_brw_aub.c
lib/xlib_softpipe.c
e46dca58b21ad87956b97a08d27bc212e714aa43 13-Feb-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Only build winsys with built state trackers
rm/intel/Makefile
67fc3ace65419b0865253e3ef54b20abbca1dfb5 02-Feb-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Make gem export the drm_api_hocks
rm/intel/egl/Makefile
rm/intel/egl/intel_api.c
rm/intel/egl/intel_api.h
rm/intel/egl/intel_context.c
rm/intel/egl/intel_device.c
rm/intel/gem/Makefile
rm/intel/gem/intel_be_api.c
rm/intel/gem/intel_be_api.h
rm/intel/gem/intel_be_context.c
rm/intel/gem/intel_be_context.h
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
5ac8b4e4d97886a6543718b48a64f6962009b6e0 02-Feb-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Remove the old depricated dri1 winsys
rm/intel/dri/Makefile
rm/intel/dri/SConscript
rm/intel/dri/intel_batchbuffer.h
rm/intel/dri/intel_context.c
rm/intel/dri/intel_context.h
rm/intel/dri/intel_lock.c
rm/intel/dri/intel_reg.h
rm/intel/dri/intel_screen.c
rm/intel/dri/intel_screen.h
rm/intel/dri/intel_swapbuffers.c
rm/intel/dri/intel_swapbuffers.h
rm/intel/dri/intel_winsys_softpipe.c
rm/intel/dri/intel_winsys_softpipe.h
rm/intel/dri/server/i830_common.h
rm/intel/dri/server/i830_dri.h
56d88aece94d1f9972b6887e98a638a314af8732 02-Feb-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Remove the ttm backend

RIP ttm, its been fun knowing you.
rm/intel/common/Makefile
rm/intel/common/Makefile.template
rm/intel/common/intel_be_batchbuffer.c
rm/intel/common/intel_be_batchbuffer.h
rm/intel/common/intel_be_context.c
rm/intel/common/intel_be_context.h
rm/intel/common/intel_be_device.c
rm/intel/common/intel_be_device.h
rm/intel/common/ws_dri_bufmgr.c
rm/intel/common/ws_dri_bufmgr.h
rm/intel/common/ws_dri_bufpool.h
rm/intel/common/ws_dri_drmpool.c
rm/intel/common/ws_dri_fencemgr.c
rm/intel/common/ws_dri_fencemgr.h
rm/intel/common/ws_dri_mallocpool.c
rm/intel/common/ws_dri_slabpool.c
767b1acbb757186bde30973394f256ab7498a075 10-Feb-2009 Jakob Bornecrantz <jakob@vmware.com> mesa: Build both software rasterizers for debug

But put the gallium one in lib/gallium
lib/Makefile
1789dc8015d75b996a546a94f88d8cdaa3c7e8c4 10-Feb-2009 Jakob Bornecrantz <jakob@vmware.com> gallium: Don't rebuild common drm code
rm/intel/gem/Makefile.template
rm/nouveau/common/Makefile.template
94665aa648f8b9015f9eabdddad092b006faf70a 10-Feb-2009 Jakob Bornecrantz <jakob@vmware.com> gallium: Install DRI drivers into lib/gallium
rm/Makefile
rm/Makefile.template
43e6272ae5c03f663cfdd98f35b0b0028bc5d252 10-Feb-2009 Jakob Bornecrantz <jakob@vmware.com> gallium: Introduce new subdirs build variables

(based on gallium-xorg-driver/commit 270ce504052d415870a25ab59818b2309eb8ac13)
rm/Makefile
2438161823630a6e647c105ad92cf2b0cd740d00 09-Feb-2009 Brian Paul <brianp@vmware.com> mesa: build/use libmesagallium.a for gallium builds

This contains the core mesa code but excludes things not needed for gallium
such as tnl/, swrast/, swrast_setup/, etc.
rm/Makefile.template
gl_xlib/Makefile
lib/Makefile
b59117a697ac168da9dacb922d491449fe591264 07-Feb-2009 Brian Paul <brianp@vmware.com> cell: compile fix: no-op xlib_create_brw_screen() for Cell build
lib/xlib_brw_screen.c
2d6355495ce6f8668df3d9eb8825815bfead5401 06-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> Merge branch 'gallium-0.2' of git://anongit.freedesktop.org/mesa/mesa into gallium-0.2
4683fc94f5e03f596fc8e5c12e9dd54a83deaeb9 06-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> Merge branch 'gallium-0.2-radeon' into gallium-0.2
80026428e3aa8f71ccd42d8d3b5e0a15c150dda2 06-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> Rename winsys amd to radeon.
rm/amd/Makefile
rm/amd/SConscript
rm/amd/amd_buffer.c
rm/amd/amd_buffer.h
rm/amd/amd_context.c
rm/amd/amd_context.h
rm/amd/amd_r300.c
rm/amd/amd_r300.h
rm/amd/amd_screen.c
rm/amd/amd_screen.h
rm/amd/amd_winsys_softpipe.c
rm/amd/amd_winsys_softpipe.h
rm/radeon/Makefile
rm/radeon/SConscript
rm/radeon/radeon_buffer.c
rm/radeon/radeon_buffer.h
rm/radeon/radeon_context.c
rm/radeon/radeon_context.h
rm/radeon/radeon_r300.c
rm/radeon/radeon_r300.h
rm/radeon/radeon_screen.c
rm/radeon/radeon_screen.h
rm/radeon/radeon_winsys_softpipe.c
rm/radeon/radeon_winsys_softpipe.h
776d86606cd8b250802730410d5e55a41944cf0a 06-Feb-2009 Younes Manton <younes.m@gmail.com> g3dvl: Catch up to gallium changes, fix build.
3dvl/nouveau/Makefile
3dvl/nouveau/nouveau_screen_vl.c
3dvl/nouveau/nouveau_swapbuffers.c
4617981ec72f7985941bee4b03c534d97ff96bc6 05-Feb-2009 Michel Dänzer <daenzer@vmware.com> gallium: No longer allow CPU mapping surfaces directly.

Instead, a new pipe_transfer object has to be created and mapped for
transferring data between the CPU and a texture. This gives the driver more
flexibility for textures in address spaces that aren't CPU accessible.

This is a first pass; softpipe/xlib builds and runs glxgears, but it only shows
a black window. Looks like something's off related to the Z buffer, so the
depth test always fails.
lib/xlib_brw_aub.c
lib/xlib_softpipe.c
ff8dff017e537c6db4c86aad43e92b768cb187e4 05-Feb-2009 Ben Skeggs <skeggsb@gmail.com> nv04-nv40: move 2d blit/fill code into pipe driver
rm/nouveau/common/Makefile
rm/nouveau/common/nouveau_context.c
rm/nouveau/common/nouveau_context.h
rm/nouveau/common/nouveau_winsys.c
rm/nouveau/common/nouveau_winsys_pipe.c
rm/nouveau/common/nouveau_winsys_pipe.h
rm/nouveau/common/nv04_surface.c
rm/nouveau/dri/nouveau_swapbuffers.c
13393736dbab1087589f8dd788bc412d16b431d1 05-Feb-2009 Ben Skeggs <skeggsb@gmail.com> nv50: move 2d blit/fill code into pipe driver
rm/nouveau/common/Makefile
rm/nouveau/common/nouveau_context.c
rm/nouveau/common/nouveau_context.h
rm/nouveau/common/nv50_surface.c
rm/nouveau/dri/nouveau_swapbuffers.c
ae8a7544d1ab96240f646ea91fb149227067a2db 05-Feb-2009 Ben Skeggs <skeggsb@gmail.com> nouveau: support getting "native" bo from winsys
rm/nouveau/common/nouveau_winsys.c
79bf0bdc7ffe97ec128e5dd143c4ed54648aae42 04-Feb-2009 Ben Skeggs <skeggsb@gmail.com> nouveau: get things building/running again after pipe_surface.buffer removal

Don't look at nouveau_winsys_pipe.h... I promise it's temporary!
rm/nouveau/common/nouveau_context.c
rm/nouveau/common/nouveau_context.h
rm/nouveau/common/nouveau_winsys.c
rm/nouveau/common/nouveau_winsys_pipe.c
rm/nouveau/common/nouveau_winsys_pipe.h
rm/nouveau/common/nv04_surface.c
rm/nouveau/common/nv50_surface.c
c10fb9579027ae34eda0c52acb353e8da5832495 04-Feb-2009 Ben Skeggs <skeggsb@gmail.com> nouveau: link against libdrm_nouveau (installed with libdrm)
rm/nouveau/common/Makefile
rm/nouveau/common/nouveau_bo.c
rm/nouveau/common/nouveau_channel.c
rm/nouveau/common/nouveau_context.c
rm/nouveau/common/nouveau_context.h
rm/nouveau/common/nouveau_device.c
rm/nouveau/common/nouveau_dma.c
rm/nouveau/common/nouveau_dma.h
rm/nouveau/common/nouveau_drmif.h
rm/nouveau/common/nouveau_fence.c
rm/nouveau/common/nouveau_grobj.c
rm/nouveau/common/nouveau_local.h
rm/nouveau/common/nouveau_notifier.c
rm/nouveau/common/nouveau_pushbuf.c
rm/nouveau/common/nouveau_resource.c
rm/nouveau/common/nouveau_winsys.c
rm/nouveau/common/nouveau_winsys_pipe.c
rm/nouveau/common/nv04_surface.c
rm/nouveau/common/nv50_surface.c
rm/nouveau/dri/Makefile
rm/nouveau/dri/nouveau_context_dri.h
rm/nouveau/dri/nouveau_screen_dri.c
e0c3b4970da052308bf7b4e5cbe9186a4b8321db 03-Feb-2009 Zack Rusin <zackr@vmware.com> gallium: adjust gdi for the latest changes
di/gdi_softpipe_winsys.c
5069bfed29bcee2c89c36c74c6d65d388eb7792e 03-Feb-2009 Zack Rusin <zackr@vmware.com> gallium: remove pipe_buffer from surfaces

this change disassociates, at least from the driver perspective,
the surface from buffer. surfaces are technically now views on the
textures so make it so by hiding the buffer in the internals of
textures.
gl_xlib/egl_xlib.c
lib/Makefile
lib/xlib_brw_screen.c
lib/xlib_cell.c
lib/xlib_softpipe.c
a2416e3d7ecb2fcf18d93a08bc3cc3639ed97b39 02-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300, amd: Oops, a couple more API changes.

Somehow I forgot to commit these.
rm/amd/amd_buffer.c
df73c964d85d2f44d8c62558b5752b2f4443763f 02-Feb-2009 José Fonseca <jfonseca@vmware.com> xlib: Get conditional compilation of drivers working again.
lib/Makefile
lib/SConscript
lib/xlib.c
f0ad6b6144bb416bc22ddccca0be4e614131a2b3 02-Feb-2009 José Fonseca <jfonseca@vmware.com> gdi: Update for wgl st reorg.
di/SConscript
di/gdi_softpipe_winsys.c
859db22527d796d186d3cdf83d503669472863cc 02-Feb-2009 Michel Dänzer <daenzer@vmware.com> scons: Fixups for the introduction of the xlib state_tracker.

Not quite working yet; glxinfo complains about glXChooseVisual being undefined.
lib/SConscript
ffc5e9a422da5b3eaadc57995afcbc483739f426 02-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> amd: Fix build errors from rebase.
rm/amd/amd_buffer.c
rm/amd/amd_buffer.h
rm/amd/amd_context.c
rm/amd/amd_screen.c
rm/amd/amd_screen.h
7ccc9a92ce83d5e38549a6f6c5f22b358a90e578 30-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> amd: Add AMD_SOFTPIPE environment option.

If set, AMD_SOFTPIPE will make amd switch to softpipe.
rm/amd/amd_context.c
412cf4d38be628200982208b7f93bb17530bb6db 26-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> BROKEN

This commit is only to protect against data loss, so please skip it when
bisecting. Thanks.
rm/amd/amd_context.c
02c6e523305de017b49d6851034fcea6c568e94c 24-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> amd: Fix uninitialized pipe_screen.
rm/amd/amd_context.c
5f95f0538e5a354431cc3bbed662c4983e6d0614 24-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> amd: Fix missing break statement.
rm/amd/amd_screen.c
ecb7f29f74c8f7456302267fe31b1de4bcc103c5 22-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> amd/r300: Wire up GETPARAM ioctls.

Whoo, stuff is starting to look cleaner and cleaner.
rm/amd/amd_context.c
rm/amd/amd_r300.c
rm/amd/amd_r300.h
502ddfcd57ff7ed1f2dac9171f51c45893ea3d92 20-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add path for pci_id in winsys.

Needs to be hooked up to the getparam from the kernel.
rm/amd/amd_context.c
rm/amd/amd_r300.c
rm/amd/amd_r300.h
432ab001d042b816b5892398064e5735d0293955 14-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300, amd: Add the ability to flush the CS.

This is probably important, yeah?
rm/amd/amd_r300.c
fbeeb6675733f5b2da36d40b0142dadf8cc953b4 12-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300, amd: Make everything build. (Not necessarily work, mind you.)

Lots of structural work, especially in getting the two parts to talk nicely.

Todo:
- Get damn blitter working.
- Add CS flush.
- Reverse order of above two items.
rm/amd/Makefile
rm/amd/amd_context.c
rm/amd/amd_context.h
rm/amd/amd_r300.c
rm/amd/amd_r300.h
0c59004fe3cc9f691c73da2b4a9321c7682410f4 10-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> And unbreak traditional build.

s/drm-radeon/drm_radeon/
rm/amd/Makefile
rm/amd/amd_context.c
4aaaecbfa6fa810899ef04de44f9f79ec4d8134f 10-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> A bit of r300 cleanup.
rm/amd/amd_context.c
e9b08e7373c00306bce398ea8d34f42e54f98c6d 10-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> Make r300 and amd build in scons.
rm/amd/SConscript
adb74f5c5262d22b3c60a555431c29d36e3170f7 10-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Hook up to winsys, add missing header.

In theory it works, which of course means that it doesn't.
rm/amd/amd_context.c
b3cf2af13a5d053ce3ff0c4f3715123d34bfcc32 18-Dec-2008 Jerome Glisse <glisse@freedesktop.org> amd: initial winsys
rm/amd/Makefile
rm/amd/amd_buffer.c
rm/amd/amd_buffer.h
rm/amd/amd_context.c
rm/amd/amd_context.h
rm/amd/amd_screen.c
rm/amd/amd_screen.h
rm/amd/amd_winsys_softpipe.c
rm/amd/amd_winsys_softpipe.h
59edbc70cd1042a884e7d153ba547c2f7f87318d 02-Feb-2009 Stephane Marchesin <marchesin@icps.u-strasbg.fr> Merge branch 'gallium-0.2' of git+ssh://marcheu@git.freedesktop.org/git/mesa/mesa into gallium-0.2
4035e0f8989754ee7d31212e69d6461f1bbff008 02-Feb-2009 Stephane Marchesin <marchesin@icps.u-strasbg.fr> nv04: some old changes I had lying around.
rm/nouveau/common/nouveau_context.c
rm/nouveau/common/nouveau_fence.c
rm/nouveau/common/nouveau_winsys.c
b5d96a3e7f02314cbdc3897c4b89137f1e13bb0f 30-Jan-2009 José Fonseca <jfonseca@vmware.com> stw: Don't use the winsys.
di/gdi_softpipe_winsys.c
adfbba476db1fc55006efb748656ebb1a481d143 30-Jan-2009 Zack Rusin <zackr@vmware.com> gallium: make p_winsys internal

move it to pipe/internal/p_winsys_screen.h and start converting
the state trackers to the screen usage
rm/intel/common/intel_be_device.c
rm/intel/common/intel_be_device.h
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
rm/nouveau/common/nouveau_winsys_pipe.c
rm/nouveau/common/nouveau_winsys_pipe.h
rm/nouveau/common/nouveau_winsys_softpipe.c
gl_xlib/egl_xlib.c
gl_xlib/sw_winsys.c
di/gdi_softpipe_winsys.c
lib/xlib_brw_context.c
lib/xlib_brw_screen.c
lib/xlib_cell.c
lib/xlib_softpipe.c
0c75e59bfd0944782ee767c964d2dd2fdf34f6ea 30-Jan-2009 José Fonseca <jfonseca@vmware.com> gdi: Update for winsys interface changes.
di/gdi_softpipe_winsys.c
83a2a89663335b6a9203bf5d359659bf83a16dac 30-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Remove debug print
rm/intel/gem/intel_be_batchbuffer.c
rm/intel/gem/intel_be_context.c
3b1b9f3cc70392bd1abb76e78a28db15bfbbbe85 29-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Set render domain on read and write
rm/intel/gem/intel_be_context.c
178f991208680bea141e6b13c169ca84b703df36 29-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Try forcing flushes
rm/intel/gem/intel_be_batchbuffer.c
e67c020ad493269bab505d47ae5a7cac1e9ddb70 29-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Dump batchbuffer before sending to hw
rm/intel/gem/intel_be_batchbuffer.c
f1c0be75b7cd0b69c16aeccb3b7c651194e7e767 29-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Change link order
rm/intel/egl/Makefile
e74be3f08ec023ffe7c9e79a5ab589d3a12f3a3f 28-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Fix type correctly this time

Facepalm.
rm/intel/gem/intel_be_batchbuffer.c
b5fc2a68e8fd07773d424aade2f9d32d4c7bf607 28-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Fix typo
rm/intel/gem/intel_be_batchbuffer.c
72b2733287ee89916d6180becf65ff3b45d5a23a 28-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915: Add verbose debuging

Only enabled while in development this commit
will be reverted in the future.
rm/intel/gem/intel_be_batchbuffer.c
rm/intel/gem/intel_be_context.c
26fe7a5fc4421d91e43885da7f85ed9d13897a06 28-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Supply the correct buffers to gem
rm/intel/gem/intel_be_batchbuffer.c
005a375068dc876b664114c7eb00f8d6b469fc1a 26-Jan-2009 Zack Rusin <zackr@vmware.com> egl: compilation fix
gl_xlib/egl_xlib.c
0cd1ee764a1775d0a3da860ebb73e441adbaafb8 24-Jan-2009 Younes Manton <younes.m@gmail.com> g3dvl: Remove dead links to files that are now in libnouveaudrm.
3dvl/nouveau/nouveau_bo.c
3dvl/nouveau/nouveau_channel.c
3dvl/nouveau/nouveau_device.c
3dvl/nouveau/nouveau_dma.c
3dvl/nouveau/nouveau_dma.h
3dvl/nouveau/nouveau_dri.h
3dvl/nouveau/nouveau_drmif.h
3dvl/nouveau/nouveau_fence.c
3dvl/nouveau/nouveau_grobj.c
3dvl/nouveau/nouveau_local.h
3dvl/nouveau/nouveau_lock.c
3dvl/nouveau/nouveau_notifier.c
3dvl/nouveau/nouveau_pushbuf.c
3dvl/nouveau/nouveau_resource.c
3dvl/nouveau/nouveau_winsys.c
3dvl/nouveau/nouveau_winsys_pipe.c
3dvl/nouveau/nouveau_winsys_pipe.h
3dvl/nouveau/nouveau_winsys_softpipe.c
3dvl/nouveau/nv04_surface.c
3dvl/nouveau/nv50_surface.c
3af89cd3dec09b8cc5733cd45e2af05b689d0374 24-Jan-2009 Pekka Paalanen <pq@iki.fi> nouveau: fix st_get_framebuffer_surface() breakage

Someone changed the st_get_framebuffer_surface() signature, and did not
update the users in Nouveau winsys. Surface is returned via a pointer
now instead of returning it from the function. No semantic changes.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
rm/nouveau/dri/nouveau_swapbuffers.c
73a4c945d32e0041f7c26a69cef1bb0a8b7d870b 20-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915: Fix gem backend after surface changes
rm/intel/gem/intel_be_device.c
5897383344da3320d158c26adae05de35480471f 20-Jan-2009 José Fonseca <jfonseca@vmware.com> gallium: Remove the standalone surfaces.

This commit is mostly just a cosmetic change that cleans-up the interfaces,
replacing pipe_winsys::surface_* calls by

/**
* Allocate storage for a display target surface.
*
* Often surfaces which are meant to be blitted to the front screen (i.e.,
* display targets) must be allocated with special characteristics, memory
* pools, or obtained directly from the windowing system.
*
* This callback is invoked by the pipe_screenwhen creating a texture marked
* with the PIPE_TEXTURE_USAGE_DISPLAY_TARGET flag to get the underlying
* buffer storage.
*/
struct pipe_buffer *(*surface_buffer_create)(struct pipe_winsys *ws,
unsigned width, unsigned height,
enum pipe_format format,
unsigned usage,
unsigned *stride);

Most drivers were updated but not all were tested. Use the softpipe pipe
driver and the xlib winsys changes as a reference when fixing other drivers.
rm/intel/common/intel_be_device.c
gl_xlib/sw_winsys.c
3dvl/nouveau/nouveau_winsys_pipe.c
3dvl/xsp_winsys.c
di/gdi_softpipe_winsys.c
lib/xlib_brw_screen.c
lib/xlib_cell.c
lib/xlib_softpipe.c
ecc563b17f810399ddf74a68fca1e903ba49a0d6 19-Jan-2009 Keith Whitwell <keith@tungstengraphics.com> xlib: fix dependencies
lib/Makefile
ba3a879b1cade2cb189b1d6d3b244f1fa3f8f5d7 19-Jan-2009 Brian Paul <brianp@vmware.com> gallium: use align() intead of round_up()
lib/xlib_softpipe.c
41b99b0070244450873414d4aaeb6d9e14dbaf3d 19-Jan-2009 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/gallium-0.2' into gallium-xlib-rework

Conflicts:

src/gallium/state_trackers/glx/xlib/fakeglx.c
src/gallium/state_trackers/glx/xlib/xm_api.c
src/gallium/winsys/xlib/xmesaP.h
ea55b62f373a5fb63a684ce0d7f89240d3b888e7 19-Jan-2009 Keith Whitwell <keith@tungstengraphics.com> xlib: fix compilation after xmesa header moves
lib/fakeglx.c
lib/xm_api.c
lib/xmesa.h
lib/xmesaP.h
lib/xmesa_x.h
b5db6b039c34117be4e441a2b95abbf97df928c3 19-Jan-2009 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/gallium-0.2' into gallium-xlib-rework
7309e8057844bc67a81ce01a99a9cb62d36eda0b 14-Jan-2009 Younes Manton <younes.m@gmail.com> nouveau: Rename buffer on map if discardable, busy, and write-only.
rm/nouveau/common/nouveau_winsys_pipe.c
a835eb930df5b596060a88863933a1bc7d76b6a9 19-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915: Build gem and egl winsys by default
rm/intel/Makefile
353f824379259f899142b106d6f642fbe46207f4 19-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915: Make gem submit commands
rm/intel/gem/intel_be_batchbuffer.c
rm/intel/gem/intel_be_context.c
df3ef7a8d6473238da57ab47b6de027bb427f395 18-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915: Use new egl state_tracker
rm/Makefile.template
rm/intel/egl/Makefile
rm/intel/egl/SConscript
rm/intel/egl/intel_api.c
rm/intel/egl/intel_api.h
rm/intel/egl/intel_batchbuffer.h
rm/intel/egl/intel_context.c
rm/intel/egl/intel_context.h
rm/intel/egl/intel_device.c
rm/intel/egl/intel_device.h
rm/intel/egl/intel_egl.c
rm/intel/egl/intel_egl.h
rm/intel/egl/intel_reg.h
rm/intel/egl/intel_swapbuffers.c
a874cf37ee2a792991819cad2cb73e3d2ddc87a3 18-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> i915: Update gem backend a bit
rm/intel/gem/intel_be_batchbuffer.c
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
bcc45a202496fba9686f953011039c09e36bf3ae 17-Jan-2009 Keith Whitwell <keith@tungstengraphics.com> xlib: don't explicitly create the pipe_winsys struct
lib/xlib_brw_screen.c
lib/xlib_cell.c
lib/xlib_softpipe.c
lib/xlib_trace.c
529f86fb113529d1ecf113dc45efade7fe185f94 05-Jan-2009 Jakob Bornecrantz <wallbraker@gmail.com> intel: Add a none working GEM backend for intel
rm/intel/gem/Makefile
rm/intel/gem/Makefile.template
rm/intel/gem/intel_be_batchbuffer.c
rm/intel/gem/intel_be_batchbuffer.h
rm/intel/gem/intel_be_context.c
rm/intel/gem/intel_be_context.h
rm/intel/gem/intel_be_device.c
rm/intel/gem/intel_be_device.h
rm/intel/gem/intel_be_fence.h
a8e0df08ef75db9d80ddc55098e436829af49d7c 13-Jan-2009 Keith Whitwell <keith@tungstengraphics.com> xlib: split off cell to its own backend

Also remove compile-time USE_XSHM flag. Still check for XSHM at runtime
though.
lib/Makefile
lib/xlib.c
lib/xlib.h
lib/xlib_cell.c
lib/xlib_softpipe.c
2f19fecd583a4406385708de6362b3bdef23811e 13-Jan-2009 Keith Whitwell <keith@tungstengraphics.com> xlib: allow winsys's to register themselves with glx/xlib state tracker
lib/xlib.c
lib/xlib.h
lib/xlib_brw.h
lib/xlib_brw_screen.c
lib/xlib_softpipe.c
lib/xlib_softpipe.h
lib/xlib_trace.c
lib/xlib_trace.h
ecb2eb4c991be40cf4235fadd286c942179f4036 12-Jan-2009 Ben Skeggs <skeggsb@gmail.com> nouveau: fix warning
rm/nouveau/dri/nouveau_context_dri.c
df266471b1f0eae54cf23fd59a741fa3be9b93df 12-Jan-2009 Ben Skeggs <skeggsb@gmail.com> nouveau: return buffer map to something sane.

Sorry, but no, we're not doing this.. Correctness always takes precedence
over speed. Implement this higher up where you know it's safe to do so,
and doesn't break other things in the process.
rm/nouveau/common/nouveau_winsys_pipe.c
7b6fb34e9d1da73cc92fc63fa1d52082df5904ee 12-Jan-2009 Ben Skeggs <skeggsb@gmail.com> nouveau: use usage, not uninitialised flags value...
rm/nouveau/common/nouveau_winsys_pipe.c
e37a3aed95ea91a7ddbabc4bed1fac7c451fe695 11-Jan-2009 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/gallium-0.2' into gallium-xlib-rework
8ee238be7587a232beeb56b1dc3b75e1b8fb903e 10-Jan-2009 Younes Manton <younes.m@gmail.com> nouveau: Factor out common winsys bits into libnouveaudrm.a
rm/nouveau/Makefile
rm/nouveau/common/Makefile
rm/nouveau/common/Makefile.template
rm/nouveau/common/nouveau_bo.c
rm/nouveau/common/nouveau_channel.c
rm/nouveau/common/nouveau_context.c
rm/nouveau/common/nouveau_context.h
rm/nouveau/common/nouveau_device.c
rm/nouveau/common/nouveau_dma.c
rm/nouveau/common/nouveau_dma.h
rm/nouveau/common/nouveau_dri.h
rm/nouveau/common/nouveau_drmif.h
rm/nouveau/common/nouveau_fence.c
rm/nouveau/common/nouveau_grobj.c
rm/nouveau/common/nouveau_local.h
rm/nouveau/common/nouveau_lock.c
rm/nouveau/common/nouveau_notifier.c
rm/nouveau/common/nouveau_pushbuf.c
rm/nouveau/common/nouveau_resource.c
rm/nouveau/common/nouveau_screen.c
rm/nouveau/common/nouveau_screen.h
rm/nouveau/common/nouveau_winsys.c
rm/nouveau/common/nouveau_winsys_pipe.c
rm/nouveau/common/nouveau_winsys_pipe.h
rm/nouveau/common/nouveau_winsys_softpipe.c
rm/nouveau/common/nv04_surface.c
rm/nouveau/common/nv50_surface.c
rm/nouveau/dri/Makefile
rm/nouveau/dri/nouveau_context_dri.c
rm/nouveau/dri/nouveau_context_dri.h
rm/nouveau/dri/nouveau_screen_dri.c
rm/nouveau/dri/nouveau_screen_dri.h
rm/nouveau/dri/nouveau_swapbuffers.c
rm/nouveau/dri/nouveau_swapbuffers.h
rm/nouveau/nouveau_bo.c
rm/nouveau/nouveau_channel.c
rm/nouveau/nouveau_context.c
rm/nouveau/nouveau_context.h
rm/nouveau/nouveau_device.c
rm/nouveau/nouveau_dma.c
rm/nouveau/nouveau_dma.h
rm/nouveau/nouveau_dri.h
rm/nouveau/nouveau_drmif.h
rm/nouveau/nouveau_fence.c
rm/nouveau/nouveau_grobj.c
rm/nouveau/nouveau_local.h
rm/nouveau/nouveau_lock.c
rm/nouveau/nouveau_notifier.c
rm/nouveau/nouveau_pushbuf.c
rm/nouveau/nouveau_resource.c
rm/nouveau/nouveau_screen.c
rm/nouveau/nouveau_screen.h
rm/nouveau/nouveau_swapbuffers.c
rm/nouveau/nouveau_swapbuffers.h
rm/nouveau/nouveau_winsys.c
rm/nouveau/nouveau_winsys_pipe.c
rm/nouveau/nouveau_winsys_pipe.h
rm/nouveau/nouveau_winsys_softpipe.c
rm/nouveau/nv04_surface.c
rm/nouveau/nv50_surface.c
3dvl/nouveau/Makefile
3dvl/nouveau/nouveau_context.c
3dvl/nouveau/nouveau_context.h
3dvl/nouveau/nouveau_context_vl.c
3dvl/nouveau/nouveau_context_vl.h
3dvl/nouveau/nouveau_screen.c
3dvl/nouveau/nouveau_screen.h
3dvl/nouveau/nouveau_screen_vl.c
3dvl/nouveau/nouveau_screen_vl.h
3dvl/nouveau/nouveau_swapbuffers.c
734b3cb182b4b7d1075faf60c1a23ab0a55af356 20-Dec-2008 Younes Manton <younes.m@gmail.com> g3dvl: Use Gallium thread wrappers.
3dvl/nouveau/nouveau_lock.c
9beb004885ab5be652bcb733a5fd9ee729f89921 20-Dec-2008 Younes Manton <younes.m@gmail.com> nouveau: Catch some more leaks.
rm/nouveau/nouveau_channel.c
87e39466dc49e033c4075f99343856637611b438 12-Dec-2008 Younes Manton <younes.m@gmail.com> g3dvl: Allocate one set of bufs, let winsys rename them as necessary.
3dvl/nouveau/nouveau_winsys_pipe.c
af2a856caa84755d3b1a0a887d000ce7dc3221dd 11-Dec-2008 Younes Manton <younes.m@gmail.com> nouveau: Add busy() query, determines if BOs can be mapped immediately.
rm/nouveau/nouveau_bo.c
rm/nouveau/nouveau_drmif.h
7289c388f442fe532de52058f9167bc331920b1a 06-Dec-2008 Younes Manton <younes.m@gmail.com> nouveau: Use PIPE_BUFFER_USAGE_CPU_* instead of custom.
rm/nouveau/nouveau_winsys_pipe.c
3dvl/nouveau/nouveau_winsys_pipe.c
34c0281879b589dc42d134a10349eac66c7b2f0d 05-Dec-2008 Younes Manton <younes.m@gmail.com> nouveau: Put dynamic textures in GART for CPU access and don't swizzle.

Also flag shadows as dynamic since they're for CPU access as well.
rm/nouveau/nouveau_winsys_pipe.c
3dvl/nouveau/nouveau_winsys_pipe.c
72aa42e59468817798484defe5b3f6dfec0d33e3 05-Dec-2008 Younes Manton <younes.m@gmail.com> nouveau: Swizzle textures larger than nv04 SIFM limit in parts.

Limit of SIFM on nv40 is 1024x1024, not sure about others.
rm/nouveau/nv04_surface.c
61e843ff4bf9b9e8c4a7a8a485cee852a4f1dd86 09-Jan-2009 Keith Whitwell <keithw@vmware.com> xlib: move state tracker to glx/xlib

Also, remove makefile hacks.
lib/Makefile
75aac1b49665b471a4da79de95441c625923f18f 09-Jan-2009 Keith Whitwell <keithw@vmware.com> xlib: disable more cell calls when GALLIUM_CELL not defined
lib/xlib_softpipe.c
05f8e41b9567695e9b96276d3ac5734ed2b268a8 09-Jan-2009 Keith Whitwell <keith@tungstengraphics.com> xlib: combine and eliminate some header files
lib/xlib_softpipe.c
e3734593aea202e99e77febea7b86c904080939f 09-Jan-2009 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/gallium-0.2' into gallium-xlib-rework

Conflicts:

progs/glsl/Makefile
a129c7268acc5a36852fcb006391e1f4b51ce7e1 08-Jan-2009 Brian Paul <brianp@vmware.com> cell: fix breakage from xlib re-org

Some of these fixes are quick band-aids for now.
lib/xlib_brw_context.c
lib/xlib_brw_screen.c
lib/xlib_softpipe.c
002dfb12fce045d0e124301e5df805df772149d8 08-Jan-2009 Keith Whitwell <keithw@vmware.com> gallium: split driver-independent code out of xlib winsys

Place in new xlib state-tracker. This is a statetracker for the GLX API.
lib/Makefile
lib/brw_aub.c
lib/brw_aub.h
lib/fakeglx.c
lib/glxapi.c
lib/glxapi.h
lib/glxheader.h
lib/realglx.c
lib/realglx.h
lib/xfonts.c
lib/xfonts.h
lib/xlib.c
lib/xlib_brw.h
lib/xlib_brw_aub.c
lib/xlib_brw_aub.h
lib/xlib_brw_context.c
lib/xlib_brw_screen.c
lib/xlib_softpipe.c
lib/xlib_softpipe.h
lib/xlib_trace.c
lib/xlib_trace.h
lib/xm_api.c
lib/xm_image.c
lib/xm_image.h
lib/xm_winsys.c
lib/xm_winsys_aub.c
lib/xm_winsys_aub.h
lib/xmesaP.h
500e05d437adb14e9dd5e36b07f1b7554ba9563e 08-Jan-2009 José Fonseca <jfonseca@vmware.com> gdi: Add newline at end of file.
di/gdi_softpipe_winsys.c
73d02d70b8c98c0e64e7816795565ed5f5bf3639 06-Jan-2009 José Fonseca <jfonseca@vmware.com> wgl: Do not provide DllMain inside the state tracker.

MS CRT libraries already provide a default DllMain entrypoint, and
MS Linker will complain if it finds the same symbol in two different
libraries. Therefore the DllMain has to be in (each) winsys.
di/gdi_softpipe_winsys.c
e59eb5fc969777ea9590af3710c3ec9373ce043b 06-Jan-2009 José Fonseca <jfonseca@vmware.com> gdi: Fix warning.
di/gdi_softpipe_winsys.c
8e63beff5608aca67cf55978e03c53b3fcbca5c3 30-Dec-2008 José Fonseca <jfonseca@vmware.com> gdi: Remove accidental keypresses.
di/SConscript
ce8469abeb8d48d84a77f3ddd1664d9f98d7d620 11-Dec-2008 José Fonseca <jrfonseca@tungstengraphics.com> gdi: Cleanup sconsfile.
di/SConscript
93afa779453e69951b168e8ecb7b6ddef53eb8b0 19-Dec-2008 Brian Paul <brian.e.paul@gmail.com> cell: fix build breakage
lib/xm_winsys_aub.c
6b88d9606f5cc8147b9ef13c70a9416313c52205 17-Dec-2008 Brian Paul <brian.paul@tungstengraphics.com> winsys: fix depth buffer size when using stencil
lib/fakeglx.c
8abc860bd46a6cd584f9a64cb4613be76f82db06 15-Dec-2008 Alan Hourihane <alanh@tungstengraphics.com> Merge commit 'origin/gallium-0.1' into gallium-0.2

Conflicts:

src/gallium/winsys/gdi/SConscript
e9e43321eeec31f1034272af094d90dde80f967d 20-Nov-2008 José Fonseca <jrfonseca@tungstengraphics.com> gdi: Reimplement using the WGL statetracker.
di/SConscript
di/colors.h
di/gdi_softpipe_winsys.c
di/opengl32.def
di/wgl.c
di/wmesa.c
di/wmesadef.h
0c31661e73dd2979df22a275452efc71c7064f81 11-Dec-2008 Brian Paul <brian.paul@tungstengraphics.com> Merge commit 'origin/gallium-0.1' into gallium-0.2
99b862cd77fb088d0b2e62c6c15ecef82ec4fb80 11-Dec-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: restore default_depth_bits() call in xlib winsys

This was accidentally disabled in a long-ago commit.
lib/fakeglx.c
4371a24c320f3d26f07effa0c3e862078762c942 02-Dec-2008 Younes Manton <younes.m@gmail.com> nouveau: Calc pitch for swizzled textures appropriately.
rm/nouveau/nv04_surface.c
6b4776df35c46892d7701072b8c03cb1cf2d6f01 02-Dec-2008 Younes Manton <younes.m@gmail.com> nouveau: Use swizzled textures & render targets on nv40 when possible.
rm/nouveau/nv04_surface.c
a6b7c0bcbebb7532b6728500a868b7c985e3f822 02-Dec-2008 Younes Manton <younes.m@gmail.com> nouveau: nv04-nv40 linear <-> swizzled conversion.
rm/nouveau/nv04_surface.c
dbcfc0dcde4eee248812881d32b134fd733212d2 30-Nov-2008 Pekka Paalanen <pq@iki.fi> Nouveau: minor winsys API fix

Signed-off-by: Pekka Paalanen <pq@iki.fi>
rm/nouveau/nouveau_winsys_softpipe.c
4af0d940a35536f096a9289470af0268a79402b3 25-Nov-2008 Alan Hourihane <alanh@tungstengraphics.com> Merge commit 'origin/gallium-0.1' into gallium-0.2

Conflicts:

scons/gallium.py
src/gallium/auxiliary/pipebuffer/pb_buffer.h
76624096617c7218d828c5de9c02e70d578c37c7 20-Nov-2008 José Fonseca <jrfonseca@tungstengraphics.com> gdi: Reimplement using the WGL statetracker.
di/SConscript
di/colors.h
di/gdi_softpipe_winsys.c
di/opengl32.def
di/wgl.c
di/wmesa.c
di/wmesadef.h
15b92b09e0f066a9d38c445b80b33193a8d9ea14 18-Nov-2008 José Fonseca <jrfonseca@tungstengraphics.com> scons: Support MinGW32 cross compiler.

To build an alternative opengl32.dll with Gallium's software-rasterizer from a
debian-based distribution run:

sudo apt-get install mingw32
scons platform=windows toolchain=crossmingw machine=x86 winsys=gdi dri=no
di/SConscript
6cf59e1293c5777ba5675e6315cbfad3211f9260 18-Nov-2008 José Fonseca <jrfonseca@tungstengraphics.com> scons: Support MinGW32 cross compiler.

To build an alternative opengl32.dll with Gallium's software-rasterizer from a
debian-based distribution run:

sudo apt-get install mingw32
scons platform=windows toolchain=crossmingw machine=x86 winsys=gdi dri=no
di/SConscript
56ef0aeda5d23bf0c6147fd9d20d61abd18207af 15-Nov-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Silence warning
rm/intel/egl/intel_egl.c
5aaeb13a768f0c7d3706f6c170901b118ae1aa2d 12-Nov-2008 Pekka Paalanen <pq@iki.fi> Merge commit 'origin/gallium-0.1' into gallium-0.2

* commit 'origin/gallium-0.1':
Mesa: fix number of buffers in st_draw_vbo().
Nouveau: fix nv20_vertex_layout()
Nouveau: update nv20 miptree according to nv40.
Nouveau: build, link and use nv20.
Nouveau: name replace for nv20.
Nouveau: Rename nv20/ files as nv20.
Nouveau: copy nv30_vertprog.c to nv20.
Nouveau: start nv20 by copying the nv10 tree.
66eacb3fed6bc1926e1925b164b7168a6e0a82d5 10-Nov-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: pass object handle not pointer to GPU...
rm/nouveau/nv04_surface.c
0da43322bbc6ead4eeb1b9fe079a33e0d57bece5 08-Nov-2008 Pekka Paalanen <pq@iki.fi> Nouveau: build, link and use nv20.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
rm/nouveau/Makefile
rm/nouveau/nouveau_winsys.c
3dvl/nouveau/Makefile
64a9908816a95849557678c8cab6071aa086f7e2 05-Nov-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Remove faulty assert
rm/intel/dri/intel_swapbuffers.c
ee35de2dfb12415416817d417f59e676b34ea81b 27-Oct-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'nouveau/gallium-0.1' into gallium-0.2
70a06e03d45f3d2e1cd1d430ba83c4b22471373c 27-Oct-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'origin/gallium-0.2' into gallium-0.2
06c43beee08052bae3832586559889d74fb538b6 23-Oct-2008 Michel Dänzer <michel@tungstengraphics.com> scons: Don't hardcode any drivers for the xlib winsys, just pick suitable ones.
lib/SConscript
af59f767a03da4dd434a6d655e3d0bc05feb298a 07-Oct-2008 Patrice Mandin <pmandin@caramail.com> nouveau: first draft of swizzle texture upload to vram
rm/nouveau/nv04_surface.c
2882a2db7a766c60bb231978ea829632438dd8a4 29-Sep-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: some small API changes
rm/nouveau/nouveau_screen.c
8cd046c9b1da31e4ff178816bdfe2ee3451a1553 30-Sep-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'origin/gallium-0.2' into gallium-0.2
e9c722b660ee8fc0aa73335d447f1dd8bced6fe2 26-Sep-2008 Alan Hourihane <alanh@tungstengraphics.com> st: change from ** to * for st_unreference_framebuffer()
rm/intel/dri/intel_screen.c
rm/intel/egl/intel_device.c
gl_xlib/egl_xlib.c
da85a94d99cfbd8f094a475fb2272efb4e87b9a9 21-Sep-2008 Patrice Mandin <pmandin@caramail.com> nouveau: init scaled_image_from_memory object for swizzled surface upload
rm/nouveau/nv04_surface.c
44d5e607c7a8794007a29a5e2399f98615ec8def 19-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> cell: disable XShmPutImage for tiled surface for now

Multiple displays of same surface data causes pixels to get scrambled.
lib/xm_winsys.c
89f47d1645c9f8a61de59792a85d1f380c0b3524 19-Sep-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915simple: Use defined MSAA array
rm/intel/dri/intel_screen.c
d3172cddbf814b0ce6877faff9a7d73b99272faa 19-Sep-2008 Alan Hourihane <alanh@tungstengraphics.com> fix for MSAA
rm/intel/dri/intel_screen.c
82623bf2e515a862a69c8bce351a2bcb6937589c 19-Sep-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915simple: Front flushing does work
rm/intel/dri/intel_screen.c
c6dc1bf6e08b264681d3230cac08bd7d8ee6c964 19-Sep-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915simple: Fix extentions being loaded
rm/intel/dri/intel_screen.c
b1d8b6c4d986a6526f20e1e89982036f0ba85222 18-Sep-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
4c9cd725d54edf9baacef83d94c6487c7d592090 15-Sep-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915simple: dri winsys does now compile and works

Glxgears hits an assert, but tri works
rm/intel/dri/intel_screen.c
56c22687e139e8fede6f7ea4d524699364dda07c 12-Sep-2008 Younes Manton <younes.m@gmail.com> g3dvl: Use winsys_buffer_reference() instead of pipe_buffer_reference().

Old pipe_buffer_reference() renamed winsys_buffer_reference(), new
pipe_buffer_reference() expects a screen.
3dvl/nouveau/nouveau_winsys_pipe.c
3dvl/xsp_winsys.c
44e53b37a02933f238b438e5dc3a2891da5eb51a 12-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> cell: fix twiddled tile display for XSHM. Fixed blank window problem.
lib/xm_winsys.c
73193b7735eca10fd6a3bd7f43cdee72d3976175 12-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> cell: fix twiddled tile display for XSHM. Fixed blank window problem.
lib/xm_winsys.c
59f23e92e24b93eb48f4e0552dd8e397aefd1714 12-Sep-2008 Younes Manton <younes.m@gmail.com> g3dvl: Update softlinks to nouveau winsys files, related fixes.
3dvl/nouveau/nouveau_bo.c
3dvl/nouveau/nouveau_channel.c
3dvl/nouveau/nouveau_context.c
3dvl/nouveau/nouveau_device.c
3dvl/nouveau/nouveau_dma.c
3dvl/nouveau/nouveau_dma.h
3dvl/nouveau/nouveau_dri.h
3dvl/nouveau/nouveau_drmif.h
3dvl/nouveau/nouveau_fence.c
3dvl/nouveau/nouveau_grobj.c
3dvl/nouveau/nouveau_local.h
3dvl/nouveau/nouveau_notifier.c
3dvl/nouveau/nouveau_pushbuf.c
3dvl/nouveau/nouveau_resource.c
3dvl/nouveau/nouveau_screen.c
3dvl/nouveau/nouveau_winsys.c
3dvl/nouveau/nouveau_winsys_pipe.c
3dvl/nouveau/nouveau_winsys_pipe.h
3dvl/nouveau/nouveau_winsys_softpipe.c
3dvl/nouveau/nv04_surface.c
3dvl/nouveau/nv50_surface.c
3dvl/xsp_winsys.c
6b50fd27b85bc0d060ead13e6c656dd64c9a2978 09-Sep-2008 Younes Manton <younes.m@gmail.com> g3dvl: Clean up Makefile deps.
3dvl/nouveau/Makefile
d64da83a2c21d17f2f0a6b9b4c8e90df0e993559 12-Sep-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: rework nouveau_screen for latest and greatest changes
rm/nouveau/nouveau_screen.c
d37e6f9a7fcdf741bf1afa1d2a555710230500a3 12-Sep-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.2' into nouveau-gallium-0.2
3df06470275573f7d1d6eb6ce690f2e7ffa4ced7 12-Sep-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915simple: A step closer to compiling
rm/intel/dri/intel_swapbuffers.c
81335d0f1760fe172a106f79e81281c1f0d7dedf 12-Sep-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
084ab37b7f34d509af995efaef4615289669f72b 12-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> cell: fix tile twidding bug seen in the event of multiple expose events
lib/xm_winsys.c
fbf1586b36f8fb181ecee6a285c94f11e30005ba 11-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: typo: s/PIPE_FORMAT_Z16UNORM/PIPE_FORMAT_Z16_UNORM/
lib/xm_api.c
284ab5a6127f8b452acaa0e10ac1d9ebc87fac3e 11-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> cell: checkpoint commit of new per-fragment processing

Do code generation for alpha test, z test, stencil, blend, colormask
and framebuffer/tile read/write as a single code block.
Ian's previous blend/z/stencil test code is still there but mostly disabled
and will be removed soon.
lib/xm_api.c
lib/xm_winsys.c
f302fca5eb63e4bca8af5b35c585451486143e6a 10-Sep-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: gallium directory structure changed again..
ri/nouveau/Makefile
ri/nouveau/nouveau_bo.c
ri/nouveau/nouveau_channel.c
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_context.h
ri/nouveau/nouveau_device.c
ri/nouveau/nouveau_dma.c
ri/nouveau/nouveau_dma.h
ri/nouveau/nouveau_dri.h
ri/nouveau/nouveau_drmif.h
ri/nouveau/nouveau_fence.c
ri/nouveau/nouveau_grobj.c
ri/nouveau/nouveau_local.h
ri/nouveau/nouveau_lock.c
ri/nouveau/nouveau_notifier.c
ri/nouveau/nouveau_pushbuf.c
ri/nouveau/nouveau_resource.c
ri/nouveau/nouveau_screen.c
ri/nouveau/nouveau_screen.h
ri/nouveau/nouveau_swapbuffers.c
ri/nouveau/nouveau_swapbuffers.h
ri/nouveau/nouveau_winsys.c
ri/nouveau/nouveau_winsys_pipe.c
ri/nouveau/nouveau_winsys_pipe.h
ri/nouveau/nouveau_winsys_softpipe.c
ri/nouveau/nv04_surface.c
ri/nouveau/nv50_surface.c
rm/nouveau/Makefile
rm/nouveau/nouveau_bo.c
rm/nouveau/nouveau_channel.c
rm/nouveau/nouveau_context.c
rm/nouveau/nouveau_context.h
rm/nouveau/nouveau_device.c
rm/nouveau/nouveau_dma.c
rm/nouveau/nouveau_dma.h
rm/nouveau/nouveau_dri.h
rm/nouveau/nouveau_drmif.h
rm/nouveau/nouveau_fence.c
rm/nouveau/nouveau_grobj.c
rm/nouveau/nouveau_local.h
rm/nouveau/nouveau_lock.c
rm/nouveau/nouveau_notifier.c
rm/nouveau/nouveau_pushbuf.c
rm/nouveau/nouveau_resource.c
rm/nouveau/nouveau_screen.c
rm/nouveau/nouveau_screen.h
rm/nouveau/nouveau_swapbuffers.c
rm/nouveau/nouveau_swapbuffers.h
rm/nouveau/nouveau_winsys.c
rm/nouveau/nouveau_winsys_pipe.c
rm/nouveau/nouveau_winsys_pipe.h
rm/nouveau/nouveau_winsys_softpipe.c
rm/nouveau/nv04_surface.c
rm/nouveau/nv50_surface.c
7158203b081ad34c03382f07e0df748eae235e9b 10-Sep-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

Conflicts:
configs/default
52c2dd1f73e17c8352fe976e2ee4cdf049f81957 08-Sep-2008 José Fonseca <jrfonseca@tungstengraphics.com> scons: Install libGL.so and respective symlinks.
lib/SConscript
6ebf712d88e7d1da949e224b93ff12ef601f2742 03-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: do image clipping in xmesa_display_surface_tiled()
lib/xm_winsys.c
2ab394a3b4557f1d79d38f24f899508d7b13cd35 03-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> cell: move misplaced assertions; put them after ximage is assigned.
lib/xm_winsys.c
1d5ad2c244f4b66ca1ac40c545482009ab46607c 03-Sep-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Fix typo in intel_lock.c
rm/intel/dri/intel_lock.c
ab93aa774e2fc09b5f579eb13ce94cf22796902b 03-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> Cell: added linux-cell-debug config

linux-cell is now the optimized configuration.
Remove some Cell-specific stuff from winsys/xlib/Makefile.
lib/Makefile
f637a96e85a51a66f2c53b91118a6815bb61d6e6 03-Sep-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.

We want to use the pipe_buffer_* inlines everywhere, but a pipe context
is not always available nor is it needed.
rm/intel/dri/intel_screen.c
gl_xlib/sw_winsys.c
di/wmesa.c
lib/xm_winsys.c
lib/xm_winsys_aub.c
72b90b7894afbcb39f72dc4d76cdea0678bf4bc3 01-Sep-2008 Patrice Mandin <pmandin@caramail.com> Intialize swizzled_surface object
ri/nouveau/nv04_surface.c
2774b09d4e6957e202ece37337ae6201f7aa8eb7 02-Sep-2008 Jakob Bornecrantz <jakob@aurora.(none)> i915: Fix typo in ws_dri_bufmgr.c
rm/intel/common/ws_dri_bufmgr.c
28b4090922f45e90804a21f83c04ec8b781cdf96 01-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: remove glthread.h file (not used)
rm/intel/common/glthread.h
6f33b778ae3130571d17a110187379ec0beecbd8 27-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: call st_finish() in XMesaFlush()
lib/xm_api.c
0bb852fa49e7f9a31036089ea4f5dfbd312a4a3a 27-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: thread wrapper clean-up

In p_thread.h replace _glthread_* functions with new pipe_* functions.
Remove other old cruft.
rm/intel/common/ws_dri_bufmgr.c
rm/intel/common/ws_dri_bufpool.h
rm/intel/common/ws_dri_drmpool.c
rm/intel/common/ws_dri_fencemgr.c
rm/intel/common/ws_dri_mallocpool.c
rm/intel/common/ws_dri_slabpool.c
rm/intel/dri/intel_lock.c
lib/glxapi.c
lib/xm_api.c
lib/xmesaP.h
85813e36f2646e00ac163fb6e6e78e1d2f73eb34 25-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: include u_math.h
lib/xm_winsys_aub.c
6fd2feaad7029a2f6d02bcf7039cbe72f53c615c 25-Aug-2008 Brian <brian.paul@tungstengraphics.com> gallium: include u_memory.h, u_math.h
lib/brw_aub.c
4f25420bdd834e81a3e22733304efc5261c2998a 25-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.h

Also, rename p_tile.[ch] to u_tile.[ch]
rm/intel/common/intel_be_device.c
rm/intel/dri/intel_winsys_softpipe.c
gl_xlib/egl_xlib.c
gl_xlib/sw_winsys.c
di/wmesa.c
lib/brw_aub.c
lib/xm_winsys.c
lib/xm_winsys_aub.c
f9e14e0daca3b2f3662a68413c2fa71c05375b8e 19-Aug-2008 José Fonseca <jrfonseca@tungstengraphics.com> xlib: Revert destroying pipe_screen (temporary).
lib/xm_api.c
6fdc057887bd5e1e5f5ae2781529df050b3a31c6 18-Aug-2008 Michal Krol <michal@tungstengraphics.com> scons: Fix build.
Conscript
7f100d04ddacf9f6517c9aff1e2de5257eb77fb0 18-Aug-2008 Younes Manton <younes.m@gmail.com> g3dvl: Use rotating buffers to avoid waiting for map().
3dvl/nouveau/Makefile
9bbc55116f36a357ee75d2766b0adb039eaca806 17-Aug-2008 Alan Hourihane <alanh@tungstengraphics.com> if we can't find a mode, return first. At least we should
see the top left portion if we've got larger screens on
other CRTC's
rm/intel/egl/intel_egl.c
ccf1910dd4b2a8ccd04ddbdf725b6dd3f8026eee 17-Aug-2008 Alan Hourihane <alanh@tungstengraphics.com> consolidate intel directories.

we now have

src/gallium/winsys/drm/intel/{common,dri,egl}
Conscript
ommon/Makefile
ommon/Makefile.template
ommon/intel_drm/Makefile
ommon/intel_drm/glthread.h
ommon/intel_drm/intel_be_batchbuffer.c
ommon/intel_drm/intel_be_batchbuffer.h
ommon/intel_drm/intel_be_context.c
ommon/intel_drm/intel_be_context.h
ommon/intel_drm/intel_be_device.c
ommon/intel_drm/intel_be_device.h
ommon/intel_drm/ws_dri_bufmgr.c
ommon/intel_drm/ws_dri_bufmgr.h
ommon/intel_drm/ws_dri_bufpool.h
ommon/intel_drm/ws_dri_drmpool.c
ommon/intel_drm/ws_dri_fencemgr.c
ommon/intel_drm/ws_dri_fencemgr.h
ommon/intel_drm/ws_dri_mallocpool.c
ommon/intel_drm/ws_dri_slabpool.c
ri/Makefile
ri/Makefile.template
ri/SConscript
ri/intel/Makefile
ri/intel/SConscript
ri/intel/intel_batchbuffer.h
ri/intel/intel_context.c
ri/intel/intel_context.h
ri/intel/intel_lock.c
ri/intel/intel_reg.h
ri/intel/intel_screen.c
ri/intel/intel_screen.h
ri/intel/intel_swapbuffers.c
ri/intel/intel_swapbuffers.h
ri/intel/intel_winsys_softpipe.c
ri/intel/intel_winsys_softpipe.h
ri/intel/server/i830_common.h
ri/intel/server/i830_dri.h
rm/Makefile
rm/Makefile.template
rm/SConscript
rm/intel/Makefile
rm/intel/common/Makefile
rm/intel/common/Makefile.template
rm/intel/common/glthread.h
rm/intel/common/intel_be_batchbuffer.c
rm/intel/common/intel_be_batchbuffer.h
rm/intel/common/intel_be_context.c
rm/intel/common/intel_be_context.h
rm/intel/common/intel_be_device.c
rm/intel/common/intel_be_device.h
rm/intel/common/ws_dri_bufmgr.c
rm/intel/common/ws_dri_bufmgr.h
rm/intel/common/ws_dri_bufpool.h
rm/intel/common/ws_dri_drmpool.c
rm/intel/common/ws_dri_fencemgr.c
rm/intel/common/ws_dri_fencemgr.h
rm/intel/common/ws_dri_mallocpool.c
rm/intel/common/ws_dri_slabpool.c
rm/intel/dri/Makefile
rm/intel/dri/SConscript
rm/intel/dri/intel_batchbuffer.h
rm/intel/dri/intel_context.c
rm/intel/dri/intel_context.h
rm/intel/dri/intel_lock.c
rm/intel/dri/intel_reg.h
rm/intel/dri/intel_screen.c
rm/intel/dri/intel_screen.h
rm/intel/dri/intel_swapbuffers.c
rm/intel/dri/intel_swapbuffers.h
rm/intel/dri/intel_winsys_softpipe.c
rm/intel/dri/intel_winsys_softpipe.h
rm/intel/dri/server/i830_common.h
rm/intel/dri/server/i830_dri.h
rm/intel/egl/Makefile
rm/intel/egl/SConscript
rm/intel/egl/intel_batchbuffer.h
rm/intel/egl/intel_context.c
rm/intel/egl/intel_context.h
rm/intel/egl/intel_device.c
rm/intel/egl/intel_device.h
rm/intel/egl/intel_egl.c
rm/intel/egl/intel_egl.h
rm/intel/egl/intel_reg.h
rm/intel/egl/intel_swapbuffers.c
gl_drm/Makefile
gl_drm/Makefile.template
gl_drm/intel/Makefile
gl_drm/intel/SConscript
gl_drm/intel/intel_batchbuffer.h
gl_drm/intel/intel_context.c
gl_drm/intel/intel_context.h
gl_drm/intel/intel_device.c
gl_drm/intel/intel_device.h
gl_drm/intel/intel_egl.c
gl_drm/intel/intel_egl.h
gl_drm/intel/intel_reg.h
gl_drm/intel/intel_swapbuffers.c
di/wmesa.c
2037b1381c129c74ba87a092484258608583d34e 17-Aug-2008 Alan Hourihane <alanh@tungstengraphics.com> rather than use CRTC 1 (aka LVDS), try and setup all connectors/encoders
and get the same output on all.
gl_drm/intel/intel_egl.c
4b1b5ca9bd4d861ac8654c510f12b52a1a646ec4 15-Aug-2008 José Fonseca <jrfonseca@tungstengraphics.com> xlib: Kill xmesa_surface.

A winsys cannot expect that the surfaces passed display_surface are the
surfaces it created, as surface are now in generate texture views created
by pipe_screen. Indeed, the fact it was working so far was mere luck.

This fixes a weird tiled output when using the trace pipe driver.

Winsys' surfaces should die.
lib/xm_winsys.c
969ff9e9bf3dfae08d087bbc47ce43f17d107bfc 14-Aug-2008 José Fonseca <jrfonseca@tungstengraphics.com> xlib: Use trace usage.
lib/xm_api.c
lib/xm_winsys.c
56f5c0c001c476b813c94d071ac880fbe8d9768b 13-Aug-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'origin/gallium-0.1' into nouveau-gallium-0.1
cf16285d1bcb9f172a930f9d4f3402e379b53c33 07-Aug-2008 José Fonseca <jrfonseca@tungstengraphics.com> gdi: Remove CVS keyword.
di/wgl.c
f56eda6a85912dee9eef9099f6023c6bab05a41a 11-Aug-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
6c7aff209ca3b310008dd345836ebc020d2db004 09-Aug-2008 José Fonseca <jrfonseca@tungstengraphics.com> trace: Trace pipe_winsys calls.
lib/xm_winsys.c
c1c4ff28f0af0b14ae64eb01ef1d087b987af2c1 07-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: use PIPE_FORMAT_X8Z24_UNORM for 24-bit Z but no stencil
lib/xm_api.c
18fb8f148679ddddc5a781014d36a51afc304727 06-Aug-2008 José Fonseca <jrfonseca@tungstengraphics.com> xlib: Integrate with the trace pipe driver.
lib/SConscript
lib/xm_winsys.c
a17e6c046cd990f2ed4d0dfe9ed0a59bccd9aade 26-Jul-2008 Younes Manton <younes.m@gmail.com> g3dvl: Recursively build dependencies.

Run `make` in src/libXvMC and everything should be built for Nouveau.
Run `make DRIVER=softpipe` in src/libXvMC for SoftPipe.
3dvl/nouveau/Makefile
9e445d3e6374c2a9b163f1262ea5a1047e596cae 26-Jul-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
818cd9dca2861dfb9d8f2d36ff141c55472df2ba 23-Jul-2008 Jakob Bornecrantz <jakob@aurora.(none)> i915: intel_flush_frontbuffer does work
ri/intel/intel_screen.c
b4d198e47704f3b79c5a61877846172ae9d4b4c0 23-Jul-2008 Younes Manton <younes.m@gmail.com> g3dvl: Minor fixes.
3dvl/nouveau/nouveau_screen.c
0c25ac52425e6d6eb037b99ab90f41b47e3f4491 23-Jul-2008 Younes Manton <younes.m@gmail.com> g3dvl: Add Nouveau winsys, libdriclient.

Nouveau winsys is based on Mesa's Nouveau winsys and soft-links to most of
it. The 'nouveau_context' and 'nouveau_screen' code contains most of the
changes, 'nouveau_winsys_pipe', 'nouveau_swapbuffers' and 'nouveau_lock'
contain some minor changes. The driclient library contains the DRI
userland stuff, most of which was based on Mesa's DRI code.
3dvl/nouveau/Makefile
3dvl/nouveau/nouveau_bo.c
3dvl/nouveau/nouveau_channel.c
3dvl/nouveau/nouveau_context.c
3dvl/nouveau/nouveau_context.h
3dvl/nouveau/nouveau_device.c
3dvl/nouveau/nouveau_dma.c
3dvl/nouveau/nouveau_dma.h
3dvl/nouveau/nouveau_dri.h
3dvl/nouveau/nouveau_drmif.h
3dvl/nouveau/nouveau_fence.c
3dvl/nouveau/nouveau_grobj.c
3dvl/nouveau/nouveau_local.h
3dvl/nouveau/nouveau_lock.c
3dvl/nouveau/nouveau_notifier.c
3dvl/nouveau/nouveau_pushbuf.c
3dvl/nouveau/nouveau_resource.c
3dvl/nouveau/nouveau_screen.c
3dvl/nouveau/nouveau_screen.h
3dvl/nouveau/nouveau_swapbuffers.c
3dvl/nouveau/nouveau_swapbuffers.h
3dvl/nouveau/nouveau_winsys.c
3dvl/nouveau/nouveau_winsys_pipe.c
3dvl/nouveau/nouveau_winsys_pipe.h
3dvl/nouveau/nouveau_winsys_softpipe.c
3dvl/nouveau/nv04_surface.c
3dvl/nouveau/nv50_surface.c
3dvl/vl_winsys.h
3dvl/xsp_winsys.c
3dvl/xsp_winsys.h
c243573fafe8e83d4964535b201c499164d7c172 19-Jul-2008 Younes Manton <younes.m@gmail.com> g3dvl: Fix some memory leaks in the winsys.
3dvl/xsp_winsys.c
3dvl/xsp_winsys.h
8878d8d4b35c9550632f5684bdc97f3958bf43c5 10-Jul-2008 Younes Manton <younes.m@gmail.com> g3dvl: Minor SP winsys cleanup.
3dvl/xsp_winsys.c
16c2267d55fb14d0ffcb676540345a14ecc0f323 13-Jul-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Ops should not have pushed that

This reverts commit 930a863c4f6f11d0fd5cf396ef76054d52c69b9f.
ri/intel/intel_context.h
ri/intel/intel_swapbuffers.c
ri/intel/intel_swapbuffers.h
d68a3ebf0e7e853cf9680ddbb095fffe7c0fb1f9 13-Jul-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
930a863c4f6f11d0fd5cf396ef76054d52c69b9f 10-Jul-2008 Jakob Bornecrantz <jakob@aurora.(none)> i915: WIP swap rework
ri/intel/intel_context.h
ri/intel/intel_swapbuffers.c
ri/intel/intel_swapbuffers.h
6e938e4f82755c20472532907cc47c2d501aaee2 11-Jul-2008 Jakob Bornecrantz <jakob@aurora.(none)> gallium: Make dri drivers create a egl_name_dri.so if supported
ri/Makefile.template
ri/intel/Makefile
5180a668a7da627a40e024a2ed765458d5bac43e 11-Jul-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: winsys surface funcs deprecated, remove them
ri/nouveau/nouveau_winsys_pipe.c
f5cdc657b244ec7840cff1f36892f105b4aa2ef2 10-Jul-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: added EGL_OPENVG_API case (allow all APIs)
gl_xlib/egl_xlib.c
19171ab1d30f14ac0d39894125a3d53a91ca5b89 10-Jul-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
48b8a32c6dcd259046958b187927ac584b1a564a 09-Jul-2008 Zack Rusin <zack@tungstengraphics.com> egl: plug a small memleak
gl_xlib/egl_xlib.c
2e7e1837512c1959a97f51903a770cf182fc9820 08-Jul-2008 Jakob Bornecrantz <jakob@aurora.(none)> i915: Takedown EGL screen
gl_drm/intel/intel_egl.c
1257bb9b130c9487a32e422a8ce8ddba2f14a568 08-Jul-2008 Jakob Bornecrantz <jakob@aurora.(none)> i915: Use deviceID in EGL device create
gl_drm/intel/intel_device.c
0c6efeb02beba32a35dda7c5d5a3086ca2d8cbc4 08-Jul-2008 Jakob Bornecrantz <jakob@aurora.(none)> i915: Complete the screen -> device renaming
gl_drm/intel/intel_context.c
gl_drm/intel/intel_context.h
gl_drm/intel/intel_device.c
gl_drm/intel/intel_swapbuffers.c
b13b1210c0174e4fd315bad3e6e18b6cbeeb1518 08-Jul-2008 Jakob Bornecrantz <jakob@aurora.(none)> i915: Renamed intel_screen to intel_device

The renameing makes more sense, why because:
In egl you have a display/driver/device as the
basis, and you have screens as outputs.
gl_drm/intel/Makefile
gl_drm/intel/intel_context.c
gl_drm/intel/intel_context.h
gl_drm/intel/intel_device.c
gl_drm/intel/intel_device.h
gl_drm/intel/intel_screen.c
gl_drm/intel/intel_screen.h
gl_drm/intel/intel_swapbuffers.c
06d87b44cffef9e335b9a0e70fd2aec61fcd171b 07-Jul-2008 Ben Skeggs <skeggsb@gmail.com> nv50: make use of nouveau drm 0.0.11 to get 3d going
ri/nouveau/nouveau_bo.c
ri/nouveau/nouveau_drmif.h
ri/nouveau/nouveau_screen.c
ri/nouveau/nouveau_winsys_pipe.c
ri/nouveau/nv50_surface.c
fec4e427f8df3a6f257b2247dc760430b3dfc258 08-Jul-2008 Stephane Marchesin <marchesin@icps.u-strasbg.fr> nv04: Hook the lib into the build.
ri/nouveau/Makefile
3596339d31d05b7d5120290a7b866485c395b5f2 07-Jul-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Fix wrong pointer to cleanup
gl_drm/intel/intel_egl.c
7420bc05a862db09b8d5f34a7760fa19b578b4d0 07-Jul-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Fix EGL make current
gl_drm/intel/intel_egl.c
88b806a0697efa9f7fde6aa59530675908f7294d 07-Jul-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: More cleanup of display
gl_drm/intel/intel_egl.c
687c8d8941bb62fdb4fbdbb0ff5f359851c290b5 07-Jul-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Fetch the real deviceID for EGL
gl_drm/intel/intel_egl.c
gl_drm/intel/intel_egl.h
gl_drm/intel/intel_screen.c
1315f720ba80596b866103a7e153bfc2f2bd267b 07-Jul-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Destruction of surface, context and device in EGL
gl_drm/intel/intel_context.c
gl_drm/intel/intel_egl.c
gl_drm/intel/intel_egl.h
gl_drm/intel/intel_screen.c
b30fb6d54019c84174379a773121438ba943557a 05-Jul-2008 Jakob Bornecrantz <jakob@aurora.(none)> i915: Fix EGL version and name
gl_drm/intel/intel_egl.c
c6d6a57424b77ff7de611333046c054d1948ae7a 05-Jul-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Added a intel be function to wrap a drm bo handle
ommon/intel_drm/intel_be_device.c
ommon/intel_drm/intel_be_device.h
ri/intel/intel_screen.c
74db8e9b3f354b5afa30f7cd52a511504693a3c8 05-Jul-2008 Jakob Bornecrantz <jakob@aurora.(none)> i915: Fix haveDepth and haveStencil for visual in EGL
gl_drm/intel/intel_egl.c
f6e8963bb152166c28dae896a0c8c83ce554f987 04-Jul-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Clean up intel_egl.c a bit
gl_drm/intel/intel_egl.c
77f8167d75d0016c76812fc147c06072e5729965 04-Jul-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into gallium-0.1
d94c7063ec9e87dbefea386606f0f21cdbd1d6f3 03-Jul-2008 Jakob Bornecrantz <jakob@aurora.(none)> i915: EGL almost works again
gl_drm/intel/intel_context.c
gl_drm/intel/intel_context.h
gl_drm/intel/intel_egl.c
gl_drm/intel/intel_screen.c
gl_drm/intel/intel_screen.h
gl_drm/intel/intel_swapbuffers.c
e99ce4af8a6a6f9b257bfceb0f9133a29f06f2c7 01-Jul-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Last reference to surface -> pitch
ri/intel/intel_swapbuffers.c
9833aec6cbd113d24277aa5da8625c1427d831ca 01-Jul-2008 Younes Manton <younes.m@gmail.com> g3dvl: Use block and stride instead of cpp and pitch.
3dvl/xsp_winsys.c
c6ddcc10e31f26d17c1c8181013268766aca9ac6 29-Jun-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: oops, bump the drm patchlevel back down again
ri/nouveau/nouveau_screen.c
bf94027fdde51aed476e9bfdd4326aa9040440b0 29-Jun-2008 Ben Skeggs <skeggsb@gmail.com> nv50: fixes after rebase + commits note on the code that was just pushed.

OK, seems a lot of people have been getting the idea that nouveau is
dying lately - I decided to commit some of the work I've been doing lately
to prove them wrong :) Progress on my side is slow due to lack of time
mainly, but I'm still around.

Firstly, don't even bother trying to use gallium on G8x/G9x yet, it won't
work. I've deliberately left all the necessary winsys changes out of the
commits for a very good reason - I don't know what we're going to need from
the DRM exactly yet and don't want to be continually breaking interfaces
as I discover additional requirements. On my side, I think I've gone
through about 3 different DRM interface changes, and have just discovered
that I may need more yet. It'd be very annoying for everyone who uses
nouveau to keep things in sync. Once I've got it sorted - I'll commit a
lot of cool stuff. Stay tuned.

Also, don't look at the shader code.. it's horribly nasty and full of hacks,
I used it as an opportunity to learn G8x GPU programs at the same time.
New semi-decent code is in works, and will follow at some point. :)
ri/nouveau/nouveau_screen.c
b6478021d572d9ec30212d6e6992496ee4cf347d 29-Jun-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: adapt to cpp->pf_block changes
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_screen.c
ri/nouveau/nv04_surface.c
ri/nouveau/nv50_surface.c
01de2293d5449ab6ca1d99b007c9ea4f0037fef5 28-Jun-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
d4b100a6a1f13ceaedf603bdce5ce95c2ce7e12c 29-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: set config's EGL_CONFORMANT, EGL_RENDERABLE_TYPE, EGL_SURFACE_TYPE attributes
gl_xlib/egl_xlib.c
a7499b7fc753653fd24a91b1ab6a5b68e479193b 27-Jun-2008 Zack Rusin <zack@tungstengraphics.com> egl: helps if the stride is right
gl_xlib/sw_winsys.c
838b0d6e480c9ae90abb067c1ba4aee413df6fd9 27-Jun-2008 Zack Rusin <zack@tungstengraphics.com> eh, we need a buildbot... fix the compilation
gl_xlib/egl_xlib.c
gl_xlib/sw_winsys.c
429a08384c2ea66d446e46beb28e33ee3b764d52 27-Jun-2008 Roland Scheidegger <sroland@tungstengraphics.com> gallium: handle msaa
ri/intel/intel_screen.c
a1fb565ea7ac9f86beb4deece6a24d79e7b7860e 26-Jun-2008 Robert Ellison <papillo@tungstengraphics.com> egl: These changes allow an eglBindAPI(EGL_OPENGL_ES_API) to succeed, and to work correctly with GLES1 and GLES2.

- egl_xdri.c just sets the EGL_OPENGL_ES_BIT as well as the
EGL_OPENGL_BIT in ClientAPIsMask

- eglconfig.c allows the renderable type to include EGL_OPENGL_ES2_BIT
as well as EGL_OPENGL_ES_BIT.

- egl_xlib.c sets the EGL_NATIVE_RENDERABLE attribute to EGL_FALSE for
all softpipe configurations. (Otherwise, an eglChooseConfig() that
looks for particular values of EGL_NATIVE_RENDERABLE will fail.)
gl_xlib/egl_xlib.c
5b9d823545ec588ea97cc599a278626b99430d81 27-Jun-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Fix the last of the stride/pitch changes
ri/intel/intel_screen.c
ri/intel/intel_swapbuffers.c
4f45dbc6aa9b55d96cf6aeb32117e117e333b4a8 27-Jun-2008 José Fonseca <jrfonseca@tungstengraphics.com> gdi: Update for cpp removal.
di/wmesa.c
4ddd65967915ca4846f2831bc676c878a29dae4a 27-Jun-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Drop pipe_texture->cpp and pipe_surface->cpp.

The chars-per-pixel concept falls apart with compressed and yuv images,
where more than one pixel are coded in a single data block.
lib/brw_aub.c
lib/xm_winsys.c
lib/xm_winsys_aub.c
6106db4c5da6fc5ae9ef157c939ce0834cdc5b92 27-Jun-2008 José Fonseca <jrfonseca@tungstengraphics.com> scons: Fix i965/xlib build.
lib/SConscript
b40ed6a0b54d1ba74799aeb3f529c4d298625aa1 24-Jun-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
e95697758eda9b92a01a504bce823acd5201b48d 24-Jun-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Create a texture and surface for shared frontbuffer
ri/intel/intel_screen.c
ri/intel/intel_screen.h
2d11411b19f725591e096b8a75dec94831d7bce7 24-Jun-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Moved screen creation to intel_be_device
ommon/intel_drm/intel_be_device.c
ommon/intel_drm/intel_be_device.h
ri/intel/Makefile
ri/intel/intel_context.c
ri/intel/intel_screen.c
4802a687a7050b7b5dd3683ae43fd4f26c4a718e 24-Jun-2008 José Fonseca <jrfonseca@tungstengraphics.com> dri/intel: Use standard integer types.
ri/intel/intel_screen.c
b750b5326df0a067f9baf237bee50d31ca69729d 24-Jun-2008 José Fonseca <jrfonseca@tungstengraphics.com> gdi: Update for surface_alloc_storage changes.
di/wmesa.c
aa3ab377e6e2e5811cdd704d87c3e24acb5eff72 22-Jun-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

Conflicts:

configs/default
78791d1065c93694a105d4c2cdaee7678a69213a 20-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: added cpp assertions/sanity checks
gl_xlib/sw_winsys.c
a87e717d0d302bc376eff29d17d35f1314ff1a57 20-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: added null ptr checks
gl_xlib/egl_xlib.c
064001dbe7fd6cbb6bd5c91bdf7f0831b9c351a9 20-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: use dlsym() to try to identify APIs
gl_xlib/egl_xlib.c
0cf79316d076d598f143b68f61308df9ddaf5e9a 18-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: omit libmesa.a glapi.c from library
gl_xlib/Makefile
1496bba42904cbc9b827816b7924fa930661c22a 17-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: call st_get_proc_address()
gl_xlib/egl_xlib.c
5805a9e32881831f320bcd1a95fbfacf17aef5d5 17-Jun-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Made region pool a slabpool
ommon/intel_drm/intel_be_device.c
6f7ed99b306990f284f9d57c0b66efaa7f2277e1 12-Jun-2008 Alan Hourihane <alanh@tungstengraphics.com> revert the DRI2 commits
ri/intel/intel_context.c
ri/intel/intel_lock.c
ri/intel/intel_screen.c
ri/intel/intel_screen.h
ri/intel/intel_swapbuffers.c
d45e99060d531d3a3889bb59fb55875bde05811f 11-Jun-2008 Alan Hourihane <alanh@tungstengraphics.com> fix card_extensions
ri/intel/intel_context.c
ri/intel/intel_screen.h
f851ba705ae878f62149afa377c755286cf53c85 11-Jun-2008 Alan Hourihane <alanh@tungstengraphics.com> fix legacy DRI
ri/intel/intel_screen.c
1bcb817167773d6a148dd4b2cd63777d0f072c08 11-Jun-2008 Alan Hourihane <alanh@tungstengraphics.com> Hook gallium i915 up to DRI2
ri/intel/intel_context.c
ri/intel/intel_lock.c
ri/intel/intel_screen.c
ri/intel/intel_screen.h
ri/intel/intel_swapbuffers.c
4566b006f1a6bbdb96871e511e10e16f18bad23e 10-Jun-2008 Alan Hourihane <alanh@tungstengraphics.com> Bring in DRI2 changes
ri/intel/intel_context.c
ri/intel/intel_screen.c
6420a62cf0f5812708a4c649691ba62c573eaced 09-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: s/softpipe_egl.so/egl_softpipe.so/
gl_xlib/Makefile
d785a0c8b2ff45d07a8d2992d089eb96c04658db 09-Jun-2008 Younes Manton <younes.m@gmail.com> Merge branch 'gallium-0.1' of ssh://ymanton@git.freedesktop.org/git/nouveau/mesa into gallium-0.1
c11a7ec821d41b91a3825c5abfb4687c98b5bf98 08-Jun-2008 Younes Manton <younes.m@gmail.com> Initial commit for g3dvl.

Initial commit for g3dvl, contains support for basic XvMC features.

- Context, surface, block, macroblock creation and deletion
- Surface rendering
- Frame pictures
- Frame based motion compensation
- Intra-coded macroblocks
- Predicted macroblocks
- Bi-directionally predicted macroblocks
- Surface display
- Color conversion
- Scaling
3dvl/xsp_winsys.c
3dvl/xsp_winsys.h
edea59e8e5a3ef4c6afdcb4f1d32961466be508b 07-Jun-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: kill off surface_alloc_storage()
ri/nouveau/nouveau_winsys_pipe.c
ab102d5a9f1db0f76eabbf22cd05b08ff7bb8448 06-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: clean-ups
gl_xlib/Makefile
f0fdf0c23a16b9e0338eb945c6f88c7a57a9fbd0 06-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: additional comment
lib/Makefile
0a84d327de8258104b98b176c0eaf0fb6712a982 06-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: open X display if needed
gl_xlib/egl_xlib.c
1a2c445baf9f493b1590d715314a1c240e4c9ef7 06-Jun-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Moved EGL_i915 to the common code
gl_drm/Makefile.template
gl_drm/intel/Makefile
gl_drm/intel/intel_batchbuffer.c
gl_drm/intel/intel_batchbuffer.h
gl_drm/intel/intel_context.c
gl_drm/intel/intel_context.h
gl_drm/intel/intel_egl.c
gl_drm/intel/intel_lock.c
gl_drm/intel/intel_reg.h
gl_drm/intel/intel_screen.c
gl_drm/intel/intel_screen.h
gl_drm/intel/intel_swapbuffers.c
gl_drm/intel/intel_swapbuffers.h
gl_drm/intel/intel_winsys.h
gl_drm/intel/intel_winsys_i915.c
gl_drm/intel/intel_winsys_pipe.c
gl_drm/intel/intel_winsys_softpipe.c
gl_drm/intel/ws_dri_bufmgr.c
gl_drm/intel/ws_dri_bufmgr.h
gl_drm/intel/ws_dri_bufpool.h
gl_drm/intel/ws_dri_drmpool.c
gl_drm/intel/ws_dri_fencemgr.c
gl_drm/intel/ws_dri_fencemgr.h
gl_drm/intel/ws_dri_mallocpool.c
gl_drm/intel/ws_dri_slabpool.c
adbdabb85ae322d5c80cadcee931e36d5c688d98 06-Jun-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Moved pipe_buffer and i915_winsys functions to a common folder
ommon/Makefile
ommon/Makefile.template
ommon/intel_drm/Makefile
ommon/intel_drm/glthread.h
ommon/intel_drm/intel_be_batchbuffer.c
ommon/intel_drm/intel_be_batchbuffer.h
ommon/intel_drm/intel_be_context.c
ommon/intel_drm/intel_be_context.h
ommon/intel_drm/intel_be_device.c
ommon/intel_drm/intel_be_device.h
ommon/intel_drm/ws_dri_bufmgr.c
ommon/intel_drm/ws_dri_bufmgr.h
ommon/intel_drm/ws_dri_bufpool.h
ommon/intel_drm/ws_dri_drmpool.c
ommon/intel_drm/ws_dri_fencemgr.c
ommon/intel_drm/ws_dri_fencemgr.h
ommon/intel_drm/ws_dri_mallocpool.c
ommon/intel_drm/ws_dri_slabpool.c
ri/Makefile.template
ri/intel/Makefile
ri/intel/intel_batchbuffer.c
ri/intel/intel_batchbuffer.h
ri/intel/intel_context.c
ri/intel/intel_context.h
ri/intel/intel_lock.c
ri/intel/intel_reg.h
ri/intel/intel_screen.c
ri/intel/intel_screen.h
ri/intel/intel_swapbuffers.c
ri/intel/intel_swapbuffers.h
ri/intel/intel_winsys.h
ri/intel/intel_winsys_i915.c
ri/intel/intel_winsys_pipe.c
ri/intel/intel_winsys_softpipe.c
ri/intel/intel_winsys_softpipe.h
ri/intel/server/i830_common.h
ri/intel/server/i830_dri.h
ri/intel/server/intel.h
ri/intel/server/intel_dri.c
ri/intel/ws_dri_bufmgr.c
ri/intel/ws_dri_bufmgr.h
ri/intel/ws_dri_bufpool.h
ri/intel/ws_dri_drmpool.c
ri/intel/ws_dri_fencemgr.c
ri/intel/ws_dri_fencemgr.h
ri/intel/ws_dri_mallocpool.c
ri/intel/ws_dri_slabpool.c
af31e5d42982088821bdf8deaeb33d45f01fd004 04-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: do proper setup/init of EGL configs
gl_xlib/egl_xlib.c
4ebfc3c8ffccadaed98c4e032b7691eaf299b0bc 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: prototype some multi-API code
gl_xlib/egl_xlib.c
afd635a95056abc0909ebd1503131660d6e78cf6 03-Jun-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Fix compile on linux-dri-debug
ri/intel/intel_batchbuffer.h
7cc23a9eaebc788ae34f6e06c6227524d08a7693 02-Jun-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Implement and use the reworked batchbuffer code
ri/intel/intel_batchbuffer.c
ri/intel/intel_batchbuffer.h
ri/intel/intel_winsys_i915.c
5a67df6d7cc8c74bfb71a8f19b8f6fdfb525091b 02-Jun-2008 José Fonseca <jrfonseca@tungstengraphics.com> scons: Integrate gdi winsys.

Conditional build of the winsys based on the platform.
Conscript
ri/SConscript
ri/intel/SConscript
lib/SConscript
7c22bb383a8fcccf71d7916ce91ae6cb17ac1e3c 02-Jun-2008 José Fonseca <jrfonseca@tungstengraphics.com> gdi: Port of the gdi mesa driver to gallium (Alan Hourihane).
di/SConscript
di/colors.h
di/opengl32.def
di/wgl.c
di/wmesa.c
di/wmesadef.h
3c4162ed2afe4da252d2a32c14e486515935ba39 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: eglGetProcAddress() stub
gl_xlib/egl_xlib.c
ba7aeb8b34c2e310b6ba0d3dbfdc68b0d6ab82c8 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: specify client API by bit flag, not string
gl_xlib/egl_xlib.c
52676207e338b4c2b4953747521921ab79d70f06 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: added eglDestroySurface function
gl_xlib/egl_xlib.c
64d0eb111d5a19bc251dfc59884c945cf93c6bb0 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: fix-up window resizes
gl_xlib/egl_xlib.c
750782a327a1d295f4ed00a590c362f32912d597 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: assorted fixes. The code works now.
gl_xlib/egl_xlib.c
057ee55720faee0e1269937d70bbafe6df5c57e6 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: added surface_alloc_storage()
gl_xlib/sw_winsys.c
7b0a551c4cebc44cc06face712eb9659ccdebcc9 29-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Made batch buffer size much larger
ri/intel/intel_batchbuffer.c
ri/intel/intel_screen.c
ri/intel/intel_screen.h
9760ab234951d18c9606e962c6e3ac1f56fc6385 30-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Fix extentions not being set
ri/intel/intel_context.c
cf13cf245e91669eb916a6d51676b0d66ff62ead 30-May-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: fix warning
ri/nouveau/nouveau_context.c
8b31d5fc8a5425b01adf80f4873cb816925ee0d1 30-May-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: flush pending pushbuf if buffer on validate list at map/del
ri/nouveau/nouveau_bo.c
524408f1a5b39c8c25a277e41e4eee54fd726b84 29-May-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: rework buffer validation a bit
ri/nouveau/nouveau_drmif.h
ri/nouveau/nouveau_pushbuf.c
bee79eb9b9ef649585dc507dc756b1e79eb00d2c 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: new EGL/gallium/softpipe/xlib winsys

Checkpoint commit. Most required code is in place, and compiles, but
totally untested.
gl_xlib/Makefile
gl_xlib/egl_xlib.c
gl_xlib/sw_winsys.c
gl_xlib/sw_winsys.h
d0c0c0d1e67f92df8866e6218b868b3de954a5e1 29-May-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: oops, more tex-surfaces fallout
ri/nouveau/nouveau_winsys_pipe.c
643cc9387d03b5002a4a1e1a95f0dbcfff83b2d2 29-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Cleaned up intel_winsys_pipe.c
ri/intel/intel_winsys_pipe.c
056bea86b013858832a6ab390fe6efe310a7bc8f 29-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Deprecated pipe_winsys buffer functions
ri/intel/intel_winsys_pipe.c
79b67d8408d1ba5b2232791ae35e731a5953b52d 29-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Remove last usage of surface_alloc_storage
ri/intel/intel_winsys_pipe.c
837601af522b9d1e687040015672769392884fa1 29-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Ops how did that get there
ri/intel/intel_winsys_pipe.c
0cd75a4c99ec63b514b6fbb53152858fa20f53ec 29-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Get up to date with the latest EGL changes
gl_drm/intel/intel_egl.c
2c004a4bece706c590f5ab03432d2aa65d6d0263 28-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: DriConfigOptions started complaining on this line
ri/intel/intel_screen.c
ce56bcb640072496809d2aefede5a32fe9256ace 27-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Prepare for tiled private front and back buffers
ri/intel/intel_winsys_pipe.c
cb5e05d99c40d4f7ab1ecbb42a6390caf3966ba4 27-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Made vertex submission eaven faster
ri/intel/intel_winsys_pipe.c
08130512b9961da76a6385403d56387125df5e8c 27-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Made vbuf work
ri/intel/intel_winsys_pipe.c
938d9d596324e411fde5312f2bb65b444c502c37 28-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> Merge branch 'gallium-vertex-linear' into gallium-0.1

Conflicts:

src/gallium/auxiliary/draw/draw_pt_varray.c
5d90f97f48f8ba231d52bb1a4758dd37f81ec8d6 28-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Don't segfault on buffer allocation error
gl_drm/intel/intel_egl.c
ae3795a968f07fc150d4c34aa1a9cd067f33b914 28-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Make EGL_i915 compile
gl_drm/intel/intel_egl.c
c2bd95abf60a8b6ea83dce3fc67603b36f937484 28-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Make EGL_i915 segfault if modesetting is not working
gl_drm/intel/intel_egl.c
0f9635d9d522ea712724415599ceb44d53e67819 26-May-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
77ce568ff704e6cdcfaa557965c894752d19e462 26-May-2008 José Fonseca <jrfonseca@tungstengraphics.com> Remove CVS keywords.
ri/intel/server/i830_common.h
ri/intel/server/i830_dri.h
e3ddafd1d32192f4638d4930627ad66624325561 26-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> Merge branch 'gallium-tex-surface' into gallium-0.1

Conflicts:

src/gallium/include/pipe/p_util.h
8f67f98959261d193cb5f3db274b55fb24e2bb1e 25-May-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: missed PCI case
ri/nouveau/nouveau_bo.c
92120851947ad4a47d2150a7cf3f8dc5fdde396c 25-May-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
7fbb61eedd4b07f07007a172cea227d5c363b908 23-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Revert accidental change
ri/intel/intel_winsys_pipe.c
5bf6ffb0b2be34ffb000e9700861b177afa9df97 23-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Improved vertex buffer performance
ri/intel/intel_winsys_pipe.c
a3dbd412df99c7d19b1f81b3b9ec7d5c8a09d069 23-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> Merge branch 'gallium-i915-current' into gallium-0.1
d607a02da929cd192a3b0896c38dbb468ffa5b0d 23-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Made EGL report the actual modes on the screen/output pair
gl_drm/intel/intel_egl.c
01cc1eebe92441ec33e951b95f0a5b52721741f0 23-May-2008 Thomas Hellstrom <thomas@tungstengraphics.com> i915: Make batchbuffers larger.
ri/intel/intel_batchbuffer.c
ri/intel/intel_screen.c
45fd9ec462bf338b286d3b757c3e67d54f663dad 22-May-2008 Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> i915: Use the malloc pool for constant buffers since they don't go to the GPU directly.
ri/intel/intel_winsys.h
ri/intel/intel_winsys_pipe.c
d07fbdd93941d5027a1aa7f0726140c6648a1e27 14-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Added EGL winsys
gl_drm/Makefile
gl_drm/Makefile.template
gl_drm/intel/Makefile
gl_drm/intel/SConscript
gl_drm/intel/intel_batchbuffer.c
gl_drm/intel/intel_batchbuffer.h
gl_drm/intel/intel_context.c
gl_drm/intel/intel_context.h
gl_drm/intel/intel_egl.c
gl_drm/intel/intel_egl.h
gl_drm/intel/intel_lock.c
gl_drm/intel/intel_reg.h
gl_drm/intel/intel_screen.c
gl_drm/intel/intel_screen.h
gl_drm/intel/intel_swapbuffers.c
gl_drm/intel/intel_swapbuffers.h
gl_drm/intel/intel_winsys.h
gl_drm/intel/intel_winsys_i915.c
gl_drm/intel/intel_winsys_pipe.c
gl_drm/intel/intel_winsys_softpipe.c
gl_drm/intel/ws_dri_bufmgr.c
gl_drm/intel/ws_dri_bufmgr.h
gl_drm/intel/ws_dri_bufpool.h
gl_drm/intel/ws_dri_drmpool.c
gl_drm/intel/ws_dri_fencemgr.c
gl_drm/intel/ws_dri_fencemgr.h
gl_drm/intel/ws_dri_mallocpool.c
gl_drm/intel/ws_dri_slabpool.c
bc1696862c9ffa8d8f2c11d3120310e82f2e9327 14-May-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
666ac923f016b1b231c5a8847cbe084321f697ca 13-May-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: remove winsys-related stuff from nouveau_local.h
ri/nouveau/nouveau_local.h
ri/nouveau/nv04_surface.c
ri/nouveau/nv50_surface.c
1ef08564d2a201a422db772a6bb23d1129888304 12-May-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: remove chipset fields in all nv pipe driver context/screen structs.
ri/nouveau/nouveau_winsys.c
2f80d4d2a705835b272cf2274ea578fe5bbe1919 12-May-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: make nouveau_device.h part of public API
ri/nouveau/nouveau_context.h
ri/nouveau/nouveau_device.h
ri/nouveau/nouveau_drmif.h
ri/nouveau/nouveau_screen.c
ri/nouveau/nouveau_screen.h
ri/nouveau/nouveau_winsys_pipe.c
c962ad7cd5dbea12d13997b421a44b16af3c6662 12-May-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: create objnull during channel creation
ri/nouveau/nouveau_channel.c
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_context.h
ri/nouveau/nouveau_grobj.c
83e6df12ea31ef48d251fe7b38acd882145f8f14 12-May-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: chipset is a device property, remove from nv/nvc.
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_context.h
ri/nouveau/nouveau_device.c
ri/nouveau/nouveau_device.h
ri/nouveau/nouveau_winsys.c
ri/nouveau/nv04_surface.c
2258f6b437705860912be300e728efbde60e2140 12-May-2008 Keith Whitwell <keith@tungstengraphics.com> xlib: add failure paths for context creation
lib/xm_api.c
36e1bc865b421be8919ce7d26eb4ae593a885372 09-May-2008 Keith Whitwell <keith@tungstengraphics.com> Merge branch 'gallium-0.1' into gallium-tex-surfaces
fec1d215f623221cb52f22c8f10e5de99ebc9cc2 08-May-2008 Keith Whitwell <keith@tungstengraphics.com> xlib: more SP_NO_RAST support

For some resaon normal (non-display-buffer) buffers are being allocated
through Xshm... Bypass at least for SP_NO_RAST
lib/fakeglx.c
lib/xm_api.c
c7ad942c54c3892a98d248a15af817f256260e75 07-May-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Propagate tex_usage flags down to winsys.
ri/intel/intel_winsys_pipe.c
lib/xm_winsys.c
lib/xm_winsys_aub.c
09e6be9b5782870f1f225653687e0d3e7be2a5a9 06-May-2008 Keith Whitwell <keith@tungstengraphics.com> Merge commit 'origin/gallium-0.1' into gallium-tex-surfaces

Conflicts:

src/mesa/state_tracker/st_atom_sampler.c
src/mesa/state_tracker/st_cb_texture.c
33d9e213ee47aab32f662caf3e7c07c2697befbe 05-May-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
736f535b4f1c5e6912b5b2fe9415a3b44a678844 03-May-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: fix warnings
lib/xm_winsys.c
e9513bd403c0ba0b004d2414fda6736b38cecfd5 02-May-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: code movement (XSHM code)
lib/xm_winsys.c
8a5bf456dcb84b315152b87e33c8736248ad0a46 01-May-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: comments, clean-ups
lib/xm_winsys.c
c3a8a41faabed4c9b84a6fbaf7a86a089b8fcbba 02-May-2008 Keith Whitwell <keith@tungstengraphics.com> Merge branch 'gallium-0.1' into gallium-tex-surfaces
c1abd758c51247ebaf3d4808a77513d7814205cd 01-May-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: remove the unused softpipe_winsys code

The struct is still there though until all winsys layers are updated
lib/xm_winsys.c
c9ed86a96483063f3d6789ed16645a3dca77d726 01-May-2008 Keith Whitwell <keith@tungstengraphics.com> gallium: tex surface checkpoint
lib/xm_winsys.c
1e6191e0af2653aa69bd623e25d2e157662e560f 30-Apr-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
d0b2561c57763db196b45ab052a01a12fc37b06f 26-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: updated comment in xm_flush_frontbuffer()
lib/xm_winsys.c
0cca90cea1dbe1a76dbf9ac1985c3676ec460b0a 27-Apr-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
dddedd915afb58ab6b87492e850baeadc007fe47 24-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> xlib: only shortcircuit makecurrent if NO_RAST set, otherwise window size updates fail
lib/fakeglx.c
b0a58d526624485b98665b103fb5b507253b851b 23-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Real fix for weird fence leak. Thanks Thomas
ri/intel/intel_swapbuffers.c
ri/intel/ws_dri_slabpool.c
104ff59585ad1888c8cef5ad9de0e2fdb3f48c21 22-Apr-2008 Ben Skeggs <skeggsb@gmail.com> Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1
6b4798b9068b58a3c4581a268727ce01680d08cd 22-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Fixed weird fence leak when I915_VBUF=true
ri/intel/intel_swapbuffers.c
6a9f6625b38c3669769568d122958993f4a8d5b3 22-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> xlib: shortcircuit no-op makecurrent
lib/fakeglx.c
d07ed9216cc7033fecb5bce661bbaf79189bb391 22-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> xlib: implement SP_NO_RAST env var
lib/xm_winsys.c
f2ee51e7d9a9bde8fd7de29b382d11fe0d58226d 15-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Changed name to i915_dri.so
ri/intel/Makefile
276e177dfb644c60af6247598cda6c1c49dfea7b 15-Apr-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
ca750dd045893ca5a9e1c33bd31528ade7bb1009 14-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> Removed intel_ioctl it wasn't needed
ri/intel/intel_batchbuffer.c
ri/intel/intel_ioctl.c
ri/intel/intel_ioctl.h
5dcfc1f1b637aefbed631cc1265ce3808f2ff249 12-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> Fixed memory leak
ri/intel/intel_winsys_pipe.c
a52faa9325db178601811f4bdad6d9747de5f238 10-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: remove unneeded st->haveFramebufferSurfaces field.
lib/xm_api.c
bd56b21adf5eafebe6df90eac12f0f9eaa9e225f 08-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Added debug counter to bufmgr
ri/intel/ws_dri_bufmgr.c
1d43a8b25513866d67b5b16ae1945d6e9d95743d 08-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Fixed fence related problems
ri/intel/intel_batchbuffer.c
ri/intel/intel_winsys_i915.c
2dd6022e65972b0706011734b68da4e9177b05c3 08-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Fixed fence leak in intel_swapbuffers.c
ri/intel/intel_swapbuffers.c
caa5b1736dd4c4ba85966fa7710c52da406b1dce 08-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> Added fence counter to fence manager
ri/intel/ws_dri_fencemgr.c
4c0f72432393e324d608474d24d20ebb465cb2ca 08-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> Fixed user_buffer memory leak
ri/intel/intel_winsys_pipe.c
ri/intel/ws_dri_bufmgr.c
d5d93a31580cf58744b4d186a4ab8fac09743a33 07-Apr-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> i915: Pulled in changes from i915tex
ri/intel/Makefile
ri/intel/intel_batchbuffer.c
ri/intel/intel_batchbuffer.h
ri/intel/intel_batchpool.c
ri/intel/intel_batchpool.h
ri/intel/intel_context.c
ri/intel/intel_context.h
ri/intel/intel_ioctl.c
ri/intel/intel_ioctl.h
ri/intel/intel_screen.c
ri/intel/intel_screen.h
ri/intel/intel_swapbuffers.c
ri/intel/intel_winsys.h
ri/intel/intel_winsys_i915.c
ri/intel/intel_winsys_pipe.c
ri/intel/server/i830_common.h
ri/intel/ws_dri_bufmgr.c
ri/intel/ws_dri_bufmgr.h
ri/intel/ws_dri_bufpool.h
ri/intel/ws_dri_drmpool.c
ri/intel/ws_dri_fencemgr.c
ri/intel/ws_dri_fencemgr.h
ri/intel/ws_dri_mallocpool.c
ri/intel/ws_dri_slabpool.c
e902d9091c048531cf76b1d9d034fb865b1a0f6e 04-Apr-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
bc67533f29abe578e2306be2a24db392a0c62fc4 04-Apr-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: create swizzled surface + scaled image objects
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_context.h
ri/nouveau/nv04_surface.c
fbb6cc7842ec8a59b60018233275babc4deb6765 03-Apr-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: in some cases don't create the buffer in local mem initially.
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_context.h
ri/nouveau/nouveau_pushbuf.c
ri/nouveau/nouveau_winsys_pipe.c
333df9656a257507d5eb5a6a8e8f2d9fc7577f20 03-Apr-2008 Michel Dänzer <michel@tungstengraphics.com> gallium: Only build softpipe driver by default for xlib winsys with scons.
lib/SConscript
71d7aec2b3bb299f1dff7cdb2e8e96164976113a 01-Apr-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: winsys printf disappeared :)
ri/nouveau/nouveau_winsys_pipe.c
ea990867a8b0f59a85b01e7d3aa3ab53d61078d2 01-Apr-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
2df9941368c807fb677d3d95a5c1dfffe719c26b 01-Apr-2008 Michel Dänzer <michel@tungstengraphics.com> scons: Fix test for building dri/intel winsys.
Conscript
baab98a637d526871fb77ec6f313012f49c0e998 31-Mar-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Eliminate p_winsys::printf

Not convenient and almost not used at all. Better replacements in p_debug.h
ri/intel/intel_winsys_pipe.c
lib/xm_winsys.c
lib/xm_winsys_aub.c
bbefb541ad94382debb0f7a8daa636729799a31a 30-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: adapt to recent gallium changes
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_winsys.c
ri/nouveau/nouveau_winsys_pipe.c
03c60e0fb691d39a168a8825ace7150ef3a20e02 30-Mar-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
5935b16ff5d8cbe07c97f2990e281a9c5986d0a1 28-Mar-2008 Brian <brian.paul@tungstengraphics.com> If visual is 32bpp, set visual->alphaBits = 8.

This works since we always use XImages for color buffers. It wouldn't always
work for Windows/Pixmaps.
lib/xm_api.c
70659e8ec8ba0c599daa36d9ed81e86efd99eb52 26-Mar-2008 Ian Romanick <idr@us.ibm.com> xlib: Fix build error from recent fence changes
lib/xm_winsys.c
4abe1eb980ed76d2b2d3383eaab520d0aa2ae6f4 26-Mar-2008 Michel Dänzer <michel@tungstengraphics.com> gallium: Change pipe->flush() interface to optionally return a fence.

The cell driver still uses an internal CELL_FLUSH_WAIT flag, in the long run
proper fencing should be implemented for it.
ri/intel/intel_context.c
ri/intel/intel_winsys_i915.c
lib/xm_winsys.c
b09de96a17028c3c936f6a196e048c4f224da89f 26-Mar-2008 Ian Romanick <idr@us.ibm.com> xlib: Add support for MIT-SHM in xlib winsys driver

Gives about a 3% performance increase in gears on x86-64 (non-tiled)
and about 10% performance increase in gears on Cell (tiled). I
actually expected more of a boost. :(
lib/xm_api.c
lib/xm_winsys.c
lib/xm_winsys_aub.h
lib/xmesaP.h
601b018a9a6143c634239d5bb51616724c2e593d 24-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: refcount buffers on validate list.
ri/nouveau/nouveau_drmif.h
ri/nouveau/nouveau_pushbuf.c
46a7f297a1477b9b59a5a11bf090db0ecbdf1ed7 24-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: fix infinite wait on space for userbuf.

A recent commit removed a bug which essentially caused a sync after each
use of a user buffer. In fixing it, the scratch area can now become
fragmented under some circumstances leading to nouveau_bo_tmp() waiting
forever for a large enough block of free space.

This fixes ppracer, gl-117 and probably a heap of other apps.
ri/nouveau/nouveau_bo.c
1a4dcde808dbd5daa58f939361d9a9b539f81b50 21-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: do a retry if initial buffer alloc fails
ri/nouveau/nouveau_bo.c
83e94189c424303fee4218a9d9380fc73b7ba318 21-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: use saved fence pointer, not head of unsignalled list

It's possible for the unsignalled list head to change during fence_flush.
Fixes valgrind complaint exposed by a previous commit.
ri/nouveau/nouveau_fence.c
735ecf5de8587f8e52fe6ffc7f3f17403d140e23 21-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: potentially delay buffer destruction

Rather than spinning waiting for the GPU to finish with the buffer,
add a callback on the buffer's fence object instead. Gives a sizable
performance increase in OA.
ri/nouveau/nouveau_bo.c
5d2577e576635559da202d0d062601e404843b2c 21-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: try combining prev and next resources on free

Fixes some cases where we end up with a list of many unused chunks that are
too small to be useful.
ri/nouveau/nouveau_resource.c
9575e35807c89c0b8a745671bc2dcd54d96379ff 18-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: pass nvws to nvws->push_* functions, rather than nouveau_channel*
ri/nouveau/nouveau_winsys.c
f93386de0fb281e79633c3bf57060f660abdfade 17-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: create fence object when allocating pushbuf, instead of submit
ri/nouveau/nouveau_bo.c
ri/nouveau/nouveau_drmif.h
ri/nouveau/nouveau_pushbuf.c
c4354f84603cabb0e33ea3f586cc89bfdc27f79b 15-Mar-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
d493203045b214770473f8afeaa610542fe42c2a 15-Mar-2008 Stephane Marchesin <marchesin@icps.u-strasbg.fr> nv10.
ri/nouveau/Makefile
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_winsys.c
a254d0c36870724e51e91de3a3da9220b67af850 14-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: added dummy install target
akefile
1cec61e441ad5b4b1ac8d1abcaa7535bc1827eb3 13-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: NV9X is basically a G80, fix issue with NV6X being detected as G80.
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_winsys.c
03ec66375889f049b09f39ba98515aa35ac48164 13-Mar-2008 Ben Skeggs <skeggsb@gmail.com> Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
9911ca2226cf87e2cc4ffc32e40bccaf0a4e5745 11-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nv50: ouch, next_subchannel++ :)
ri/nouveau/nv50_surface.c
1fb3c94f03e07a80bb7a93777d4fef5173da71ca 11-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nv50: some forgotten changes
ri/nouveau/nouveau_context.c
66ba021e9fa2fa932cb9be8fc2fb8272baf51fc6 07-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: another "argh gallium fscks with assert" fix
ri/nouveau/nouveau_pushbuf.c
5b9b5c850f3b34d8891890d808a520a64dd779bc 04-Mar-2008 Michel Dänzer <michel@tungstengraphics.com> gallium: Fix scons condition for building the xlib winsys.
Conscript
a5966c8b28702bba1e4eb4bb4aec2247c90fcfa2 02-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: silence some warnings
ri/nouveau/nouveau_local.h
ri/nouveau/nouveau_winsys.c
578b5cd9a030189bcba5c3e86080e1e26eb6e108 02-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: fix potential crash
ri/nouveau/nouveau_context.c
b560ed2444383b9634786fe742b8cb6f5cdfc781 02-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: enable multi-context/single-channel support for nv40
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_context.h
ri/nouveau/nouveau_screen.h
ri/nouveau/nouveau_winsys.c
0a12e4587ccf2c4fa71e93bb00b4582deb99a82c 02-Mar-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: turn pushbuf macros into inline functions
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_context.h
ri/nouveau/nouveau_local.h
ri/nouveau/nouveau_swapbuffers.c
ri/nouveau/nouveau_winsys.c
ri/nouveau/nv04_surface.c
ri/nouveau/nv50_surface.c
baaae562f02563c5966b857c61b3eae7341950e3 29-Feb-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: hand nouveau_winsys in with pipe_screen init
ri/nouveau/nouveau_winsys.c
84cc07dc89c0ebce4ad55b4b3684d4420a202683 29-Feb-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: implement pipe_screen

Untested on NV3x/NV5x. Quite possibly broken.
ri/nouveau/nouveau_winsys.c
ri/nouveau/nouveau_winsys_softpipe.c
8c77e6f674206ef34ab15026b08e495209dcd4ea 29-Feb-2008 Ben Skeggs <skeggsb@gmail.com> Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1
03b5267f52d440b1b357918ed7de2ca948f314e1 27-Feb-2008 Brian <brian.paul@tungstengraphics.com> gallium/i965: implement pipe_screen for i965 driver (untested)
lib/xm_winsys_aub.c
f04736c8be5d30c510e1799ac0c8fa5173516513 27-Feb-2008 Brian <brian.paul@tungstengraphics.com> Cell: implement pipe_screen for cell driver
lib/xm_winsys.c
4f36cf5858a7e53181c3578685675e15fbfcbb82 27-Feb-2008 Brian <brian@i915.localnet.net> gallium: implement pipe_screen for softpipe driver
ri/intel/intel_winsys_softpipe.c
lib/xm_winsys.c
aa59a937ccf41609081d3f9a4973df5478979785 27-Feb-2008 Brian <brian@i915.localnet.net> gallium: introduce 'pipe_screen' for context-independent functions

This will allow creating textures before a rendering context exists, for example.
Only implemented in i915 driver for now. i915pipe->texture_create() just
dispatches through to the i915screen->texture_create() to avoid state tracker
changes for now.
ri/intel/intel_winsys_i915.c
dbf12dcdb78aa251fe0d09b49aa661481727ecf6 26-Feb-2008 Michel Dänzer <michel@tungstengraphics.com> intel_winsys: Fix build failure due to DEBUG_IOCTL being undefined.

Include pipe/p_debug.h to consistently enable or disable the debugging code.
ri/intel/intel_context.h
68ef52886263690632552ae187a4673945c2ab74 26-Feb-2008 Ben Skeggs <skeggsb@gmail.com> Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1
ea02342c11eaeb700495b403caecc13a129333e8 25-Feb-2008 Brian <brian@i915.localnet.net> gallium/i915: Use hardware rendering, unless INTEL_SP env var is set
ri/intel/intel_context.c
58a3d7dfd94453c25607106835fbbb3a54d42306 23-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Revamp scons usage.
Conscript
8cd7c1d03ce045bfa39471c3f77a31030195b899 22-Feb-2008 Brian <brian@i915.localnet.net> i915: include stdio.h
ri/intel/intel_batchbuffer.c
24f3d7de29c5cd30ced7c3ce7293902460a82e0b 22-Feb-2008 Brian <brian@i915.localnet.net> i915: include p_debug.h (resolves undefined assert())
ri/intel/intel_batchbuffer.h
26c57d163092d8069c69ff47929e73682b819ab2 22-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Avoid building problematic module/drivers on windows.
Conscript
f7922db610d05efee0ee8c5f0dadb69e3939482e 21-Feb-2008 Ben Skeggs <darktama@beleth.(none)> Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1

Conflicts:

src/gallium/drivers/Makefile
49c3f3b537cdad847eaa24f90d01c4b1f604f724 20-Feb-2008 Brian <brian.paul@tungstengraphics.com> gallium: general clean-up of xlib winsys Makefile
lib/Makefile
3e329ea7e41e8d97de5b5f345ecab0833c8afe70 19-Feb-2008 Brian <brian.paul@tungstengraphics.com> gallium: updated cell build

Building on Ian's Cell build fix.
Put libcell.a in the gallium/drivers/cell/ directory.
General Makefile clean-up, simplification, updated comments.
lib/Makefile
b9da3791c934e05b82063a8c79c423a0a8e29a94 19-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Remove src/mesa and src/mesa/main from gallium source include paths.
ri/intel/SConscript
ri/intel/intel_batchpool.c
lib/SConscript
lib/brw_aub.c
90b2beb661f630966788a6e909dc759c99e38973 19-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Simplify makefile boilerplate code.

Don't define ASM_SOURCES variable globally -- reserve that variable to be defined
locally by makefiles, together with C_SOURCES and CPP_SOURCES.
ri/Makefile.template
0448dbd64a2ef217349f4ada4777d432bc82e46d 18-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Update for llvm -> gallivm rename.
lib/Makefile
33ceb6716a2166db75659fa66d85fb4cfb9633c7 18-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Update scons build for new code layout.
Conscript
ri/SConscript
ri/intel/SConscript
lib/SConscript
bfd5916eafb9a97ad10f1d4a8738e7dcb02e04f4 18-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Code reorganization: split gallium and mesa makefiles.

In other words, don't build src/gallium source code from within src/mesa/Makefile.

Also, allow to customize which gallium auxiliary dirs, driver driver, winsys
dirs get built from the config/* files.
akefile
ri/Makefile.template
lib/Makefile
c303cf15dcf2744028f920cf71d7e6fda709bd15 16-Feb-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: fix potential userbuf crash.
ri/nouveau/nouveau_bo.c
26add9288c88108e3485ffc57c51ea9bdc0ee719 16-Feb-2008 Ben Skeggs <skeggsb@gmail.com> nouveau: match gallium code reorginisation.

That was... fun..
ri/nouveau/Makefile
ri/nouveau/nouveau_bo.c
ri/nouveau/nouveau_channel.c
ri/nouveau/nouveau_context.c
ri/nouveau/nouveau_context.h
ri/nouveau/nouveau_device.c
ri/nouveau/nouveau_device.h
ri/nouveau/nouveau_dma.c
ri/nouveau/nouveau_dma.h
ri/nouveau/nouveau_dri.h
ri/nouveau/nouveau_drmif.h
ri/nouveau/nouveau_fence.c
ri/nouveau/nouveau_grobj.c
ri/nouveau/nouveau_local.h
ri/nouveau/nouveau_lock.c
ri/nouveau/nouveau_notifier.c
ri/nouveau/nouveau_pushbuf.c
ri/nouveau/nouveau_resource.c
ri/nouveau/nouveau_screen.c
ri/nouveau/nouveau_screen.h
ri/nouveau/nouveau_swapbuffers.c
ri/nouveau/nouveau_swapbuffers.h
ri/nouveau/nouveau_winsys.c
ri/nouveau/nouveau_winsys_pipe.c
ri/nouveau/nouveau_winsys_pipe.h
ri/nouveau/nouveau_winsys_softpipe.c
ri/nouveau/nv04_surface.c
ri/nouveau/nv50_surface.c
66f22aa3bf7fa546e946b45156aa578e202982c9 15-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Code reorganization: s/aux/auxiliary/ -- update build.
ri/Makefile.template
6acd63a4980951727939c0dd545a0324965b3834 15-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Code reorganization: update build.

Update the Makefiles and includes for the new paths.

Note that there hasn't been no separation of the Makefiles yet, and make is
jumping all over the place. That will be taken care shortly. But for now, make
should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm
might require some minor tweaks.
ri/Makefile
ri/Makefile.template
ri/intel/Makefile
ri/intel/intel_winsys_i915.c
ri/intel/intel_winsys_softpipe.c
lib/xm_winsys.c
lib/xm_winsys_aub.c
b642730be93149baa7556e5791393168ab396175 15-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Code reorganization: move files into their places.

This is in a separate commit to ensure renames are properly preserved.
ri/intel/Makefile
ri/intel/SConscript
ri/intel/intel_batchbuffer.c
ri/intel/intel_batchbuffer.h
ri/intel/intel_batchpool.c
ri/intel/intel_batchpool.h
ri/intel/intel_context.c
ri/intel/intel_context.h
ri/intel/intel_lock.c
ri/intel/intel_reg.h
ri/intel/intel_screen.c
ri/intel/intel_screen.h
ri/intel/intel_swapbuffers.c
ri/intel/intel_swapbuffers.h
ri/intel/intel_winsys.h
ri/intel/intel_winsys_i915.c
ri/intel/intel_winsys_pipe.c
ri/intel/intel_winsys_softpipe.c
ri/intel/server/i830_common.h
ri/intel/server/i830_dri.h
ri/intel/server/intel.h
ri/intel/server/intel_dri.c
lib/brw_aub.c
lib/brw_aub.h
lib/fakeglx.c
lib/glxapi.c
lib/glxapi.h
lib/glxheader.h
lib/realglx.c
lib/realglx.h
lib/xfonts.c
lib/xfonts.h
lib/xm_api.c
lib/xm_image.c
lib/xm_image.h
lib/xm_winsys.c
lib/xm_winsys_aub.c
lib/xm_winsys_aub.h
lib/xmesaP.h