• Home
  • History
  • Annotate
  • only in /external/mesa3d/src/mesa/drivers/dri/radeon/
History log of /external/mesa3d/src/mesa/drivers/dri/radeon/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9d4ab9a663d4088ec553edaae0eeafb746d2490d 11-Feb-2013 Brian Paul <brianp@vmware.com> mesa: pass context parameter to gl_renderbuffer::Delete()

We sometimes need a rendering context when deleting renderbuffers.
Pass it explicitly instead of trying to grab a current context
(which might be NULL). The next patch will make use of this.

Note: this is a candidate for the stable branches.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
(cherry picked from commit c73245882c7ff1277b190b97f093f7b423a22f10)

Conflicts:

src/mesa/swrast/s_renderbuffer.c
adeon_fbo.c
dca04373c2efb177dbb7dca3ad2b57cb36b2ebe6 30-Aug-2012 Brian Paul <brianp@vmware.com> mesa: fix-up and use _mesa_delete_renderbuffer()

_mesa_delete_renderbuffer() should free the mutex (though that may be a
no-op) and then free the renderbuffer object itself. Subclasses of
gl_renderbuffer can use this function too.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
(cherry picked from commit 8472bb4508515cf0f717344ef5cc863b6e97e56a)
adeon_fbo.c
25e34c3526e5a999997d8966ede8a11d2deb0122 05-Dec-2012 Stefan Dösinger <stefandoesinger@gmx.at> radeon: Initialize swrast before setting limits

NOTE: This is a candidate for stable release branches.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit f6a4e1bc1eb3df1e9172474b60cf9fce571e35d1)

Conflicts:
src/mesa/drivers/dri/radeon/radeon_context.c
adeon_context.c
320b5abda5026f23f327c6f60c1b6287cc507e78 03-Jan-2013 smoki <smoki00790@gmail.com> radeon/r200: Fix tcl culling

Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=57842
(cherry picked from commit 5bf357db89836d0f4e4b8a4cb559755d4734b81b)
adeon_state.c
efa6b5e42b427c1ec9f2d636d280c84e7da71346 11-Nov-2012 Marek Olšák <maraeo@gmail.com> mesa: add MaxNumLevels to gl_texture_image, remove MaxLog2

MaxLog2 led to bugs, because it didn't work well with 1D and 3D textures.

NOTE: This is a candidate for the stable branches.

v2: correct the comment at MaxNumlevels

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 8111342e814304730bed34446ea816cbc17a5775)

Conflicts:
src/mesa/main/teximage.h
adeon_mipmap_tree.c
8ebcf34d87002334a0df0dbdfb2a43ce2aecd7e9 27-Sep-2012 Matt Turner <mattst88@gmail.com> build: Set visibility CFLAGS in dri/radeon
(cherry picked from commit 55d45efdd8276ec4b2795e82e3d9bb57c3b1425d)
akefile.am
89e76252ca3fd015544f76d0f528babe9c723938 01-Oct-2012 Matt Turner <mattst88@gmail.com> dri drivers: Link dricommon before dynamic libraries

I think libtool should be handling this for us, but the build fails for
Jordan because libdricommon (a static library, which uses expat) appears
before -lexpat on the linker command.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Jordan Justen <jordan.l.justen@intel.com>
(cherry picked from commit 31ab61cac10bf75210134b6d8a354ac3cbd3b4da)

Conflicts:

src/mesa/drivers/dri/i965/Makefile.am
akefile.am
d47a6ada9ca9670c60fc141fabadf40c63031c08 24-Aug-2012 Brian Paul <brianp@vmware.com> mesa: add texture target field to ChooseTextureFormat() driver hook

This will let us choose the actual hardware format depending on the
type of texture.

v2: fixup radeon, nouveau, intel and swrast drivers too

Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_texture.c
adeon_texture.h
46751edca9a95baff81771aa69986fa6e2422ed6 22-Aug-2012 Brian Paul <brianp@vmware.com> mesa: new _mesa_num_tex_faces() helper

Not a real big help now, but will be useful for the
GL_ARB_texture_cube_map_array extension in the future.
adeon_mipmap_tree.c
adeon_texture.c
70f47505a2e5d4cf949b7c2650f3d9f6559bacb3 07-Aug-2012 Ian Romanick <ian.d.romanick@intel.com> dri: Pass API_OPENGL_CORE through to the drivers

This forces the drivers to do at least some validation of context API
and version before creating the context. In r100 and r200 drivers, this
means that they don't do any post-hoc validation.

v2: Actually reject compatibility profile 3.2+ contexts. Thanks Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_context.c
c9a7dfcf92e6adb4b85338c2c8dbbfbaf39fbfe7 12-Jun-2012 Pauli Nieminen <pauli.nieminen@linux.intel.com> mesa: Remove unnecessary parameters from AllocTextureImageBuffer

Size and format information is always stored in gl_texture_image
structure. That makes it preferable to remove duplicate information from
parameters to make interface easier to understand.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_texture.c
c5af8891805fc4f590c1371c098cdbc704c44e00 12-Jun-2012 Pauli Nieminen <pauli.nieminen@linux.intel.com> mesa: Remove unnecessary parameters from TexImage

gl_texture_image structure always holds size and internal format before
TexImage driver hook is called. Those passing same information in
function parameters only duplicates information making the interface
harder to understand.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_texture.c
9c1b41879aab2ff7386c547a2ccce7686c018cf5 26-Jul-2012 Eric Anholt <eric@anholt.net> mesa: Replace VersionMajor/VersionMinor with a Version field.

As we get into supporting GL 3.x core, we come across more and more features
of the API that depend on the version number as opposed to just the extension
list. This will let us more sanely do version checks than "(VersionMajor == 3
&& VersionMinor >= 2) || VersionMajor >= 4".

v2: Fix a bad <= 30 check.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_context.c
a4bf68ca50da0ce291a464aec9b03a469ab2561a 02-Aug-2012 Chad Versace <chad.versace@linux.intel.com> dri: Simplify use of driConcatConfigs

If either argument to driConcatConfigs(a, b) is null or the empty list,
then simply return the other argument as the resultant list.

All callers were accomplishing that same behavior anyway. And each caller
accopmplished it with the same pattern. So this patch moves that external
pattern into the function.

Reviewed-by: <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
adeon_screen.c
6f6bd8aedcf2b2f0e1ca9a1fa7ded1cb1f5a88ed 12-Jun-2012 Pauli Nieminen <pauli.nieminen@linux.intel.com> radeon&r200: Add support for ARB_sampler_objects

Preparation for the mandatory support of ARB_sampler_objects. I have tested
this patch with rv280 only.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
adeon_mipmap_tree.c
adeon_span.c
adeon_tex.c
adeon_tex.h
adeon_tex_copy.c
adeon_texstate.c
adeon_texture.h
10169e7adc40b445776453fcc6d3227d7dda5879 12-Jun-2012 Pauli Nieminen <pauli.nieminen@linux.intel.com> radeon: Fix printf format not to warn in 64bit

When I build tested radeon changes I noticed two warnings about format
size missmatch in 64bit. I decided to clean them to make relevant
compiler warnings easier to spot.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
adeon_blit.c
c0c216c4690f1d39ae384b45be5d5350d5bde875 27-Jul-2012 Roland Scheidegger <sroland@vmware.com> radeon/r200: get rid of some unneeded cliprect/scissor code

Noone was interested in the number of cliprects, and noone cared
about the intersect result neither. So just nuke this.
adeon_common.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
de694b6b10b7ce23a00cd7296a955f162704ee62 27-Jul-2012 Roland Scheidegger <sroland@vmware.com> radeon/r200: fix bogus clears

There were several problems with these functions (which are a remnant
of dri1 hyperz mostly - should bring it back somehow someday).
First, it would always do a swrast clear if the buffer to clear was a fbo.
Second, for buffers we wouldn't handle the clear (I guess aux/accum?) we
would actually still have tried to clear that later even when we already
cleared it with swrast.
adeon_ioctl.c
5b88a2a22daae4d09596804d8edc6b8796d05150 27-Jul-2012 Roland Scheidegger <sroland@vmware.com> radeon/r200: fix bogus assert/scissor wrt width/height 2048

This addresses one issue raised in bug #51658 discovered by Eugene St Leger.
The assert is bogus since there's no problem with texture width/height being
2048 (the width/height programmed is width/height minus one).
OTOH though the programmed size for scissor rect should be width/height
minus one too otherwise bad things may happen (as it is inclusive, and there's
not enough bits for more than a value of 2047).
adeon_blit.c
a80b7407f3724ddac96167d640a0f9a91d60ac5f 27-Jul-2012 Brian Paul <brianp@vmware.com> radeon: fix 'sowftware' typo
adeon_mipmap_tree.c
38184dcd54e77c8f9adc89d337a97afd630b2c07 26-Jul-2012 Brian Paul <brianp@vmware.com> radeon: fix Base/base typo

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=52563
adeon_span.c
0e893b42610a2e8f2797bd7da68669dac38d9538 26-Jul-2012 Brian Paul <brianp@vmware.com> radeon: set swrast_renderbuffer::ColorType field when mapping renderbuffers

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=47375

NOTE: This is a candidate for the 8.0 branch.

Tested-by: Barto <mister.freeman@laposte.net>
adeon_span.c
4cb3579e52fed48d623698610e31d05ac8c8946f 26-Jun-2012 Brian Paul <brianp@vmware.com> mesa: rename ColorMaterialBitmask to _ColorMaterialBitmask

Since it's a derived field.
adeon_state.c
e426949cf1c328d5686b1048cdcec54a4fbca986 11-Jun-2012 Eric Anholt <eric@anholt.net> make: Fold ASM_CFLAGS into DEFINES.

Every place that uses ASM_FLAGS already uses DEFINES. Not including
it in DEFINES is just a way to screw up potential users, as I've done
several times while working on the build system.
akefile.am
cd9ab2584f5e2a5eb0e96a948e6aedc9a33c886d 06-Jun-2012 Brian Paul <brianp@vmware.com> mesa: consolidate internal glCopyTexSubImage1/2/3D code

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_tex_copy.c
adeon_texture.c
adeon_texture.h
8f5fffe75d2f8ae7c7ee706b53379a25bc673ae4 06-Jun-2012 Brian Paul <brianp@vmware.com> mesa: consolidate internal glTexImage1/2/3D code

The functions for handling 1D, 2D and 3D texture images were nearly
identical. This folds them all together.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_texture.c
47941bfaea6e8a60e2c31f7a2c8c233f2a10ecb1 20-Apr-2012 Brian Paul <brianp@vmware.com> radeon: use _mesa_is_winsys/user_fbo() helpers

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
adeon_common.c
adeon_pixel_read.c
adeon_state.c
dfce56ba4dd444cdb1148425a2cc0662bb79932d 20-Mar-2012 Kenneth Graunke <kenneth@whitecape.org> Add Makefile.in to toplevel .gitignore

To avoid redundancies, this patch also removes Makefile.in from the
other .gitignore files.

Acked-by: Eric Anholt <eric@anholt.net>
gitignore
b41ab3b42c989926389e599d5794412a628f277f 16-Mar-2012 Paul Berry <stereotype441@gmail.com> Add .deps/, .libs/, and *.la to toplevel .gitignore

To avoid redundancies, this patch also removes .deps, .libs, and *.la
from .gitignore files in subdirectories.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
gitignore
82195815ec0422d5a762397b8717239861dc6800 12-Mar-2012 Brian Paul <brianp@vmware.com> radeon: remove use of DD_FLATSHADE

This got missed earlier <sigh>.
adeon_tcl.c
c90ae6b501a4a72d33869e1be241e87264747735 12-Mar-2012 Brian Paul <brianp@vmware.com> radeon/r200: remove ClearColor driver functions

The state.color.clear value was never used anywhere.

Reviewed-by: Dave Airlie <airlied@redhat.com>
adeon_common_context.h
adeon_state.c
adeon_state_init.c
e0ed951e1361e54ffd8e9c56fbcc2027c0c4bd24 12-Mar-2012 Brian Paul <brianp@vmware.com> radeon/r200: remove ClearDepth() and ClearStencil() driver hooks

The computed stencil.clear and depth.clear values aren't used anywhere.
Those fields have been removed too.

Reviewed-by: Dave Airlie <airlied@redhat.com>
adeon_common_context.h
adeon_state.c
adeon_state_init.c
5bb2059be714c09bd0fbc9aebd7dabf1ba3e63b6 12-Mar-2012 Brian Paul <brianp@vmware.com> radeon/r200: remove hyperz/fast clear testing code

The flags which were computed were never actually used.

Reviewed-by: Dave Airlie <airlied@redhat.com>
adeon_ioctl.c
ba1d921bdf7a15fcc4a4e3162ea6fe9810f233d6 29-Feb-2012 Mathias Fröhlich <Mathias.Froehlich@gmx.net> mesa: Push the shine table into the tnl module.

All users of the shine table outside of the tnl module
are gone. Move the implementation into the tnl module and
prefix the public functions with _tnl.

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
adeon_tcl.c
8de5c355fa2bf0f30df2c7cf39aee01e793284bf 21-Feb-2012 Jesse Barnes <jbarnes@virtuousgeek.org> gbm: track buffer format through DRI drivers

GBM needs the buffer format in order to communicate with DRM and clients
for things like scanout.

So track the DRI format requested in the various back ends and use it to
return the DRI format back to GBM when requested. GBM will then map
this into the GBM surface type (which is in turn based on the DRM fb
format list).

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
adeon_screen.c
adeon_screen.h
a8cc228edd1dd6328f8b9086d768b52f821c6575 10-Feb-2012 Alex Deucher <alexander.deucher@amd.com> radeon: build fix after 9d9111108eadd65708899284b1cfa9ca425f3ac8

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
adeon_tcl.c
ef3cec5804dfecd60d5d34545d73f9f2dc8b0a22 30-Jan-2012 Matt Turner <mattst88@gmail.com> Rename R300_NO_TCL envvar to RADEON_NO_TCL

The envvar works for R100 and R200 too, and the classic R300 driver
doesn't even exist anymore.

"RADEON_NO_TCL" is already mentioned in the code and is the same envvar
used for the R300g driver.
adeon_screen.c
10c85526a23ab6c01a67562a885597ad65883be6 29-Jan-2012 Matt Turner <mattst88@gmail.com> dri: don't link with DRICORE_LIB_DEPS

DRI_LIB_DEPS is sufficient since it includes DRICORE_LIB_DEPS
akefile.am
5fa27eafc81fee0a0b4b22953538a89811b35b7b 25-Jan-2012 Eric Anholt <eric@anholt.net> radeon: Fix missing dri common symbols after automake conversion.

Reviewed-by: Matt Turner <mattst88@gmail.com>
akefile.am
c080202db5363a18a759a9a7c82b40ac558c8abe 16-Jan-2012 Brian Paul <brianp@vmware.com> radeon: derive radeon_renderbuffer from swrast_renderbuffer
adeon_common.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
adeon_fbo.c
adeon_pixel_read.c
adeon_screen.c
adeon_span.c
adeon_state_init.c
adeon_tex_copy.c
adeon_texstate.c
f9874feef4d8952df5054bd8e8f4e0deda4ef44f 16-Jan-2012 Brian Paul <brianp@vmware.com> mesa: remove gl_renderbuffer::DataType
adeon_fbo.c
adeon_screen.c
1e1b5cb01a10e39d01923e3c7e989c44210950cd 16-Jan-2012 Brian Paul <brianp@vmware.com> mesa: remove gl_renderbuffer:RowStride field
adeon_span.c
a4c6dedb27897ae1340983b5d12927e0a9fb2212 16-Jan-2012 Brian Paul <brianp@vmware.com> radeon: remove obsolete GetRow/PutRow code
adeon_fbo.c
adeon_span.c
7d1ddec92168e9b6ead0da80b18364a75f9a85e6 16-Jan-2012 Brian Paul <brianp@vmware.com> mesa: use gl_renderbuffer::Map for all depth/stencil accesses

Instead of using the obsolete gl_renderbuffer::Data field.
Color buffer are still accessed through GetRow/PutRow().
adeon_span.c
bd3c10c0f0c60ab3421c2da2eab814edc2296cb0 16-Jan-2012 Brian Paul <brianp@vmware.com> swrast: s/Data/Map/ in swrast_texture_image

To indicate that it points to mapped texture memory.
adeon_mipmap_tree.c
adeon_texture.c
e0ee818e2f24f3d9604c04df4a056798bccc48ec 15-Jan-2012 Matt Turner <mattst88@gmail.com> automake: src/mesa/drivers/dri/radeon
gitignore
akefile
akefile.am
akefile.sources
f0ea46790f8f4df9a39b0cfab5c5f1bf02c136fc 18-Jan-2012 Ian Romanick <ian.d.romanick@intel.com> mesa: Set default access flags based on the run-time API

The default access flags for OpenGL ES (via GL_OES_map_buffer) and
desktop OpenGL are different. The code previously tried to handle
this, but the decision was made at compile time. Since the same
driver binary can be used for both OpenGL ES and desktop OpenGL, the
decision must be made at run-time.

This should fix bug #44433. It appears that the test case does
various map and unmap operations and inspects the state of the buffer
object around each. When it sees that GL_BUFFER_ACCESS does not match
its expectations, it fails.

NOTE: This is a candidate for release branches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44433
adeon_buffer_objects.c
221c678329fd1c073d5f8dcf387129cd426ecf07 18-Jan-2012 Kristian Høgsberg <krh@bitplanet.net> gbm: Validate usage flags in gbm_bo_create_from_egl_image()

The entry point is supposed to validate that the EGLImage is suitable for
the passed in usage flags, but that was never implemented.
adeon_screen.c
94556f359450acebe87d6c9b4f4fd8ccf78589d8 18-Jan-2012 Alex Deucher <alexander.deucher@amd.com> radeon: share common fog code between radeon and r200

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
akefile
adeon_context.c
adeon_dma.c
adeon_dma.h
adeon_fog.c
adeon_fog.h
adeon_maos_arrays.c
adeon_maos_verts.c
adeon_tcl.c
adeon_tcl.h
e77c495d09105a1b6a13fd62d0d3585b019e1c66 17-Jan-2012 Alex Deucher <alexander.deucher@amd.com> radeon: fix fog coordinate emit

Noticed by dungeon on phoronix:
http://phoronix.com/forums/showthread.php?65408-Radeon-R100-R200-Mesa-Driver-Sees-Attention&p=247018#post247018

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

Note: this is a candidate for the stable branches.
adeon_maos_arrays.c
56b57aa360a8bad0c4b68fbdf7c64ac33f9e7661 29-Dec-2011 Brian Paul <brianp@vmware.com> mesa: rework ctx->Driver.CopyTexSubImage() parameters

Replace target, level parameters with gl_texture_image.
Add gl_renderbuffer parameter to indicate source buffer for the copy.

This removes some redundant code in the drivers to find the source
renderbuffer and the destination texture image (which we already had
in _mesa_CopyTexSubImage).

Signed-off-by: Brian Paul <brianp@vmware.com>
adeon_tex_copy.c
adeon_texture.h
892a2542a3f0753a7064c710b96f077dd5490624 04-Jan-2012 Brian Paul <brianp@vmware.com> mesa: remove unused _mesa_init_teximage_fields() target parameter

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
adeon_texstate.c
e532b6288f01b63d8d8ba8c8dc08292967e65490 01-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> dri2: Add plumbing to get context version requirements and flags to drivers

This adds support for DRI_DRI2 version 3 to all of the DRI2 drivers.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
adeon_context.c
adeon_context.h
01a63f4bf5ab5e2e67982c6c60670dd2b4fe9fcb 02-Jan-2012 Brian Paul <brianp@vmware.com> radeon: move declarations before code
adeon_debug.c
adeon_tcl.c
5edc6fef4ca633a4e468d3afa82ce8bc641a2437 02-Jan-2012 Brian Paul <brianp@vmware.com> radeon: add casts to silence warnings
adeon_common.h
d9398382672c77937536f20547be4792e08069a3 02-Jan-2012 Brian Paul <brianp@vmware.com> radeon: remove unused tex image function prototypes
adeon_texture.h
92c64624cd7533cde466dbec8722f7f72f275fd8 30-Dec-2011 Brian Paul <brianp@vmware.com> mesa: simplify Driver.TexImage() parameters

As with TexSubImage(), the target, level and texObj values can be obtained
through the texImage pointer.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_texture.c
adeon_texture.h
45cd15bfae2f6c66c9e4356fb8dd7cad1829f659 22-Dec-2011 Mathias Fröhlich <Mathias.Froehlich@web.de> radeon: Convert to use GLbitfield64 directly.

Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
Reviewed-by: Brian Paul <brianp@vmare.com>
adeon_common_context.h
adeon_swtcl.c
2750809b2e9a7d24d83d01f0a1d5bb5dce027b4c 10-Dec-2011 Brian Paul <brianp@vmware.com> radeon: stop using _DepthBuffer, _StencilBuffer fields

Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_common.c
adeon_tex_copy.c
d0dc75c000d5af92648c7de901756400672b8447 06-Dec-2011 Brian Paul <brianp@vmware.com> mesa/drivers: use new swrast renderbuffer functions

Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_screen.c
adeon_span.c
2ee8704a8a160f2a627669bdf978072a1597c205 06-Dec-2011 Dave Airlie <airlied@redhat.com> radeon: add original r100 to the always tiled depth list.

According to Alex, he thinks r100 is also covered.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_screen.c
781a204bcf5599716991e5d36b08a36db5209441 06-Dec-2011 Dave Airlie <airlied@redhat.com> radeon/r200: add RV200 detiling + add an always tiled flag

passes readpix sanity on the M7.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_chipset.h
adeon_fbo.c
adeon_screen.c
1136da9c6bea8f579c0d92e5c263bde83a1fd0cf 06-Dec-2011 Dave Airlie <airlied@redhat.com> r200: add Z16 depth detiling.

This passes readPixSanity with z16 visuals.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_fbo.c
61a40581d26d17fd9351914b267f364dbb12f8d0 06-Dec-2011 Dave Airlie <airlied@redhat.com> r200: handle Z24 depth buffers correctly

The same detiling pattern applies to X8_Z24 as well.

Signed-off-by: Dave Airlie <Airlied@redhat.com>
adeon_fbo.c
a8bbbcae4a22d97d1d1c22509fad423262324912 05-Dec-2011 Dave Airlie <airlied@redhat.com> radeon/r200: drop old span depth/stencil code.

This is no longer used with the new renderbuffer code.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_span.c
7d91ecf7a3a08c01a704f2d427444f7a97991680 05-Dec-2011 Dave Airlie <airlied@redhat.com> radeon/r200: add draw/stencil buffer detiling

This moves the detiling to the fbo mapping, r200 depth is always tiled,
and we can't detile it with the blitter.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_common_context.h
adeon_fbo.c
c48763643ebd87013a09c5498d9a5d3713dc1014 05-Dec-2011 Dave Airlie <airlied@redhat.com> radeon: fix warnings
adeon_span.c
f24e106ead6d15caa4d5aafda7260424d4a38ed9 05-Dec-2011 Dave Airlie <airlied@redhat.com> radeon: use mesa renderbuffer accessors for depth for now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_span.c
5c666bdfdb7681c2250b801ff286c4837ea36893 05-Dec-2011 Dave Airlie <airlied@redhat.com> radeon: add some tiling support for r100.

This sets up the tiling flags on the blitter.

Fixes some piglit tests with tiling enabled.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_blit.c
adeon_state_init.c
b2596c36c8f73e8bb7a0b1679b491662aeb2f9d9 11-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: texture/renderbuffer overhaul.

This could have been split up better, but the driver is just broken now,
so bisecting the brokenness is going to be painful no matter what.

This adds renderbuffer mapping/unmapping along with texture image allocation.
It drops all the old texture upload paths, some of which could possible be
reimplemented with the blitter later.

It also redoes the span code paths to use its own set of image mapping handlers,
along with removing the tiling decode paths for the color buffers, since
we now hope to use the blitter for this.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_blit.c
adeon_blit.h
adeon_common_context.h
adeon_fbo.c
adeon_mipmap_tree.c
adeon_mipmap_tree.h
adeon_pixel_read.c
adeon_span.c
adeon_tex_copy.c
adeon_texture.c
adeon_texture.h
fd7fcfcc2dffb73ac3159a04ccd164b527c11a8f 11-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: set texture bits to always emit.

I think there is a missing state update or flush somewhere, and every
so often PP_CNTL goes to the kernel with a texture enabled but no texture.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_state_init.c
4ed8a585840865550bb9acac38c5ef26670a1fb8 11-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: update flush according to glXMakeCurrent man page

This also copies code from intel driver to do this.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_common_context.c
6d573c4dd7d90eb2c1748102924bdac1bb8fd50a 11-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: drop border check

now that we strip borders off earlier.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_texstate.c
fbfa80703449365415c9db6d189dd0a6a35fb4d4 11-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: add a bit more debugging to the blit debug code.

For debugging blits it helps if we printed out the offsets as well.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_blit.c
1161facaf9bb14086807714c72a7554ed229a52f 15-Nov-2011 Brian Paul <brianp@vmware.com> radeon: use _mesa_readpixels() instead of _swrast_ReadPixels()
adeon_pixel_read.c
8f55f5b77b1f3f6b5777d0e75ba390b67c7a0901 14-Nov-2011 Fabio Pedretti <fabio.ped@libero.it> radeon: further cleanup of shared code

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
adeon_chipset.h
adeon_screen.c
adeon_texture.c
494d0053909f4304c4d8050f8bc859edc7f05e36 14-Nov-2011 Alex Deucher <alexander.deucher@amd.com> radeon: add some missing FireMV pci ids

Note: this is a candidate for the stable branches.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
adeon_screen.c
2f98ac473bddb50e997dcfe61ae21ec0f641e514 11-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: fix build.

I had a later patch remove this code, but cherry-picked across it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_texture.c
88ec12539a65728225e720095a8105494ba772de 10-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: drop unused constant_cliprect field
adeon_common.c
adeon_common_context.h
0dd6bdf632451cda4252007f00e37f2505dc3667 10-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: disable texobj state for 3d texture

for 3d texture fallback, disable the texobj state.

Signed-off-by : Dave Airlie <airlied@redhat.com>
adeon_texstate.c
99109e9fe08f13c40ffc55e305a69e51740fc6c4 09-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: use meta bitmap

Now that the stride bug is fixed, enable Bitmap via meta mode.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_texture.c
beb3e81b86698359e037d49f35feba3ca53626b2 10-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: fix bug with wrong stride being used for rectangluar textures.

This broke the meta bitmap code when it was enabled.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_mipmap_tree.c
adeon_mipmap_tree.h
adeon_pixel_read.c
adeon_texture.c
fe5ba5da7eaf5b243f83100890d483ada1ebb285 10-Nov-2011 Brian Paul <brianp@vmware.com> radeon: silence unused var warnings
adeon_texture.c
216be4120dd31393efa23e8b1e29e8aecd125c70 10-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: fix tex1d-border2d

Fixes pigit test with T wrap usage.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_tex.c
c8fb700f2b01b577402910ecd09594ee2570872d 07-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: fix 3-coordinate swtcl emission

This fixes mipmap generation on swtcl rv100.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_swtcl.c
1401b96bb9f485eb5c08fb724b4366a16ea93aef 07-Nov-2011 Fabio Pedretti <fabio.ped@libero.it> radeon: cleanup radeon shared code after r300 and r600 classic drivers removal

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_chipset.h
adeon_common_context.c
adeon_common_context.h
adeon_mipmap_tree.c
adeon_screen.c
adeon_screen.h
adeon_texture.c
erver/radeon.h
erver/radeon_reg.h
ceda4da8573cca85e02d0e7c2db41f9151683321 03-Nov-2011 George Sapountzis <gsapountzis@gmail.com> dri: move __driUtilMessage to xmlconfig.c

__driUtilMessage seems to have fallen out of favor and is only used by xmlconfig.c now
adeon_screen.c
875a757ddd103722cfe9a2b21035024aa5a23d32 03-Nov-2011 George Sapountzis <gsapountzis@gmail.com> dri: unify __DRIscreenRec

Also drop DriverAPI field, this is a static symbol and I don't see why it
should be accessed through __DRIscreenRec
adeon_common_context.c
adeon_context.c
adeon_screen.c
7192c37294964b3f6e1551469f161593ec8f851d 02-Nov-2011 George Sapountzis <gsapountzis@gmail.com> dri: unify __DriverAPIRec

I dropped the comments because they don't add much.
adeon_screen.c
26ebf9c5e106962aa440586296b8fde76ef0c76a 04-Nov-2011 Dave Airlie <airlied@redhat.com> radeon/r200: strip texture borders.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_context.c
71f1d468b4e183c45e4f76f7951beb44dd74a707 04-Nov-2011 Dave Airlie <airlied@redhat.com> radeon/r200: fix r100/r200 blit to use the offsets.

This is needed to do proper renderbuffer operation on mipmaps.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_blit.c
2431c992cb97235c6e500bd1c0c267e608b99052 04-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: drop mtface/mtlevel, use ones in base class.

This just uses the base class copies.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_common_context.h
adeon_mipmap_tree.c
adeon_texture.c
e7349a55f75e8d1155684b5ad0f9dede55eb8549 17-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Remove early dereference of src/dst width in glCopyTexSubImage.

There doesn't appear to be any particular reason for this -- it's not
like the width is changing between the deref and the use.

Reviewed-by: Brian Paul <brianp@vmware.com>
adeon_tex_copy.c
492d223590569448c5666d421444102b50dda90d 03-Nov-2011 Vinson Lee <vlee@vmware.com> radeon: Fix variable initialization typo.

Fixes Coverity uninitialized scalar variable defect.
adeon_common.c
9954a93ab77e64b01b95837f90a567df9e8c94df 02-Nov-2011 Eric Anholt <eric@anholt.net> radeon: Check an error return instead of assigning it to a dead variable.

Fixes gcc set-but-unused-variable warning.

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
adeon_common_context.c
d546dcbb1b8baae54b20e4718c206c2f3e47a38a 02-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: fix some regressions in texturing code.

On a piglit run vs 7.11 this fixes 23 tests.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_span.c
2e53f3018f69d07b885c5885a1f865339700a189 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Remove unused dri texmem.c
adeon_common_context.h
adeon_context.h
c2711cdfb68d92ede740e2cc1fd7d78f604dc201 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Move _dri_texformat_* to radeon_texture.c

They are only used by the r200 driver now.
adeon_fbo.c
adeon_texture.c
adeon_texture.h
a14bb89d3ffda49ec8e64453640b42b670cb43a7 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Drop unused dri renderbuffer helper functions
adeon_common_context.c
03855bc2accbeb508458f70bdbdcef292672b2b8 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Remove dri2.enabled flag

DRI2 is always enabled now.
adeon_common.c
adeon_common_context.c
adeon_dma.c
adeon_screen.c
a2ea34d70507ffb6b7277b4612ae3bc1ca582a60 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Remove DRI1 fields from DRI structs
adeon_common_context.c
1837fb8e7c3cef8b9292b68da152d185e7103646 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Remove remaining DRI1 vblank code
adeon_common.c
adeon_common_context.c
adeon_ioctl.c
adeon_screen.c
d24b81e0e0f4109f3256dc45b0adc5ffd59fb749 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Remove cliprect information from __DRIdrawable
adeon_common_context.c
adeon_state.c
73ec71cb16fbae0effcb4a92da7dc7f17cd6a62a 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Remove driMediaStreamCounterExtension

Also DRI1-only.
adeon_screen.c
759cbb751b29b1c6608593841c56e0ad08eb33b0 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Remove driSwapControlExtension

DRI1-only as well.
adeon_screen.c
8e898e83c6934fc9c62730ad82fbf6f9d9180577 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Drop driCopySubBufferExtension

Another DRI1-only extension.
adeon_screen.c
ad3221587164c10ae16d85db514484b717cabc6f 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Drop driReadDrawableExtension

All DRI2 drivers support setting a separate read drawable.
adeon_screen.c
32039126007a67a6bcca5973a7406c41ccc8c543 28-Oct-2011 Kristian Høgsberg <krh@bitplanet.net> dri: Drop driLegacyExtension

There are no DRI1 drivers left.
adeon_screen.c
666c70ce8eb7c8a21536f03be3a68a3c11997e09 02-Nov-2011 Jeremy Huddleston <jeremyhu@apple.com> Build fix for -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
adeon_tcl.c
425b8d54b8c97bcbd433393f34a27027e4ff8c4d 17-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Add implementation of MapRenderbuffer.

Unlike intel, we do a blit to/from GTT memory in order to
untile/retile the renderbuffer data, since we don't have fence
registers for accessing it.

(There is software tiling code in radeon_tile.c, but it's unused and
doesn't support macro tiling)

Reviewed-by: Brian Paul <brianp@vmware.com>
adeon_common_context.h
adeon_fbo.c
56d30bb00d40cd391d7a469604792a27ddcc459c 29-Oct-2011 Dave Airlie <airlied@redhat.com> radeon/r200: drop remains of r300/r600 support along with old drm 1.x kernel

This drops all the old drmSupports* checks since KMS does them all, and it
also drop R300_CLASS and R600_CLASS.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_cmdbuf.h
adeon_common_context.c
adeon_common_context.h
adeon_context.c
adeon_queryobj.c
adeon_screen.c
adeon_screen.h
adeon_state_init.c
09a92e376bf954603dad4a6ad9a18cce3c52b484 29-Oct-2011 Dave Airlie <airlied@redhat.com> radeon/r200: forgot one somehow

drops last usage.
adeon_common_context.h
b490fa017231a9ed8f6751bb0b41347d8f7bb191 29-Oct-2011 Dave Airlie <airlied@redhat.com> radeon/r200: drop remains of non-libdrm_radeon build

These wrappers and associated symlinks were from the non-libdrm_radeon build.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_bo_drm.h
adeon_bo_int_drm.h
adeon_bocs_wrapper.h
adeon_cmdbuf.h
adeon_common.c
adeon_cs_drm.h
adeon_cs_int_drm.h
adeon_ioctl.h
adeon_screen.c
974c66875e719051831e2bd874db4ba7fdaffa02 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Remove the non-libdrm kernel memory manager support.

We should have never been building this at this point.
akefile
adeon_bo.c
adeon_cs.c
adeon_cs_space_drm.c
830e546f94c53d3f6878a188a2bdb5d2f3cf74bd 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Insist on libdrm being present to build.

There's no sense in building a broken driver. Previously, there was
the potential of building a DRI1-only driver that would work for DRI1
and fail on DRI2 because the newer libdrm code wasn't present. Now
the radeon build system should be matching intel and nouveau.
akefile
adeon_bocs_wrapper.h
bd51e8e4f473dd4fb4f99ed7898d771c64caca2d 14-Oct-2011 Eric Anholt <eric@anholt.net> dri: Remove driver GenerateMipmap hooks.

Mesa sets up _mesa_meta_GenerateMipmap as the default hook, which does
this check for fallback and call the fallback itself.
adeon_texture.c
adeon_texture.h
eb135fe8c16388cd33b424ee3915ae52d20cb3ff 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Drop some remaining DRI1 vblank support code.
adeon_common_context.c
adeon_common_context.h
adeon_screen.c
339c1731c346f21bf212e4d94d57d09d8cbfc9f4 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Simplify cliprects computation now that there's just 1.

This can probably be reduced even further by moving this logic to the
scissor state update or just removing the logic entirely, but I don't
trust myself in radeon quite that much.
adeon_common.c
adeon_common.h
adeon_common_context.h
cab45780248f5d38954d9c9e553246c7f488ef0f 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Drop the clipping in spans, now that we always have (0,0) -> (w,h).
adeon_span.c
8c11f0a88300f7bc3f05a12789c781ba0f4b3cc6 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Drop the legacy BO manager code.
akefile
adeon_bo_legacy.c
adeon_bo_legacy.h
adeon_bocs_wrapper.h
976d4f58faecf9356de1ea0dfbc6b76409450239 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Drop the DRI1 zero-copy TFP code.
adeon_screen.c
adeon_tex.h
adeon_texstate.c
15537237122c6886e020ea9985288f7d26fd7b3c 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Drop the radeon_cs_legacy code now that we rely on kernel mm.
akefile
adeon_bocs_wrapper.h
adeon_cs_legacy.c
adeon_cs_legacy.h
53b382637ca5462b15a430abbfc070e799d70b97 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Drop dri2 checks now that it's always true.

This makes LOCK_HARDWARE empty, so it goes away.
akefile
adeon_common.c
adeon_common.h
adeon_context.h
adeon_dma.c
adeon_ioctl.c
adeon_ioctl.h
adeon_lock.c
adeon_lock.h
adeon_span.c
fb52b4303d8dab75e88d9bae66687c902a7767cc 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Drop the DRI1 swapbuffers implementation.
adeon_common.c
adeon_common.h
adeon_screen.c
0973a1ec78fdedc5401cb1c0f6d027425c492509 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Drop the non-kernel-memory-manager support, and thus DRI1.

It's past time, and it was going to get in the way of the renderbuffer
mapping refactor. We dropped all the other DRI1 drivers for this
release, and I can't imagine anybody supporting DRI1 radeon classic in
a new release of Mesa.

Diff produced by treating kernel_mm as true, deleting the DRI1 paths
that produce kernel_mm false, and deleting code.
adeon_bo_legacy.c
adeon_cmdbuf.h
adeon_common.c
adeon_common_context.c
adeon_context.c
adeon_ioctl.c
adeon_ioctl.h
adeon_queryobj.c
adeon_screen.h
adeon_state.c
adeon_state.h
adeon_state_init.c
adeon_texture.c
3996ed555e0a024051e4d161c8d31b2530d8cdc5 21-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Unifdef RADEON_R300 and RADEON_R600.
adeon_screen.c
adeon_span.c
adeon_texture.c
9171bfe5f6549858ba952313829c50c5f905cd3d 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Delete DRI1 screen init code and thus support for !kernel_mm.

It's past time, and it was going to get in the way of the renderbuffer
mapping refactor. We dropped all the other DRI1 drivers for this
release, and I can't imagine anybody supporting DRI1 radeon classic in
a new release of Mesa.

Cleanup of the resulting dead code to follow.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
adeon_screen.c
a34c28f1aa0e7c0f66bc45f18750eb7f7ca8d5cd 14-Oct-2011 Eric Anholt <eric@anholt.net> dri: Drop _dri_texformats that just obfuscate MESA_FORMAT names.

The remaining _dri_texformats are the ones that are variable depending
on the endianness of the system.
adeon_texture.c
8d9c5167accbc7d46838d3179b13a5a4ea60119c 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Use _mesa_get_format_base_format for winsys renderbuffer setup.
adeon_fbo.c
964c5195a2195165017fb8eb9bc3e5756735cc57 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Remove dead swrast renderbuffer setup code.

This was from the stub code in the initial commit of this file.
adeon_fbo.c
37fdfbfb0ec73f3a94843fd5daaf62389b43b656 23-Oct-2011 Brian Paul <brianp@vmware.com> radeon: remove unnecessary #includes of texstore.h
adeon_tex.c
68da4b50e9b6aa72a9b155f650952620063e1b94 23-Oct-2011 Brian Paul <brianp@vmware.com> mesa: add swrast_texture_image::Buffer

In the past, swrast_texture_image::Data has been overloaded. It could
either point to malloc'd memory storing texture data, or it could point
to a current mapping of GPU memory.

Now, Buffer always points to malloc'd memory (if we're not using GPU
memory) and Data always points to mapped memory. The next step would
be to rename Data -> Map.

This change also involves adding swrast functions for mapping textures
and renderbuffers prior to rendering to setup the Data pointer. Plus,
corresponding functions to unmap texures and renderbuffers. This is
very much like similar code in the dri drivers.
adeon_texture.c
66681b4c8cb1ef16f42c1591298cb30c83bca09b 23-Oct-2011 Brian Paul <brianp@vmware.com> mesa: remove _mesa_alloc_texmemory(), _mesa_free_texmemory()

Core Mesa no longer does any texture memory allocation.
adeon_mipmap_tree.c
adeon_texture.c
6e0f9001fe3fb191c2928bd09aa9e9d05ddf4ea9 23-Oct-2011 Brian Paul <brianp@vmware.com> mesa: move gl_texture_image::Data, RowStride, ImageOffsets to swrast

Only swrast and the drivers that fall back to swrast need these fields now.
This removes the last of the fields related to software rendering from
gl_texture_image.
adeon_mipmap_tree.c
adeon_texstate.c
adeon_texture.c
5253cf98057dad54e25b4b8c36f8cf24f559314c 05-Oct-2011 Brian Paul <brianp@vmware.com> mesa: get rid of imageOffsets arrays in texstore code

These were used to find the start of a 3D image slice (or 2D array texture
slice) given a base address. Instead, use a simple array of address of
image slices instead.

This is a step toward getting rid of the gl_texture_image::ImageOffsets
field.

Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_texture.c
e0304180c32227342dbb67b707bfae446543bb48 02-Aug-2011 Brian Paul <brianp@vmware.com> mesa: Convert _mesa_generate_mipmap to MapTexImage()-based access.

Now that we can zero-copy generate the mipmaps into brand new
glTexImage()-generated storage using MapTextureImage(), we no longer
need to allocate image->Data in mipmap generate. This requires
deleting the drivers' old overrides of the miptree tracking after
calling _mesa_generate_mipmap at the same time, or the drivers
promptly lose our newly-generated data.

Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_texture.c
ed48df84246caa40398ccd6a822cbd9b650f8282 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove ARB_texture_mirrored_repeat extension enable flag

All drivers remaining in Mesa support this extension. This extension
is either required or optional features in desktop OpenGL, OpenGL ES
1.x, and OpenGL ES 2.x.

This extension was previously not supported on mach64, mga, and savage
(Savage3D and other pre-Savage4).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_context.c
b0824bd860f6d4b3ad28fc142c2eebd840ed6173 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove EXT_blend_subtract extension enable flag

All drivers remaining in Mesa support this extension. This extension
is either required or optional features in desktop OpenGL, OpenGL ES
1.x, and OpenGL ES 2.x.

This extension was previously not supported on i810, mach64, mga,
savage, sis, and tdfx (Voodoo Banshee and Voodoo3).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_context.c
1d5e49bf05f698374257707e2303b266d2a864da 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove EXT_stencil_wrap extension enable flag

All drivers remaining in Mesa support this extension. This extension
is either required or optional features in desktop OpenGL, OpenGL ES
1.x, and OpenGL ES 2.x.

This extension was previously not supported on mach64.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_context.c
f9a2352c9569ef562e9507bfe09358f236aaf4b7 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove EXT_texture_lod_bias extension enable flag

All drivers remaining in Mesa support this extension. This extension
is either required or optional features in desktop OpenGL, OpenGL ES
1.x, and OpenGL ES 2.x.

This extension was previously not supported on mach64, mga, or r128.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_context.c
bde8bd99b64876b47f9d335320eb1ad5b3be8d9d 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove EXT_texture_env_combine extension enable flag

All drivers remaining in Mesa support this extension. This extension
is either required or optional features in desktop OpenGL, OpenGL ES
1.x, and OpenGL ES 2.x. The existing support is already partially
broken in Mesa (e.g., querying GL_TEXTURE_ENV_MODE in OpenGL ES 2.x).
This patch does not change the situation in any way.

It looks like the only hardware supported by Mesa that cannot do
ARB_texture_env_combine is pre-NV10 NVIDA chips. It appears that
these chips cannot do the GL_SUBTRACT mode. Based on looking at older
copies of nvOpenGLspecs.pdf found on the net, NVIDIA never supported
ARB_texture_env_combine on those chips either.

This extension was previously not supported on mach64, mga (G200),
r128, savage, sis, and tdfx (Voodoo Banshee and Voodoo3).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_context.c
5c4f914f9a883be67a93a78c853de103bb6a2d2a 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove EXT_texture_env_add extension enable flag

All drivers remaining in Mesa support this extension. This extension
is either required or optional features in desktop OpenGL, OpenGL ES
1.x, and OpenGL ES 2.x. The existing support is already partially
broken in Mesa (e.g., querying GL_TEXTURE_ENV_MODE in OpenGL ES 2.x).
This patch does not change the situation in any way.

This extension was previously not supported on mach64, mga (G200),
savage (Savage3D and other pre-Savage4), sis, and tdfx (Voodoo
Banshee).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_context.c
677743f7d598a599281d420a60e45be9f6af584f 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove ARB_multitexture extension enable flag

All drivers remaining in Mesa support this extension. This extension
is either required or optional features in desktop OpenGL, OpenGL ES
1.x, and OpenGL ES 2.x. The existing support is already partially
broken in Mesa (e.g., querying GL_CLIENT_ACTIVE_TEXTURE in OpenGL ES
2.x). This patch does not change the situation in any way.

This extension was previously not supported on i810, mga (G200), or
tdfx (Voodoo Banshee).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_context.c
d1fda903eca3dd93a5b3dabbeeb0dc99efb67473 01-Aug-2011 Eric Anholt <eric@anholt.net> radeon: Drop mapping we were doing around glGetTexImage().

It's handled by MapTextureImage() now.
akefile
adeon_tex_getimage.c
adeon_texture.c
adeon_texture.h
8df7ca71125ee0ad74260378ff7e185dcf66f3bc 30-Jul-2011 Brian Paul <brianp@vmware.com> mesa: Convert GetCompressedTexImage to using MapTextureImage().

This changes drivers to not map the texture on their own before
calling _mesa_get_compressed_teximage().

Tested-by: Brian Paul <brianp@vmware.com>
adeon_tex_getimage.c
adeon_texture.c
adeon_texture.h
5e4f42b0170416523b42dd89aa377fa2117bb3c4 23-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> dri: Remove redundant GL_SGIS_texture_edge_clamp enables

This extension is enabled by default in _mesa_init_extensions, so
drivers don't need to enable it again.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_context.c
499f0685e8236eca410fce516de0e9bab7e25be8 18-Sep-2011 Brian Paul <brianp@vmware.com> radeon: use _mesa_unclamped_float_rgba_to_ubyte()
adeon_state.c
adeon_tex.c
2836aab2031d5b6926923fbc70f867ec638301bd 09-Sep-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Use ColorLogicOpEnabled instead of _LogicOpEnabled

Since GL_EXT_blend_logic_op is removed, _LogicOpEnabled and
ColorLogicOpEnabled always have the same value.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
adeon_pixel_read.c
abdfa0b4f1e5ae0bd3d71ae7099b6bb7c2bfae71 17-Sep-2011 Brian Paul <brianp@vmware.com> radeon: make radeon_texture_image a subclass of swrast_texture_image
adeon_common_context.h
adeon_mipmap_tree.c
adeon_tex_copy.c
adeon_tex_getimage.c
adeon_texture.c
146f536b3332b7a2022bb4ba5e2d1d2ec4bedd98 17-Sep-2011 Brian Paul <brianp@vmware.com> mesa: add new DeleteTextureImage() driver hook

Matches the NewTextureImage() hook. With new subclasses of
gl_texture_image coming we need a new hook to properly delete objects of
those subclasses.
adeon_texture.c
81a86aea4f0990a1b8795f9e00e7a6c4ba368281 14-Sep-2011 Dave Airlie <airlied@redhat.com> mesa/colormac: introduce inline helper for 4 unclamped float to ubyte.

This introduces an UNCLAMPED_FLOAT_TO_UBYTE x 4 inline function, as
suggested by Brian. It uses it in a few places I noticed from previous
color changes, and also some core mesa places. I haven't updated other places
yet.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_state.c
093dc9e548537e6c77e33064a584f849ad90dfa5 12-Sep-2011 Dave Airlie <airlied@redhat.com> mesa: introduce a clear color union to be used for int/unsigned buffers

This introduces a new gl_color_union union and moves the current
ClearColorUnclamped to use it, it removes current ClearColor completely and
renames CCU to CC, then all drivers are modified to expected unclamped floats instead.

also fixes st to use translated color in one place it wasn't.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_state.c
6fb32b4a5fd731fa789d47ed6dcf29991df1e09b 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> radeon: Enable extensions by just setting the flags

Core Mesa already does the dispatch offset remapping for every
function that could possibly ever be supported. There's no need to
continue using that cruft in the driver.

Since the call to _mesa_enable_imaging_extensions (via
driInitExtensions) is removed, EXT_blend_color, EXT_blend_logic_op,
and EXT_blend_minmax are no longer advertised. These all resulted in
software fallbacks, so their loss will not be mourned.
EXT_blend_subtract is, however, explicitly added to the list.
GL_FUNC_SUBTRACT is fully accelerated, but GL_FUNC_REVERSE_SUBTRACT
(still) results in a software fallback.

Cc: Alex Deucher <alexdeucher@gmail.com>
Cc: Dave Airlie <airlied@redhat.com>
adeon_context.c
55d232a81566cf7ab8855c42e2ef1a280276a04c 26-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove all mention of MESA_FORMAT_CI8

Nothing in Mesa supports color-index textures, and most of the other
infrastructure that could allow such support has already been removed.
This puts the final nail in the coffin.

Also clean out some GL_COLOR_INDEX comments in formats.c.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
adeon_texstate.c
587fdf07da1ca8fdc4fdadbe5a78dd9d0088a880 01-Aug-2011 Eric Anholt <eric@anholt.net> radeon: Add MapTextureImage() implementation.

Reviewed-by: Brian Paul <brianp@vmware.com>
adeon_texture.c
ff68e3d30415712e0c3d36dc48b47345c852da01 01-Aug-2011 Eric Anholt <eric@anholt.net> radeon: Refactor the common texture hook setup to common code.

Reviewed-by: Brian Paul <brianp@vmware.com>
adeon_tex.c
adeon_texture.c
adeon_texture.h
0bb29949ba8a9e5a15dc0640dbb0a4e7990a1d57 27-Jul-2011 Eric Anholt <eric@anholt.net> mesa: Rename FreeTexImageData to FreeTextureImageBuffer.

This was produced by sed, except for one hunk in driverfuncs.c where
trailing whitespace was dropped.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
adeon_tex.c
adeon_texture.c
adeon_texture.h
4990e7e9fb6d64f5e4c23915767e5cea32c02965 04-Aug-2011 Eric Anholt <eric@anholt.net> radeon: Fix flushing before writing a teximage's BO when !t->bo.

Before, if we ended up here without a BO for our image, but did choose
a miptree that had active rendering in the command buffer, our
teximage data would jump ahead of the rendering using the old texture
contents.

This showed up as breakage in gen-teximage and friends in the
following commit.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
adeon_texture.c
28249bd260f4c52badf3eb61ade2744604b21bca 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Eliminate dd_function_table::MapBuffer

Replace all calls to dd_function_table::MapBuffer with appropriate
calls to dd_function_table::MapBufferRange, then remove all the cruft.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_buffer_objects.c
cccc7412c22a704d85203d7bb9c8e73d45cccf49 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> radeon: Hack up an implementation of MapBufferRange

This doesn't implement any of the "cool" features of MapBufferRange.
Adding this function is necessary for the next commit in the series.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Cc: Maciej Cencora <m.cencora@gmail.com>
adeon_buffer_objects.c
6c8aa3491a19535e8c39a47a3766bf8524e80582 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove target parameter from dd_function_table::GetBufferSubData

No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_buffer_objects.c
92f3fca0ea429dcf07123e63447449db53308266 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove target parameter from dd_function_table::BufferSubData

No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_buffer_objects.c
12d924c5ae14a1c6a05a3dcae29b77e7668e227d 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove target parameter from dd_function_table::MapBuffer

No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_buffer_objects.c
56f0c00f125ee75caeadc1c9e8cab8a488635e5e 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove target parameter from dd_function_table::UnmapBuffer

No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_buffer_objects.c
5880a9a4a7247e4c31df606bef089c45b4052aaa 04-Aug-2011 Eric Anholt <eric@anholt.net> radeon: Explain to the user what went wrong when built without libdrm.

Before this commit, even LIBGL_DEBUG=verbose would just fail with:
libGL error: failed to create dri screen
adeon_bocs_wrapper.h
e0e4c2e30552e524c91b2eb98a2dabdcd4666169 02-Aug-2011 Eric Anholt <eric@anholt.net> radeon: Remove some remaining set-but-unused variables.

These looked more like copy-and-paste to me than the others (which
looked more like possibly someone forgot to write some code in a
refactor), so I didn't verify where they came from.
adeon_common.c
adeon_common_context.c
adeon_cs_legacy.c
8de1d42f244f6315c471b01ef52a61f61d227c6d 02-Aug-2011 Eric Anholt <eric@anholt.net> radeon: Remove set-but-unused variables in radeon_lock.c

These have been unused since this function's introduction in the FBO
support development around 2009.
adeon_lock.c
f5e612ab594689c7736f8af082e88c107bd7582c 02-Aug-2011 Eric Anholt <eric@anholt.net> radeon: Remove set-but-unused variables in radeonSetTexBuffer2() variants.

These have been unused since 2009.
adeon_texstate.c
25fffa9364baef76a7e7e875be1fb3c4f10aadfd 02-Aug-2011 Eric Anholt <eric@anholt.net> radeon: Remove set-but-unused log2depth variable.

r100 doesn't support 3D GL_EXT_texture3D.
adeon_texstate.c
7cf799d47269ce01d3e5981709744a16b7c2756c 02-Aug-2011 Eric Anholt <eric@anholt.net> radeon: Remove set-but-unused color_mask variable.

This has been around since the initial import in 2003 and never used.
adeon_ioctl.c
9ed87c4463cf265b06566d15ba86bf20661c70de 20-Jul-2011 Brian Paul <brianp@vmware.com> radeon: remove radeonCopyTexImage2D()
adeon_tex.c
adeon_tex_copy.c
adeon_texture.h
a3d23a4868e0d95971086df17e04ed9f9f5f3121 15-Jul-2011 Alex Deucher <alexander.deucher@amd.com> r600c/g: add new NI pci ids

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
adeon_screen.c
5ff22ab229d40a5ffc6f5e67f58359cdef33e8dc 22-Jun-2011 Alex Deucher <alexdeucher@gmail.com> r600c: add missing bank tiling case for evergreen

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_screen.c
24a760e9cb7a1c905e36135534d4a9c6e93c3f2a 15-Jun-2011 Alex Deucher <alexdeucher@gmail.com> r600c: add tiling support for evergreen+

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_screen.c
10e418f3815d690b2526e835bc7eb421b6be7050 10-Jun-2011 Eric Anholt <eric@anholt.net> mesa: Switch generate_mipmaps_compressed() to using TexImage2D to upload.

The code was playing fast and loose with rowstrides, which meant that
if a driver chose anything different for its alignment requirements,
the generated mipmaps came out garbage. Unlike the uncompressed case,
we can't generate mipmaps directly into image->Data, so by using
TexImage2D we cut out most of the weird logic that existed to generate
in-place into ->Data. The up/downside is that the driver recovery
code for the fact that _mesa_generate_mipmaps whacked ->Data has to be
turned off for compressed now.

Fixes 6 piglit tests about compressed mipmap gen.
adeon_texture.c
4fa01d705f0b795a5df30127925ced8e0522631f 14-Jun-2011 Brian Paul <brianp@vmware.com> dri: include swrast.h, not s_texrender.h
adeon_fbo.c
755f2e2ae597df9208523b0996bbdabf3db463b0 13-Jun-2011 Brian Paul <brianp@vmware.com> mesa: move texrender.c to swrast

This stuff is really for software rendering, it's not core Mesa.
A small step toward pushing the FetchTexel() stuff down into swrast.

Reviewed-by: Eric Anholt <eric@anholt.net>
adeon_fbo.c
6b821936779d6e3ab76bd353dfa8bdd17124654d 06-Jun-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> radeon: Use pciid list to generate PCI_CHIP_<FAMILY>_<ID> defines

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
adeon_chipset.h
873379a8818eed9ab16c24728b7091a3a3705c5b 03-Jun-2011 Johannes Obermayr <johannesobermayr@gmx.de> dri/nouveau: Fix build with --enable-shared-dricore.

- Based on the work of Себастьян Gliţa Κατινα <cglita@yahoo.com>
- Split Makefile.template into Makefile.defines and Makefile.targets
- Adapt other drivers to new situation
- Fixes https://bugs.freedesktop.org/show_bug.cgi?id=35441

Signed-off-by: Brian Paul <brianp@vmware.com>
akefile
c5903ed4541ec4f9389e33ba27c9527afa87ec44 04-Apr-2011 Alex Deucher <alexdeucher@gmail.com> r600c: add support for llano

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_chipset.h
adeon_common_context.c
adeon_screen.c
8c3226be9004657db6c850b3164caf70deafa822 06-May-2011 Kostas Georgiou <georgiou@opengamma.com> Add pci id for FirePro 2270

Signed-off-by: Kostas Georgiou <georgiou@opengamma.com>
adeon_chipset.h
adeon_screen.c
27477248d35928f5043ebcaf268c30442fc12d8c 03-May-2011 Alex Deucher <alexdeucher@gmail.com> r600c: add some new pci ids

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_chipset.h
adeon_screen.c
3c3a2596033d88848392c4aab5cc16d96afe149f 19-Apr-2011 Cédric Cano <ccano@interfaceconcept.com> r600c: add big endian support for r6xx/r7xx

Signed-off-by: Cedric Cano <ccano@interfaceconcept.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_common.c
adeon_span.c
ecfaab88b2577bd0395bc05d75a036126806a9c4 10-Apr-2011 Brian Paul <brianp@vmware.com> mesa: move sampler state into new gl_sampler_object type

gl_texture_object contains an instance of this type for the regular
texture object sampling state. glGenSamplers() generates new instances
of gl_sampler_object which can override that state with glBindSampler().
adeon_mipmap_tree.c
adeon_tex.c
0fe34b7bbc9a8e089bbb4d0fe401b09095a571eb 01-Mar-2011 Ian Romanick <ian.d.romanick@intel.com> dri: Remove driver date from renderer string

Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
adeon_common_context.c
adeon_context.c
b0da65bd0e5ecb443cfd0dbae15f5ae5638bcf72 04-Apr-2011 Alex Deucher <alexdeucher@gmail.com> r600c: add new ontario pci ids

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_chipset.h
adeon_screen.c
c22a7f9045ff7a4a9505225a133b25e262958e1c 24-Mar-2011 Iain Hibbert <plunky@rya-online.net> radeon: use C99 style in macros with variable arguments

Signed-off-by: Iain Hibbert <plunky@netbsd.org>
adeon_debug.h
ff2950dd690a2ed9ee96823030ba9edf073c8229 24-Mar-2011 Brian Paul <brianp@vmware.com> radeon: reorder #includes to silence warnings

Silences warnings about RADEON_TILING_SURFACE being redefined.
Only compile tested, not run tested.
adeon_bocs_wrapper.h
7d40bf25662feea57a804502814634ffa908b58c 24-Mar-2011 Brian Paul <brianp@vmware.com> radeon: fix radeon_create_image_from_name() wrong parameter type
adeon_screen.c
decc6e2a32ef49e673c081f30e19b8970155d887 11-Mar-2011 Brian Paul <brianp@vmware.com> mesa: replace NEED_SECONDARY_COLOR(), RGBA_LOGICOP_ENABLED() with inlines

and rename them.
adeon_state.c
b70610b9823fc7dc3672735c11be1a75fbb1a2a4 01-Mar-2011 Brian Paul <brianp@vmware.com> mesa: move PBO-related functions into a new file
adeon_texture.c
f9e1542286a05e9773f8f31ee75887f6da969cdb 21-Feb-2011 Brian Paul <brianp@vmware.com> radeon: add default switch case to silence unhandled enum warning
adeon_fbo.c
211725eccdda4a9b7959e1f458d253b32186ff6a 12-Feb-2011 Eric Anholt <eric@anholt.net> radeon: Remove setup of the old dri/ meta code, which is now unused.
adeon_common.c
adeon_common_context.c
adeon_common_context.h
6f2f449414e51e3b98f85e3fc916a7f3d42a99d4 09-Feb-2011 Brian Paul <brianp@vmware.com> mesa: remove _mesa_create_context_for_api()

Just add the gl_api parameter to _mesa_create_context().
adeon_common_context.c
8503cffc4c7b8df8d4260161dc8aa06b0f81f19e 02-Feb-2011 Alex Deucher <alexdeucher@gmail.com> r200: remove 0x4243 pci id

There's no such device. 0x4243 is a pci bridge id,
not a GPU.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_chipset.h
adeon_screen.c
634e889bb5aee64ee17dcec221f4fb05ff93270d 21-Jan-2011 Andre Maasikas <amaasikas@gmail.com> r600c: get OQ results only for 4 DBs on r600 class

- since evergreen addition which increased this to 8 depth backends
other bytes may contain garbage values
adeon_queryobj.c
a5da4acb9583db5289fcad410513d0fedcf9bab2 19-Jan-2011 Dave Airlie <airlied@redhat.com> radeon: avoid segfault on 3D textures.

This is a candidate for 7.9 and 7.10
adeon_state.c
4832403c38183380f98713bddb077b5179ae073f 19-Jan-2011 Dave Airlie <airlied@redhat.com> radeon: oops didn't need this logbase2 fn
adeon_texstate.c
c6fb88fc5a77ed7e40eda6db772990714c3b8c01 19-Jan-2011 Dave Airlie <airlied@redhat.com> radeon: calculate complete texture state inside TFP function

(really not sure why I'm doing this).

This is a candidate for 7.9 and 7.10 branches.
adeon_texstate.c
f7bab47e6c7cf877acf6d9bb85453851e5aa7f19 19-Jan-2011 Dave Airlie <airlied@redhat.com> radeon/r200: fix fbo-clearmipmap + gen-teximage

sw clears were being used and not getting the correct offsets in the span
code.

also not emitting correct offsets for CB draws to texture levels.

(I've no idea why I'm playing with r100).

This is a candidate for 7.9 and 7.10
adeon_span.c
adeon_state_init.c
4ef3e261a4dbe81c1ca73dbf83d45edf332c8d68 18-Jan-2011 Andre Maasikas <amaasikas@gmail.com> r600c: preserve correct buffer when using fbo

Hopefully better than previous - this passes more mipgen tests
adeon_common_context.c
74713e2d293f9e796a4053a5a99ee5cb7df5c740 11-Jan-2011 Brian Paul <brianp@vmware.com> mesa: begin implementation of GL_ARB_draw_buffers_blend
adeon_state.c
fb9c6e681f91c986b7cbe2d6e9f6baceda00c415 09-Jan-2011 Vinson Lee <vlee@vmware.com> radeon: Include mfeatures.h in files that perform feature tests.
adeon_context.c
adeon_fbo.c
adeon_tex.c
adeon_texture.c
adeon_texture.h
7b97bdba4096180df4e32e6c52f79713a649478b 07-Jan-2011 Alex Deucher <alexdeucher@gmail.com> r600c: add support for NI asics
adeon_chipset.h
adeon_common_context.c
adeon_screen.c
fb03510738e80716068a193a4078814d0e801120 02-Jan-2011 Dave Airlie <airlied@redhat.com> radeon: fix build on non-KMS systems.

Reported on irc by adamk.
adeon_bocs_wrapper.h
fd543e1f9506fe41e6e9e78aebbe0bca01df055c 09-Dec-2010 Alex Deucher <alexdeucher@gmail.com> radeon: bump mip tree levels to 15

I forgot to bump this when I bumped the tex levels.
adeon_mipmap_tree.h
072f2cbf29725c698497fd451a3289802ff31a40 22-Nov-2010 Alex Deucher <alexdeucher@gmail.com> r600c: add Ontario Fusion APU support

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_chipset.h
adeon_common_context.c
adeon_screen.c
83e93b6008213ad86607027e8434ecaccc8b1a2c 19-Nov-2010 Brian Paul <brianp@vmware.com> mesa: pass gl_format to _mesa_init_teximage_fields()

This should prevent the field going unset in the future. See bug
http://bugs.freedesktop.org/show_bug.cgi?id=31544 for background.

Also remove unneeded calls to clear_teximage_fields().

Finally, call _mesa_set_fetch_functions() from the
_mesa_init_teximage_fields() function so callers have one less
thing to worry about.
adeon_texstate.c
75e52556a8e72f2841ef03de91255f260160ebd2 17-Nov-2010 Alex Deucher <alexdeucher@gmail.com> r600c/evergreen: texture align is group_bytes just like 6xx/7xx

Default group bytes to 512 on evergreen. Don't query
tiling config yet for evergreen, the current info returned is not
adequate for evergreen (no way to get bank info).
adeon_common_context.c
adeon_screen.c
86abc1f104c99ecc45385ba669c5274e0d68c516 15-Nov-2010 Brian Paul <brianp@vmware.com> radeon: set gl_texture_image::TexFormat field in radeonSetTexBuffer2()

See https://bugs.freedesktop.org/show_bug.cgi?id=31544

Note: this is a candidate for the 7.9 branch
adeon_texstate.c
ef0720758e5ba34d0d163bdf5efc6e8dabd65aa8 15-Nov-2010 Daniel Lichtenberger <daniel.lichtenberger@gmail.com> radeon: fix potential segfault in renderbuffer update

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

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_common_context.c
d7855ee3323e8493f139af70db9d0cdb853c2a08 09-Nov-2010 Johann Rudloff <cypheon@googlemail.com> radeon: Implement GL_OES_EGL_image

agd5f: add support to radeon/r200/r300 as well
adeon_context.c
adeon_fbo.c
adeon_tex.c
adeon_texture.c
adeon_texture.h
b42e562a11a1dded1c4c734de065cb1480da1772 08-Nov-2010 Johann Rudloff <cypheon@googlemail.com> radeon: Implement __DRI_IMAGE and EGL_MESA_image_drm
adeon_screen.c
adeon_screen.h
f9b5201dbdca4a612afdd694a583177fb4af8685 27-Jul-2010 Johann Rudloff <cypheon@googlemail.com> radeon: Implement EGL_MESA_no_surface_extension
adeon_common.c
adeon_common_context.c
5b15b5f4a8fffa07d8051e6cd4cd0a6c9288fc9f 08-Nov-2010 Alex Deucher <alexdeucher@gmail.com> r600c: properly align mipmaps to group size

fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=31400
adeon_common_context.c
adeon_screen.c
b194b9b23801cd716244047b0b9b8bd9be518b78 27-Oct-2010 Alex Deucher <alexdeucher@gmail.com> r100: revalidate after radeon_update_renderbuffers

This is a port of 603741a86df0e43c0b52e8c202a35c7fe2fc1d9c
to r100.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_swtcl.c
adeon_tcl.c
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
adeon_blit.c
adeon_blit.h
adeon_buffer_objects.c
adeon_common.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
adeon_context.c
adeon_dma.c
adeon_dma.h
adeon_fbo.c
adeon_ioctl.c
adeon_ioctl.h
adeon_maos.h
adeon_maos_arrays.c
adeon_maos_vbtmp.h
adeon_maos_verts.c
adeon_mipmap_tree.c
adeon_pixel_read.c
adeon_queryobj.c
adeon_queryobj.h
adeon_span.c
adeon_span.h
adeon_state.c
adeon_state.h
adeon_state_init.c
adeon_swtcl.c
adeon_swtcl.h
adeon_tcl.c
adeon_tcl.h
adeon_tex.c
adeon_tex.h
adeon_tex_copy.c
adeon_tex_getimage.c
adeon_texstate.c
adeon_texture.c
adeon_texture.h
31aca27c08d6a385c595d34fe4ee06390bf5b0e8 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLframebuffer typedef and just use struct gl_framebuffer
adeon_screen.c
d3491e775fb07f891463b2185d74bbad62f3ed24 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Rename GLvisual and __GLcontextModes to struct gl_config
adeon_common_context.c
adeon_common_context.h
adeon_context.c
adeon_context.h
adeon_screen.c
603741a86df0e43c0b52e8c202a35c7fe2fc1d9c 10-Oct-2010 Daniel Vetter <daniel.vetter@ffwll.ch> r200: revalidate after radeon_update_renderbuffers

By calling radeon_draw_buffers (which sets the necessary flags
in radeon->NewGLState) and revalidating if NewGLState is non-zero
in r200TclPrimitive. This fixes an assert in libdrm (the color-/
depthbuffer was changed but not yet validated) and and stops the
kernel cs checker from complaining about them (when they're too
small).

Thanks to Mario Kleiner for the hint to call radeon_draw_buffer
(instead of my half-broken hack).

v2: Also fix the swtcl r200 path.

Cc: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
adeon_common_context.c
1663e6da2f15ff8db9f08ca6a7337f8bd28add17 30-Sep-2010 Nicolas Kaiser <nikai@nikai.net> dri/radeon: remove duplicated includes

Remove duplicated includes.

Signed-off-by: Brian Paul <brianp@vmware.com>
adeon_ioctl.c
adeon_maos_verts.c
7f11d471e6bafae2282ec82ba4a19d30c440d28f 27-Sep-2010 Ian Romanick <ian.d.romanick@intel.com> mesa: Force GL_SGIS_generate_mipmap to always be enabled

As per discussions at XDS.
adeon_context.c
15861e0074bdc0185662ef6a6f4358230a187243 24-Sep-2010 Alex Deucher <alexdeucher@gmail.com> r600c: fix mipmap stride on evergreen

taken from Dave's r600g fix
adeon_common_context.c
1c0646a826cb19d3c3eaa84591930590db6e8af8 24-Sep-2010 Eric Anholt <eric@anholt.net> radeon: Remove copied minimum pitch alignment code.

This is already covered by radeon_mipmap_tree.c, and my convolution
cleanups broke in the presence of this code. Thanks to Marek Olšák
for tracking down the relevant miptree code for me.
adeon_texture.c
a62efdf82c20747feb11dfd7756f0579aa914b57 10-Sep-2010 Eric Anholt <eric@anholt.net> mesa: Remove EXT_convolution.

More optional code.
adeon_texture.c
9cced19125f0c8bfe05d7d0c599b5c556efb20e7 10-Sep-2010 Alex Deucher <alexdeucher@gmail.com> r600c: add OQ support for evergreen
adeon_queryobj.c
b4bb6680200b5a898583392f4c831c02f41e63f7 08-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> dri: Unset current context and dispatch table when unbinding

Otherwise, when we switch to an indirect glx context and then back, it looks
like we're still current.

https://bugs.freedesktop.org/show_bug.cgi?id=29977#c7
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
adeon_common_context.c
d8bba2ef69371a78eaa981846924e241a05b85b6 05-Sep-2010 Henri Verbeet <hverbeet@gmail.com> radeon: Add radeon_buffer_objects.c.
akefile
50b9c54ef6b813b348df7e63a0cf291d3d9d39f4 04-Sep-2010 Henri Verbeet <hverbeet@gmail.com> radeon: Make do_blit_readpixels() into a PBO work.
adeon_pixel_read.c
c3c25a7ab8507c9c6b21137de03b5d94c2420369 01-Sep-2010 Andre Maasikas <amaasikas@gmail.com> r600: cube mipmap levels are aligned to 8 faces only starting from r7xx
adeon_mipmap_tree.c
d1b4f4034796e607371536d43370c6fefc22811c 24-Aug-2010 Alex Deucher <alexdeucher@gmail.com> radeon: print chip family for evergreen in renderer string
adeon_chipset.h
adeon_common_context.c
0eac4b8740d4434037677166f2339e894d4ebac4 21-Aug-2010 richard <richard@richard-desktop3.(none)> evergreen : initial support driver code.
adeon_chipset.h
adeon_common_context.h
adeon_screen.c
234a06517185efd972ec162bf9536183c5bc04c3 13-Jul-2010 nobled <nobled2@nobled2-karmic.(none)> dri/radeon: test for FEATURE defines

'struct dd_function_table' only conditionally contains
the function pointer NewFramebuffer and friends based on
FEATURE_EXT_framebuffer_* defines. (See src/mesa/main/dd.h)

Fixes the build when the features are disabled and the vfuncs
don't exist.
adeon_fbo.c
e165453f84517b08afc2e2bf684546e9e24f3f30 09-Aug-2010 Henri Verbeet <hverbeet@gmail.com> radeon: Use MESA_FORMAT_SARGB8 for sRGB formats

This can be supported on r600 without using the endian swapper, and is a
better fit for (typical) uploads using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV
anyway.
adeon_texture.c
67ee40684d253f194dbbd5c81799da61151ee09f 09-Aug-2010 Andre Maasikas <amaasikas@gmail.com> radeon: fix npot mipmap alignment on r600

seems it got lost in commit 0d383547
have no earlier radeons to test, but npot mipmaps were not supported there?
adeon_mipmap_tree.c
facf368df29b6889e9566aaa642aa1937e6dfc56 08-Aug-2010 Vinson Lee <vlee@vmware.com> dri: Add missing header m_xform.h.

This is a follow-up patch to commit
f4511c4835879090ce7e6afe3ac26b98fb91899a.

Files that include tnl_dd/t_dd_dmatmp.h now need to also include
m_xform.h as t_context.h no longer includes it.
adeon_swtcl.c
1e46de3a834b361f4227f90dd1fe2e401d0d7723 07-Aug-2010 Marek Olšák <maraeo@gmail.com> r300c: do not advertise half float vertex on RV3xx, RS4xx, RC4xx

Fixes a hardlock.

NOTE: this is a candidate for the 7.8 branch, provided the half float vertex
is really implemented there.
adeon_chipset.h
918ef7ff18dc407d8ab1d6dc9cfb1267618c6534 05-Aug-2010 Alex Deucher <alexdeucher@gmail.com> r600c: tiling require drm 2.6.0, not 2.5.0
adeon_screen.c
e93d413a0d81f591318f362f770083e9ecc7e0c0 21-Jul-2010 Alex Deucher <alexdeucher@gmail.com> r600: add support for getting the tiling config via drm ioctl (v2)

Needed for the the 2D tiling span functions.

v2: rebase on new kernel, mesa changes

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_screen.c
063c70d7f72a043037fb4c9b534c53208f86611d 20-May-2010 Alex Deucher <alexdeucher@gmail.com> r600: add span support for 2D tiling

Requires tiling config ioctl support from the drm to use.
kms only.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_common_context.c
adeon_common_context.h
adeon_screen.h
adeon_span.c
646d2e9fbc41bf49075013009e9583bec4a51168 02-Aug-2010 Mario Kleiner <mario.kleiner@tuebingen.mpg.de> radeon: Add DRI2 flush extension support, so we synchronize properly.

When a DRI2 swap buffer is pending we need to make sure we
have the flush extension so radeon doesn't resume rendering to
or reading from the not yet blitted front buffer.

This fixes:

https://bugs.freedesktop.org/show_bug.cgi?id=28341
https://bugs.freedesktop.org/show_bug.cgi?id=28410

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
adeon_common.c
adeon_common_context.c
adeon_common_context.h
adeon_pixel_read.c
adeon_screen.c
adeon_swtcl.c
adeon_tcl.c
adeon_tex_copy.c
3d39f56a8721ec6aa6d00965b7740fc8cb5edaae 02-Aug-2010 Jerome Glisse <jglisse@redhat.com> Revert "radeon: Add DRI2 flush extension to so we synchronize properly."

This reverts commit 8446f257b3e3ca4a3eb2c79bc357e46343e04e87.
adeon_common_context.c
adeon_common_context.h
adeon_screen.c
adeon_swtcl.c
adeon_tcl.c
8446f257b3e3ca4a3eb2c79bc357e46343e04e87 25-Jul-2010 Mario Kleiner <mario.kleiner@tuebingen.mpg.de> radeon: Add DRI2 flush extension to so we synchronize properly.

When DRI2 swap buffer is pending (copy buffer not pageflipping)
we need to make sure we have the flush extension so radeon doesn't
resume rendering on the not yet blitted front buffer.

Modified version of Jerome's patch to add flush extension
in the correct place.

This prepares a possible fix for:

https://bugs.freedesktop.org/show_bug.cgi?id=28341
https://bugs.freedesktop.org/show_bug.cgi?id=28410

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
adeon_common_context.c
adeon_common_context.h
adeon_screen.c
adeon_swtcl.c
adeon_tcl.c
c4889fa5f046f0f6cb04fe6cc20d789bb0551baf 20-Jul-2010 Vinson Lee <vlee@vmware.com> radeon: Remove unnecessary header.
adeon_screen.c
22266c391fbe17603b15a83d4ccf5fa9455ccf8d 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Remove support for MESA_swap_frame_usage

The extension never worked, the implementation returns GLX_BAD_CONTEXT
when enabling the frame tracking.
adeon_screen.c
cb2a66fd0c095fe03be5aaf88c8d48f5867425d3 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop support for GLX_MESA_allocate_memory

Only r200 implemented it.
adeon_screen.c
fef9b532cd1631cc53056b9eba4369d1310b88df 15-Jul-2010 Henri Verbeet <hverbeet@gmail.com> radeon: Also flush if it's not the current context that's being destroyed.

This avoids calling radeonFlush() during context destruction, when
ctx->DrawBuffer would be NULL.

NOTE: This is a candidate for the 7.8 branch.
adeon_common_context.c
0a7803cbaca13033d9ed31ef33f59efa913fbfce 15-Jul-2010 Alex Deucher <alexdeucher@gmail.com> radeon: allow driconf vblank settings with dri2

fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=28771

NOTE: This is a candidate for the 7.8 branch.
adeon_screen.c
ba03a0b5ba73bc8e79d0ffa6d1da623544716f74 12-Jul-2010 Maciej Cencora <m.cencora@gmail.com> radeon: fix some wine d3d9 tests

Need to flush command stream before mapping texture image
that is referenced by current cs.

Candidate for 7.8 branch.

Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
adeon_tex_getimage.c
72e6a1e72f21653295165320fbca6961eddc9eb3 11-Jul-2010 Maciej Cencora <m.cencora@gmail.com> radeon: lower texture memory consumption is some cases

When searching for valid miptree check images in range
of [BaseLeve, MaxLevel] not [MinLod, MaxLoad].
Prevents unnecessary miptree allocations in cases when during
every rendering operation different texture image level
was selected using MIN_LOD = MAX_LOD = level (for every level
new miptree for whole texture was allocated).

Candidate for 7.8 branch.

Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
adeon_mipmap_tree.c
ad24ea37bb0cef7b383bb38e31466b6bb1f7fce6 11-Jul-2010 Maciej Cencora <m.cencora@gmail.com> radeon: fix teximage migration failure in rare case

Always store selected miptree in texObj->mt so get_base_teximage_offset returns correct data.
Found with piglit/mipmap-setup.

Candidate for 7.8 branch.

Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
adeon_mipmap_tree.c
c674a7eb7fb2fd170df7ff5e3cefdddabda1a03f 19-Jun-2010 Will Dyson <will.dyson@gmail.com> Revert "Fix image_matches_texture_obj() MaxLevel check"

This reverts commit a9ee95651131e27d5acf3d10909b5b7e5c8d3e92.
It was based on a failure to understand how ther driver allocates
memory, and causes a regression with Celestia.

Set MaxLevel to dstLevel before allocating new mipmap level.

The radeon driver will fail to allocate space for a new level that
is outside of BaseLevel..MaxLevel. Set MaxLevel before allocating.

Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
adeon_texture.c
055750fafba58fd2ee0f5611b566a71ab0f22984 25-May-2010 Will Dyson <will.dyson@gmail.com> Enable hardware mipmap generation for radeon.

Use _mesa_meta_GenerateMipmap. It is Fast Enough(tm).

Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_texture.c
a9ee95651131e27d5acf3d10909b5b7e5c8d3e92 25-May-2010 Will Dyson <will.dyson@gmail.com> Fix image_matches_texture_obj() MaxLevel check

When generating or uploading a new (higher) mipmap level for an image,
we can need to allocate a miptree for a level greater than
texObj->MaxLevel.

Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_texture.c
f49da110a81cc964100efa6a09e0fcdc7a35a935 25-May-2010 Will Dyson <will.dyson@gmail.com> Fallback to software render if there is no miptree for an image

This can happen when checking if a software fallback for a higher level
operation (such as GenerateMipmap) is needed.

Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_fbo.c
0870e4a2022cff79805613ae7cd4b9237a2f564c 02-May-2010 Kristian Høgsberg <krh@bitplanet.net> Merge branch 'gles2-2'

Conflicts:
src/mesa/drivers/dri/common/dri_util.h
a7a9a91d7b28e5b5faed509d00f0f951e3136b1b 27-Apr-2010 Kristian Høgsberg <krh@bitplanet.net> dri: Add DRI entrypoints to create a context for a given API
adeon_context.c
adeon_context.h
dab8f6b1d9781e91ce5102f1bb98f0e1b1b9a3cf 21-Apr-2010 Marek Olšák <maraeo@gmail.com> radeon: fix warning
adeon_dma.c
7440fd89b43184275c0214bbeeb8acc26b88815b 28-Apr-2010 Marek Olšák <maraeo@gmail.com> radeon: fix warnings
adeon_queryobj.c
d69ed3a96eb4ed2630bee28f1937d376eee435e1 25-Apr-2010 Vinson Lee <vlee@vmware.com> radeon: Remove NULL check of bo_legacy->tobj.

bo_legacy->tobj cannot be NULL before the call to driUpdateTextureLRU.
There is a NULL check earlier in the routine, and if bo_legacy->tobj is
NULL, memory is allocated.
adeon_bo_legacy.c
ff20543c815a14fddad1efaaef1610454a1924d4 23-Apr-2010 Michel Dänzer <daenzer@vmware.com> Merge branch '7.8'
355370e30b083e6fd130c259f4378530c715142c 22-Apr-2010 Tormod Volden <debian.tormod@gmail.com> radeon: 9800 SE has only one quadpipe

Although these cards have 2 pipelines on the silicon only
the first passed the QA and the other should be disabled.

http://www.digital-daily.com/video/ati-radeon9800se/
http://www.rojakpot.com/showarticle.aspx?artno=101&pgno=1

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
adeon_screen.c
234286c0f8b7d30ed49223c648d4c73c1a517ab3 22-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: add config query extension

Add a new DRI2 configuration query extension. Allows for DRI2 client
code to query for common DRI2 configuration options.
adeon_screen.c
adeon_screen.h
64644ec3b21884d4a974fa29087fa98c4ed9e112 19-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> Merge branch '7.8'
f4553d99c63e4bcb4d023c9e33b72fedd0dfbdc1 19-Apr-2010 Matthieu Herrb <matthieu.herrb@laas.fr> radeon: Let this build with gcc 3.3

Declaring the loop index inside for () is not supported by this version.

Signed-off-by: Brian Paul <brianp@vmware.com>
adeon_mipmap_tree.c
c39ab02ae9be9c6adf8f2d1382fed88f1daf03bf 19-Apr-2010 Owain Ainsworth <zerooa@googlemail.com> radeon: Fix command type for DRM_RADEON_IRQ_EMIT ioctl.

This should be drmCommandWriteRead to avoid an EINVAL error on systems
that strictly check ioctl args. This command has been r/w for ever.
Discussion with airlied agreed that this was the correct course.

Signed-off-by: Brian Paul <brianp@vmware.com>
adeon_cs_legacy.c
f7c2d4fee3104008c21078879cbc5720d7bc1be6 19-Apr-2010 Dave Airlie <airlied@redhat.com> r300c/r300g: add 3155 rv380 pci id
adeon_chipset.h
adeon_screen.c
0203136e69bfa711edd69a4f69c4539cd877b5cb 11-Apr-2010 Maciej Cencora <m.cencora@gmail.com> Merge commit 'origin/7.8'
6bd99f113089efb9c39082c991ca5962aae29746 11-Apr-2010 Vinson Lee <vlee@vmware.com> radeon: Remove unnecessary header.
adeon_tex_getimage.c
edff2e058571cfd8e1cb94e668c35f3d3cac4d80 10-Apr-2010 Alex Deucher <alexdeucher@gmail.com> r600: add new r7xx pci ids
adeon_chipset.h
adeon_screen.c
d9a19d8649e49acfac98c240bff88931be7743d7 12-Mar-2010 Alex Deucher <alexdeucher@gmail.com> r100/r200/r300/r600: enable accel for Copy/DrawPixels without kms

meta ops should work ok without kms.
adeon_state.c
f0f04cd12db156ec53b7ea46fae27199af121f90 17-Mar-2010 Pauli Nieminen <suokkos@gmail.com> Merge branch '7.8' into master

Conflicts:
Makefile
src/mesa/main/version.h
e9c2c4a76466fc1ccfbf4d5de048414f7126b940 15-Mar-2010 Pauli Nieminen <suokkos@gmail.com> radeon: Fix buffer object unmap to be called only once for dma buffers.

If flush happens inside radeonRefillCurrentMaRegion the last dma buffer would
be unmapped twice. Unmapping buffer when moving buffer to wait list fixes the
mapping error.
adeon_dma.c
abc847c20da92e52f29da40c6dd014f5caf46d8b 13-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon: add some debuging info for glCopyTex(Sub)Image
adeon_tex_copy.c
aba40bd4345e36fb56817673369b275f0e9a9c43 13-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon: fix gl format to mesa format mapping and add GL_BGRA formats
adeon_pixel_read.c
1a8a230a61289392e8300901dfabd7911799cbc3 13-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon: fix glCopyTex(Sub)Image

Fallback to swrast for software renderbuffers
adeon_tex_copy.c
b13e305ee1a2454265fd957a99640a2e49507bea 12-Mar-2010 Michel Dänzer <daenzer@vmware.com> Merge branch '7.8'
d1ca1599f0319f5c99852ce24420aa592e806db0 12-Mar-2010 Alex Deucher <alexdeucher@gmail.com> r100/r200/r300/r300: only enable accelerated pixel ops with kms

fixes fdo bug 27043
adeon_state.c
fab1f07d6ad01463897ae792f4b33738afb07369 13-Jun-2008 Jeff Smith <whydoubt@yahoo.com> Grammar and spelling fixes

Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
adeon_state.c
39c2d3ecd9432262bb157da3bb6103f84a4375e5 12-Mar-2010 Vinson Lee <vlee@vmware.com> radeon: Fix memory leaks from early return.
adeon_mipmap_tree.c
3198cd4a65b135005515c6dd35d006330ce31c94 10-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon: fallback to sw ReadPixels if color logicop is enabled

Fixes glean/logicOp (regressed after introducing hw accelerated support for ReadPixels)
adeon_pixel_read.c
a68e8a4eaadfe2a1e4999d5e378c7d9fa99dc656 10-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon: fix glCopyTex(Sub)Image if user FBO is bound

Fixes piglit/fbo-blit and wine d3d9 unit test.
adeon_tex_copy.c
a56da1005d30da60701e33b75d5f4f37096df060 10-Mar-2010 Michel Dänzer <daenzer@vmware.com> Merge branch '7.8'
cc1464cce9613c7f48b630bddf5a6b9fa0d082da 10-Mar-2010 Alex Deucher <alexdeucher@gmail.com> r100: add additional blit formats
adeon_blit.c
e167403e5809c447870644bd9ea09fad369706cf 10-Mar-2010 Alex Deucher <alexdeucher@gmail.com> radeon/r200/r600: enable HW accelerated gl(Read/Copy/Draw)Pixels
adeon_state.c
b70dcabafce0c1a8a9fbbd84ff196e46b0782ca7 07-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon: mark framebuffer as incomplete if renderbuffer format isn't supported by hw
adeon_fbo.c
adeon_mipmap_tree.c
a17563c7ddfa58fe7f09d22a62a10f3488ef3147 07-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon/r200/r300/r600: add is_format_renderable function
adeon_common_context.h
adeon_context.c
adeon_texture.c
adeon_texture.h
ac2b7835d5e61629f0a1f8b6c35eb1efa2ffbfa2 09-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon: add hw accelerated glReadPixel support (not enabled yet)
akefile
adeon_common.h
adeon_pixel_read.c
ffd625d4aaf145eb28fc76617e95ffc3fdfd54cc 08-Mar-2010 Alex Deucher <alexdeucher@gmail.com> radeon: don't attempt to use alternate blit formats for depth buffers

noticed by fredrikh on IRC.
adeon_tex_copy.c
9458c2061ba5d8857217d9a7504b42ea17022897 08-Mar-2010 Alex Deucher <alexdeucher@gmail.com> radeon/r200/r600: allow src and dst BOs to be placed in GTT during blit
adeon_blit.c
d7ad1b8b0788536f6fcd261fbe0db7a10b84ac0a 08-Mar-2010 Alex Deucher <alexdeucher@gmail.com> radeon/r200/r600: reset bos when validating buffers during blit
adeon_blit.c
29e02c7e720a18b59317c4ad97d8ffc149228c69 16-Jan-2010 Maciej Cencora <m.cencora@gmail.com> radeon: no need to emit full state twice after flush
adeon_common.c
8ccd83ab921380953a0e5cebd941444f85c23ed1 06-Feb-2010 Maciej Cencora <m.cencora@gmail.com> radeon: fallback to software in glCopyTexImage if blit isn't available
adeon_tex_copy.c
39ab5ae30c303dd561252cb592d4de35814b6a70 08-Mar-2010 Alex Deucher <alexdeucher@gmail.com> radeon/r200/r600: allow src and dst BOs to be placed in GTT during blit
adeon_blit.c
7959274858fe66a90e6f97fed81141c39cb6702b 08-Mar-2010 Alex Deucher <alexdeucher@gmail.com> radeon/r200/r600: reset bos when validating buffers during blit
adeon_blit.c
ba196a8318af6217fece3777ea038539fea4b415 07-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon: handle compressed sRGB texture formats
adeon_texture.c
ccbe3f0314c8278c55e1046a619969ae539564de 17-Jan-2010 Maciej Cencora <m.cencora@gmail.com> radeon: move glGetTexImage handlers to seperate file
akefile
adeon_tex_getimage.c
adeon_texture.c
2b801066a1fcd8a83a367f70736d6adf2043f979 07-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon: Some possible improvements that I spoted in radeon_tiled_texture branch.
adeon_mipmap_tree.c
d0ca5c3100dfe7ee634e3b455002e11e88822ea7 07-Mar-2010 Maciej Cencora <m.cencora@gmail.com> radeon: properly calculate rowstride for tiled images
adeon_mipmap_tree.c
adeon_mipmap_tree.h
adeon_texture.c
adeon_tile.c
0d3835475fcb803a295dc738d90b83788bdc9472 16-Jan-2010 Maciej Cencora <m.cencora@gmail.com> radeon: minor refactoring of mipmap code
adeon_mipmap_tree.c
adeon_mipmap_tree.h
b078a613bedb76242af177bee12520203bd63d50 09-Jan-2010 Maciej Cencora <m.cencora@gmail.com> radeon: add texture helper function
adeon_mipmap_tree.c
adeon_mipmap_tree.h
8014b5f06853a5926ee772af232abdc9cd4e90c4 06-Feb-2010 Maciej Cencora <m.cencora@gmail.com> radeon: add some debugging info to sw tiling/untiling functions
adeon_tile.c
5fefca5dbae9a5b00a3d624da0b5e582c00ad280 06-Feb-2010 Maciej Cencora <m.cencora@gmail.com> radeon: add software untiling functions
adeon_tile.c
adeon_tile.h
65faa27aa639e7352708a30105db3318f22f5f93 16-Jan-2010 Maciej Cencora <m.cencora@gmail.com> radeon: add tile size getter
adeon_tile.c
adeon_tile.h
88a99bb305186fd0eaaae9bd0dbfa4c45f14cac7 16-Jan-2010 Maciej Cencora <m.cencora@gmail.com> radeon: added tiling functions
akefile
adeon_tile.c
adeon_tile.h
78eb4a2ea569a7bd624bbf83ece5c9acef82a8de 16-Jan-2010 Maciej Cencora <m.cencora@gmail.com> radeon: no need to emit full state twice after flush
adeon_common.c
9543f7f05f416ef6c1ac160e12e2d7ceed3b32ae 06-Feb-2010 Maciej Cencora <m.cencora@gmail.com> radeon: fallback to software in glCopyTexImage if blit isn't available
adeon_tex_copy.c
419f0f9d0426bc1eb40ceb60e7764af4013947a0 06-Mar-2010 George Sapountzis <gsapountzis@gmail.com> dri: drop MINIGLX_SOURCES (2)
erver/radeon_dri.c
8953bfce0eb7e56f13d4527ef86cdf4cf2db037f 06-Mar-2010 George Sapountzis <gsapountzis@gmail.com> dri: drop MINIGLX_SOURCES
akefile
3594bf233d16ceb21e97fcdfb57ea45cb0c5e41b 03-Mar-2010 Alex Deucher <alexdeucher@gmail.com> radeon/r200/r300/r600: add check_blit vtbl function

Check if the native blit formats are supported, if not,
attempt to use an alternate format.

Skip 3, >4 bpp as per comments from mcencora on irc.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_blit.c
adeon_blit.h
adeon_common_context.h
adeon_context.c
adeon_tex_copy.c
0384214923216b4bb7340070d08fcda2cbb79a93 27-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> Remove stray defines of HAVE_RGBA

Now that color-index support is removed from t_dd_tritmp.h and
t_dd_unfilled.h, drivers no longer need define HAVE_RGBA.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
adeon_swtcl.c
bb8c3b1bcc81fd5addc5e214f3efcfdca50c6806 25-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove ClearIndex and IndexMask from device-driver interface

These are used to inform the driver of the clear value for color-index
buffers and to control write-masking of bits in color-index buffers.
No driver use or need (not even Nouveau) these interfaces.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
adeon_state.c
bdbf199a8c5bef12186e022babbb03f5cd763db6 03-Mar-2010 Alex Deucher <alexdeucher@gmail.com> r600: add new rs880 pci id
adeon_chipset.h
adeon_screen.c
daf85c460875c944d6918fdf4041467d97cba41e 03-Mar-2010 Dave Airlie <airlied@redhat.com> radeon/r200/r300/r600: fix blit BO buffer validation

there is no need for these to be persistent since we flush the CS
at the end of the blit, and we don't reuse these buffers at all.

on my r600 the Wine DX9 test suite doesn't crash at least anymore.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_blit.c
9a7776696b786180f1d384eb22b928707e74dfca 01-Mar-2010 Pauli Nieminen <suokkos@gmail.com> radeon: Reduce number of radeon_bo_map calls that require kernel entry.

DMA buffers are often remapped many times for singel cs. To reduce number of
mapping calls ending to kernel dma buffers are mapped when allocated and unmapped
when full or in cs flush. This makes indifual mapping calls in other parts of
code simple increment/decrement reference count which is faster than entering
kernel.

This improves Anholt's openarena benchmark from 36 fps to 44 fps.
adeon_dma.c
d3004d9156e261d81adcae31d55a4b782433cd6b 27-Feb-2010 Vinson Lee <vlee@vmware.com> radeon: Assert pointer is not null before dereferencing.

Add back an assert that was removed in commit
cd5f167353f16fb4f5b349002625b704f3e23778.
adeon_tex_copy.c
3f5bac8960a5c6d1f08f0dc849676139b9d6ce5c 24-Feb-2010 Dave Airlie <airlied@redhat.com> radeon/r200: fix the state emission before kernel clear

this moves the emission outside the lock and adds r200 support.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_ioctl.c
b75d40736997911e00cab339a7f15ec9bc86e535 24-Feb-2010 Dave Airlie <airlied@redhat.com> radeon: fix bad state emission causes kernel to do bad depth clear

The kernel lets you clear depth without getting a depth offset
from userspace, mesa used to emit state before clear, but that got
lost in the refactoring, which made the kernel bug show up. Fix
mesa driver to emit the state properly now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_ioctl.c
f96e8a033b212b54a80622839579c99dff2378fc 21-Feb-2010 Vinson Lee <vlee@vmware.com> radeon: Silence compiler format warning.
adeon_fbo.c
298be2b028263b2c343a707662c6fbfa18293cb2 19-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> Replace the _mesa_*printf() wrappers with the plain libc versions
adeon_fbo.c
32f2fd1c5d6088692551c80352b7d6fa35b0cd09 19-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versions
adeon_buffer_objects.c
adeon_fbo.c
adeon_queryobj.c
adeon_texture.c
c7ac486261ad30ef654f6d0b1608da4e8483cd40 19-Feb-2010 Kenneth Graunke <kenneth@whitecape.org> Remove _mesa_memcpy in favor of plain memcpy.

This may break the SUNOS4 build, but it's no longer relevant.
adeon_buffer_objects.c
96728bb4f3e078c190da066868dede611685f6aa 10-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> dri: Fix copy-and-paste brain damage in previous commit

A number of places in 3cce4a1e10361458630511543b7a8a6438544775 use
TRUE instead of GL_TRUE. This causes build failures in all of the
drivers that I don't typically build. Win.

Reported by sungami on IRC.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
adeon_screen.c
3cce4a1e10361458630511543b7a8a6438544775 08-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> dri: Allow selective generation of accum. buffer configs

Modify the interface to driCreateConfigs allowing drivers to not
expose configs with an accumuation buffer. All of the drivers calling
function have been updated to pass true for the accumulation
selector. This maintains the current behavior.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
adeon_screen.c
77e6fb17d96ed9d9b3c2f52999e93da12a466405 10-Feb-2010 Pauli Nieminen <suokkos@gmail.com> radeon: Fix printf formatings to match te values.
adeon_fbo.c
adeon_texture.c
42026a8ccf4f02d4648d65763e18d8bf98eb9bfd 10-Feb-2010 Pauli Nieminen <suokkos@gmail.com> radeon: Define EXT_framebuffer_object constants to match hw.

This hides the assertion failure in glean/fbo test. Underlying
problem when same texture is set twice to different attachments
will cause assertion.
adeon_context.c
debf00e5fc3828f63e0f99d72c7fa6cd6ce012c5 09-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> dri_interface: Introduce DRI tokens for the texBuffer texture formats

This used to take GLX tokens, but the DRI interface can't depend on GLX
defines. We fix this by introducing DRI tokens that have the same value
as the GLX texture format tokens.
adeon_texstate.c
4767d27ee32cc30ee00ab5265ecbb8eeefcab8c9 09-Feb-2010 Pauli Nieminen <suokkos@gmail.com> radeon: Add some debug output for fbo support
adeon_common.h
adeon_fbo.c
adeon_span.c
adeon_texture.c
eaf8fe657f4cd30c0c1da20c4acf43e077783fcd 08-Feb-2010 Dave Airlie <airlied@redhat.com> radeon: fix UMS since stp addition.

UMS doesn't need the STP atom.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_ioctl.c
0943706d35e3955cacbc3b690cfb1e2dfb78d639 07-Feb-2010 Pauli Nieminen <suokkos@gmail.com> r100/r200/r300/r600: Set MaxCombinedTextureImageunits.

Fixes glActiveTexture to set GL_INVALID_ENUM when trying
to activate texture unit that is not available.

piglit test case general/texunit passes now.
adeon_context.c
cdb0a51e8a8de605c4f2155396609fbb98ada65d 06-Feb-2010 Pauli Nieminen <suokkos@gmail.com> radeon: Add some debug output to texture function.\n
adeon_texture.c
e6f2819e7af8222ac443c76e91803f2c282fc1e7 06-Feb-2010 Pauli Nieminen <suokkos@gmail.com> radeon: Use _mesa_next_pow_two_32 instead of own implementation.
adeon_mipmap_tree.c
f8969dd24ff4264c0c11ea5266093b6ce2ef221a 06-Feb-2010 Pauli Nieminen <suokkos@gmail.com> radeon: Add some debug output to miptree code.
adeon_mipmap_tree.c
9d5f88250379666961f92a7e20cf0d48907c38e2 06-Feb-2010 Pauli Nieminen <suokkos@gmail.com> radeon: Remove the loop from stride size calculation.

Changed stride size calculation to do the math by rounding
the value instead of loop. r600 minimum stride is 256 which
might might cause up to about 60 rounds of the loop.
adeon_mipmap_tree.c
69f20294cd8bed52e4a9b648158423c5f0754941 04-Feb-2010 Pauli Nieminen <suokkos@gmail.com> r100: Add the polygon stipple state to the state list.

This fixes glean paths test case.
adeon_ioctl.c
66229ea1845a6c19fd292c16e6dafeb9be94173d 04-Feb-2010 Pauli Nieminen <suokkos@gmail.com> radeon: Make debugging automaticaly increase logging verbosity for debug build.

DEBUG preprocessor macro is set by configure script when
--enable-debug is passed for configure. Radeon then just
increase debugging verbosity if DEBUG is set in compile
time.
adeon_debug.h
2ec50d256d49ff3b987459ed42a5dc66f02a6b9d 03-Feb-2010 Francisco Jerez <currojerez@riseup.net> mesa: Factor out the fb initialization details from _mesa_new_framebuffer.

This should make things easier for drivers wanting to work with a
"subclass" of gl_framebuffer.

The complementary "_mesa_initialize_framebuffer" function is now
called "_mesa_initialize_window_framebuffer" for the sake of
symmetry.

Signed-off-by: Brian Paul <brianp@vmware.com>
adeon_screen.c
8a2cf4549a4e88d8981d75b003ac0a43e71f5e41 31-Jan-2010 Vinson Lee <vlee@vmware.com> radeon: Remove unnecessary headers.
adeon_common_context.c
adeon_context.c
adeon_ioctl.c
adeon_lock.c
adeon_mipmap_tree.c
adeon_sanity.c
adeon_screen.c
adeon_state.c
adeon_state_init.c
adeon_swtcl.c
adeon_tcl.c
adeon_tex.c
adeon_tex_copy.c
1eb1d4e23885b4921cff27473aadb93b942865b1 28-Jan-2010 Vinson Lee <vlee@vmware.com> radeon: Silence "format" compiler warnings.
adeon_queryobj.c
395e08a839bca94b8c0cd7fca4b48bb06bc02952 27-Jan-2010 Dave Airlie <airlied@redhat.com> radeon/r200/r300: don't clean non-emitted state.

So if we don't actually emit an atom to the hw because we don't
need it in the current state (e.g. lighting related atoms when
lighting is off) then don't mark it as clean, because when
lighting gets switched on we won't emit it at all.

This fixes funky gears colors.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_common.c
e6df209490a265f35be255468d7b9123404ef14c 27-Jan-2010 Dave Airlie <airlied@redhat.com> radeon: remove unused file
adeon_lighting.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
146a77af3f68d3a935fad5b143123280049e6c60 23-Jan-2010 Vinson Lee <vlee@vmware.com> radeon: Remove unused variable.
adeon_cs_legacy.c
9bf40cea00b2f509074bba3ace39c4ffbabdf047 22-Jan-2010 Andre Maasikas <amaasikas@gmail.com> r600: fix brownbag, only align if we are dealing with cubemap
adeon_mipmap_tree.c
714d9c21ecc97134a0f9fd58075152acd55cde32 22-Jan-2010 Andre Maasikas <amaasikas@gmail.com> r600: cubemap levels seem to be aligned to 8 images
adeon_mipmap_tree.c
278ad74fe060ab8ba21d21b675a40f6758edaeca 21-Jan-2010 Andre Maasikas <amaasikas@gmail.com> radeon/fbo: flush rendering before generating mipmaps

or maybe should flush(also) in finish_render_texture...
adeon_texture.c
7c6f51cdccdd0ed6370ce86ba21549991f4f4293 04-Jan-2010 Andre Maasikas <amaasikas@gmail.com> radeon/fbo: use correct depth texture offset for depth textures
adeon_fbo.c
adeon_mipmap_tree.c
adeon_mipmap_tree.h
2a928899e345e400c4266910b4e33b36a20575e2 22-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Remove USING_EGL and the related drivers.

They do not build for a long while and there seems to be no active
users. It might be better for them to live in the git histroy.
erver/radeon_egl.c
4736e1cbbd4e2cf7fa4c67a728d520edc67e920f 21-Jan-2010 Chia-I Wu <olvaffe@gmail.com> dri: Remove unnecessary glapi headers.

They are not used at all.
adeon_ioctl.c
917b6d2a4b0e330e34e06b3c37ebc906f974b26b 05-Oct-2009 Alan Coopersmith <alan.coopersmith@sun.com> Remove hardcoded -Wall from Radeon DRI makefiles

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
akefile
76cf2618327a7f008dcfd0d91d64d6d9e01f9a9c 20-Jan-2010 Alex Deucher <alexdeucher@gmail.com> r100/r200: fix Y coord flipping in accelerated blits
adeon_blit.c
1bb6b1d9dbabafdb864ee112526b1212744ac614 20-Jan-2010 Alex Deucher <alexdeucher@gmail.com> r100/r200: fix dst pitch in blit code
adeon_blit.c
1f0709fd8f69bf8cc3e9502bad8d3e7296d935fb 20-Jan-2010 Maciej Cencora <m.cencora@gmail.com> r100/r200: align to pitch updates in blit interface
adeon_blit.c
5170d2452beafc4a6f5859792d6c6b267c549e46 19-Jan-2010 Maciej Cencora <m.cencora@gmail.com> r100: use common glCopyTex(Sub)Image code
akefile
adeon_blit.c
adeon_blit.h
adeon_context.c
adeon_context.h
adeon_tex.c
adeon_tex.h
adeon_texcopy.c
8a4d7393bd8a752eba2ee687c1c3e2df5c82745d 19-Jan-2010 Maciej Cencora <m.cencora@gmail.com> radeon/r300/r600: share common glCopyTex(Sub)Image code
adeon_tex_copy.c
adeon_texture.h
11affafc75525c50a2b4ffc9f91c1fe620d328fb 10-Jan-2010 Maciej Cencora <m.cencora@gmail.com> radeon: use mesa provided _mesa_tex_target_to_face function
adeon_texture.c
adeon_texture.h
f542fde77effbc3c780940e139fc2572e818a179 10-Jan-2010 Maciej Cencora <m.cencora@gmail.com> radeon: add blit function to vtbl
adeon_common_context.h
ef631104d51d011ef1dbaf7b4aeba274ae103ad7 19-Jan-2010 Alex Deucher <alexdeucher@gmail.com> r100/r200/r600: fix typo in 2b1d5ea4f0250a6a7fa312ced0a7af85e909381b
adeon_blit.c
2b1d5ea4f0250a6a7fa312ced0a7af85e909381b 19-Jan-2010 Alex Deucher <alexdeucher@gmail.com> r100/r200/r600: check if blitting for given format is supported earlier

based on Maciej's r300 patch.
adeon_blit.c
a67cd1994f3474dd638af76b2bf5b19490863cba 19-Jan-2010 Alex Deucher <alexdeucher@gmail.com> r100/r200: add blit support for ARGB4444
adeon_blit.c
daccc962a15f333a4759849d7088b0c985189175 19-Jan-2010 Alex Deucher <alexdeucher@gmail.com> r100: add blit support

Only enabled with KMS.
akefile
adeon_blit.c
adeon_blit.h
adeon_context.c
adeon_context.h
adeon_texcopy.c
erver/radeon_reg.h
42f2880ffd0b847df7cb56b7f7f0747287e0b08f 11-Jan-2010 Dave Airlie <airlied@redhat.com> radeon: fix prediction for r100 inline vert/elt emits.

On r100 we emit the indices inline so we need to account
for that in the emission size.
adeon_tcl.c
554043bff72ced41b2a5e03e61cbc087bb41bd3d 11-Jan-2010 Dave Airlie <airlied@redhat.com> radeon: fix bug in realloc code.

This bug was fixed in libdrm ages ago, port to non-kms
adeon_cs_legacy.c
efaba97eaaf47ffecf1577777df1e8a700ada8de 11-Jan-2010 Dave Airlie <airlied@redhat.com> radeon: fix prediction for r100 inline vert/elt emits.

On r100 we emit the indices inline so we need to account
for that in the emission size.
adeon_tcl.c
1294df9ca4ec39f00de3f9d923316f6641c1fb4a 11-Jan-2010 Dave Airlie <airlied@redhat.com> radeon: fix bug in realloc code.

This bug was fixed in libdrm ages ago, port to non-kms
adeon_cs_legacy.c
ae44b92f61b78c9991060a8dd7fa7327d428c138 05-Jan-2010 Kristian Høgsberg <krh@bitplanet.net> Merge branch 'remove-intel-dri1'

* remove-intel-dri1:
intel: intelScreenContext() is no longer used
intel: Remove remaining dri2.enabled tests
intel: Drop more cliprect bookkeeping
intel: Remove struct intel_framebuffer
intel: Remove client-side vblank code
intel: Drop intelWindowMoved()
intel: Drop batchbuffer cliprect_mode tracking
intel: Drop DRI1 static regions
intel: Use depth buffer from ctx.DrawBuffer in copypix_src_region()
intel: Drop LOCK/UNLOCK_HARDWARE()
intel: Drop DRI1 SwapBuffer implementation
intel: Drop DRI1 CopySubBuffer implementation
intel: Drop DRI1 support
Push __driDriverExtensions out of dri_util.c and into the drivers
Remove leftover __DRI{screen,drawable,context}Private references
Check for libdrm_$chipset.pc when needed
f6c2d1f94ffa8f87b22ed1ff5c465d0e9aa1489e 05-Jan-2010 Brian Paul <brianp@vmware.com> mesa: make texture BorderColor a union of float/int/uint

When we have integer-valued texture formats, the texture border color
must also store integer and uint values.

With GL 3.0, the new glTexParameterIiv() and glTexParameterIuiv() functions
can set the border color to int or uint values.
adeon_tex.c
39a0e4e7de379a182c1544fa24d5cb2a7687ec72 01-Jan-2010 Kristian Høgsberg <krh@bitplanet.net> Push __driDriverExtensions out of dri_util.c and into the drivers

This lets the individual drivers select which extensions to advertise.
Specifically, most drivers (tdfx, sis, savage etc) don't support DRI2
but the shared extension list in dri_util.c does list the DRI2 extension.

Pushing the list into the drivers, lets us avoid listing the DRI2
extension for drivers that don't support it.
adeon_screen.c
d61f07318c8678901b948fdaa8ccdf37aa3203e9 01-Jan-2010 Kristian Høgsberg <krh@bitplanet.net> Remove leftover __DRI{screen,drawable,context}Private references

As part of the DRI driver interface rewrite I merged __DRIscreenPrivate
and __DRIscreen, and likewise for __DRIdrawablePrivate and
__DRIcontextPrivate. I left typedefs in place though, to avoid renaming
all the *Private use internal to the driver. That was probably a
mistake, and it turns out a one-line find+sed combo can do the mass
rename. Better late than never.
adeon_common.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
adeon_context.c
adeon_context.h
adeon_fbo.c
adeon_ioctl.c
adeon_lock.c
adeon_screen.c
adeon_screen.h
adeon_state.c
fd5511d27fc44096117c47ab503fb5b47f993061 30-Dec-2009 Brian Paul <brianp@vmware.com> mesa: implement per-buffer color masking

This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0.

The ctx->Color.ColorMask field is now a 2-D array. Until drivers are
modified to support per-buffer color masking, they can just look at
the 0th color mask.

The new _mesa_ColorMaskIndexed() function will be called by
glColorMaskIndexedEXT() or glColorMaski().
adeon_state.c
1a80fe461e162d5b6e25bd270a54e6662f72e5b3 22-Dec-2009 Eric Anholt <eric@anholt.net> mesa: Remove _mesa_exit wrapper for exit().

It does nothing else while being less useful than exit() because it lacks
attributes that real exit() has.
adeon_common.c
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
bd9e0ebaffeffac09307d5e807b00fef4f551d79 17-Dec-2009 Dave Airlie <airlied@redhat.com> radeon/r600: use new libdrm_radeon api
akefile
adeon_bo.c
adeon_bo_drm.h
adeon_bo_int_drm.h
adeon_bo_legacy.c
adeon_bocs_wrapper.h
adeon_cs.c
adeon_cs_drm.h
adeon_cs_int_drm.h
adeon_cs_legacy.c
adeon_cs_space_drm.c
adeon_span.c
bce03f71741e1b3694e5525014d847467ae6cde1 17-Dec-2009 Dave Airlie <airlied@redhat.com> radeon: drop assert accessing cref which is meant to be hidden
adeon_dma.c
34671efa29297d769fa73541c7c96f397cc926ed 17-Dec-2009 Dave Airlie <airlied@redhat.com> radeon: drop unused members of radeon_state.
adeon_common_context.h
b065aec840b4c07eb1db156c1100ef4004634549 17-Dec-2009 Dave Airlie <airlied@redhat.com> radeon/r600: use new libdrm_radeon api
akefile
adeon_bo.c
adeon_bo_drm.h
adeon_bo_int_drm.h
adeon_bo_legacy.c
adeon_bocs_wrapper.h
adeon_cs.c
adeon_cs_drm.h
adeon_cs_int_drm.h
adeon_cs_legacy.c
adeon_cs_space_drm.c
adeon_span.c
c8de081dc1f077a026a962244117ec69f0ba7055 18-Dec-2009 Alex Deucher <alexdeucher@gmail.com> radeon: protect fbo allocation message with debug

fixes fdo bug 25708

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_fbo.c
112908c279b0a768eca95a505856a087e479674b 18-Dec-2009 Dave Airlie <airlied@redhat.com> radeon: fix frontbuffer read/drawpixels

Bug 25699

The main problem was the optimising flush wasn't doing the front
rendering checks properly.
adeon_common.c
adeon_common.h
adeon_ioctl.c
adeon_span.c
1c28073fdfb56a241424c739b57845f47fa05002 17-Dec-2009 Dave Airlie <airlied@redhat.com> radeon: drop assert accessing cref which is meant to be hidden
adeon_dma.c
5484f9dfc6dbc534a5a2477aa46ebd28da1f72e8 17-Dec-2009 Dave Airlie <airlied@redhat.com> radeon: drop unused members of radeon_state.
adeon_common_context.h
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
8fc433fa0f8c5364454858f9be919387feda440c 08-Dec-2009 Ian Romanick <ian.d.romanick@intel.com> Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
progs/demos/projtex.c
progs/xdemos/glxinfo.c
src/mesa/main/version.h

To fix the confilicts in projtex.c and glxinfo.c I just took the code from
mesa_7_6_branch. The conflicts seem to have occured from cherry-picks from
mesa_7_7_branch to mesa_7_6_branch followed by commmits just to
mesa_7_6_branch.
9921b3048e611398460ef774355b7515bc901240 07-Dec-2009 Maciej Cencora <m.cencora@gmail.com> radeon: fix cases when only first image where put directly into miptree.

Make sure that minimal width, height and depth of texture image is 1.
adeon_texture.c
013cf1d63deb9c33089777afbdea85013fd46b49 07-Dec-2009 Maciej Cencora <m.cencora@gmail.com> radeon: fix image migration for small compressed textures

memcpy would give incorrect results if src rowstride != dst rowstride
adeon_mipmap_tree.c
df02bc42b330fe20679dd3e5e83317df72ddd5ca 06-Dec-2009 Alex Deucher <alexdeucher@gmail.com> radeon/r200/r600: fix drivers for changes in 433f0a82f5a4696e6b0c4061f645485ec8079bb4
adeon_texstate.c
433f0a82f5a4696e6b0c4061f645485ec8079bb4 05-Dec-2009 Michel Dänzer <daenzer@vmware.com> radeon: Only get DRI2 front buffer information for glXBindTexImageEXT.
adeon_common.c
adeon_common_context.c
adeon_common_context.h
8d8fd9776e23a34e0d22e489ce1f85eb5e383121 04-Dec-2009 Alex Deucher <alexdeucher@gmail.com> radeon: fix polygon stipple

fixes fdo bug 25354

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_common.c
adeon_common.h
adeon_context.h
adeon_state.c
6c41bb25a2e260dbce2c2d72ec64d1beb74527de 03-Dec-2009 Maciej Cencora <m.cencora@gmail.com> radeon: workaround an FBO issue

Fixes #21501
adeon_fbo.c
adeon_mipmap_tree.c
8cde43eb19c4dcceb74166e1da123d316a429c21 02-Dec-2009 Maciej Cencora <m.cencora@gmail.com> radeon: properly check if image should be placed in the miptree

Fixes #25355
adeon_texture.c
cc8a537c57a62a196106b592e510e4c93bd1826e 02-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> Merge branch 'mesa_7_7_branch'
e84dddde9b6eb7727760814ae211c95218bb28a3 02-Dec-2009 Dave Airlie <airlied@redhat.com> Revert "radeon/r300: no need to flush the cmdbuf when changing scissors state in KMM mode"

This reverts commit 286bf89e5a1fc931dbf523ded861b809859485e2.

This doesn't appear to be correct, regression so revert it.
http://bugs.freedesktop.org/show_bug.cgi?id=25193
adeon_common.c
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
650e02003fbb5511ec758d993b7ec0a302ee2235 01-Dec-2009 Ian Romanick <ian.d.romanick@intel.com> Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
progs/util/shaderutil.c
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/main/version.h
63c00c53a3019b801c5eee8a12f7862422f79f10 29-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: update miptree code a little

Simplify gl image level <-> miptree level mapping (are equal now).
Don't allocate miptree for images that won't fit in it (fixes #25230).
adeon_mipmap_tree.c
adeon_mipmap_tree.h
adeon_texture.c
2773556d55fe6043bee3d4c86f7b78906e5d60e0 29-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: don't check the same miptree many times when looking for matching miptrees
adeon_mipmap_tree.c
e8f0c8ab9d3509dc399ea58c320056ed90895792 29-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: add some debugging info
adeon_mipmap_tree.c
adeon_texture.c
e5159996a43d64f71d44dd2bd477d10e37ec9a27 28-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: need to flush cs when moving images between mipmap trees
adeon_mipmap_tree.c
e4c5fe52c99bdf651aafa1569d9cf901891004d8 25-Nov-2009 Dave Airlie <airlied@linux.ie> radeon: fix context destroy needing lock for flushing.

Thanks to Intel code which I've just stolen pretty much as usual.

This fixes fdo bug 22851 which is a dri1 regression since rewrite.

Tested by: fpiobaf (Fabio) on #radeon
Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_lock.c
ce56a867f71d0a74172a00869a3c5cb1862f4b04 25-Nov-2009 Dave Airlie <airlied@redhat.com> r600: add ARB_texture_non_power_of_two support.

This makes the miptree rounds up to the near POT for each level for
all radeons, however since mipmaps aren't support with NPOT on previous
radeons this calculation shouldn't cause any problems. If it does
we can just make it r600 only.

I tested a few mipmap demos on r500 and they all seem to work.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_mipmap_tree.c
92c6a26a8a0f6ce540fe7c9681fb9a30b0da9e5f 25-Nov-2009 Dave Airlie <airlied@linux.ie> radeon: fix context destroy needing lock for flushing.

Thanks to Intel code which I've just stolen pretty much as usual.

This fixes fdo bug 22851 which is a dri1 regression since rewrite.

Tested by: fpiobaf (Fabio) on #radeon
Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_lock.c
2176b3ed9ab832122e56aed3242dfda102a5fec6 24-Nov-2009 Dave Airlie <airlied@redhat.com> r300: fix swtcl bo leak problem.

We can get a lot of swtcl bo allocations - need to probably abstract
this a bit further.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_dma.c
bd13e6e5e2403ada2098e3a07c0af4b4ba989ab7 24-Nov-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300/r600: make bo mapping be explicit

This moves the bo mapping outside the DMA layer and makes it explicit,
this should in theory make it simpler to split the clean up the dma/cmdbuf
linkage that I created before that is broken.

Tested on: r600, rv380 (tcl/no-tcl), rv200 (tcl/no-tcl)

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_common_context.h
adeon_dma.c
adeon_maos_arrays.c
adeon_maos_verts.c
adeon_swtcl.c
5173d14cb5821637f22247d16be1b970f3762d6a 23-Nov-2009 Maciej Cencora <m.cencora@gmail.com> Merge commit 'origin/mesa_7_7_branch'
960464e42dce138fde11c379ce7744bc4be14aa2 23-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: fix errors in miptree related function

- typo
- memory leak
- off by one (spotted by airlied)
adeon_mipmap_tree.c
d20b79172df18b27c8b4e428119814ffef2c8494 21-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: fix compressed mipmapped textures

Tested on r300 only, other cards may require adjusting texture_compressed_row_align.
adeon_common_context.c
adeon_mipmap_tree.c
df8787763602f8e27e2b81385d397fb4a86c107b 21-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: fix glCompressedTexSubImage
adeon_texture.c
3f2c77659ca552c43f544228f3a5a5fe6365513a 20-Nov-2009 Dave Airlie <airlied@itt42.(none)> Merge remote branch 'origin/mesa_7_7_branch'
f8ea5318200c1ed839fc387b16a57c8d9969974b 20-Nov-2009 Dave Airlie <airlied@redhat.com> r100: fix texture_from_pixmap and compiz.

r100 state emission has separate rect and non-rect states,
if we are doing TFP for a TEXTURE_2D we shouldn't use the rect
states as they won't get emitted properly.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_texstate.c
37c79d4d765b10a79e0cf217cc1e70d3fbb7a0c5 18-Nov-2009 Eric Anholt <eric@anholt.net> tnl: Replace deprecated FogCoordPtr with AttribPtr[_TNL_ATTRIB_FOG]
adeon_maos_arrays.c
adeon_maos_vbtmp.h
0a9187801505130738ae947c69cafa8a1dd118d1 18-Nov-2009 Eric Anholt <eric@anholt.net> tnl: Replace deprecated ColorPtr[] with AttribPtr or new BackfaceColorPtr.
adeon_maos_arrays.c
adeon_maos_vbtmp.h
165b860da6f16ef4817a4959774a57f57ba3756d 18-Nov-2009 Eric Anholt <eric@anholt.net> tnl: Replace deprecated ObjPtr with AttribPtr[_TNL_ATTRIB_POS]
adeon_maos_arrays.c
adeon_maos_vbtmp.h
adeon_maos_verts.c
df582ca767a38f185f9b4c449e7ed4266c414ae2 18-Nov-2009 Eric Anholt <eric@anholt.net> tnl: Replace deprecated TexCoordPtr with AttribPtr[_TNL_ATTRIB_TEX*]
adeon_maos_arrays.c
adeon_maos_vbtmp.h
adeon_maos_verts.c
adeon_swtcl.c
22bcb59a95ec833cfd73b300376c918eb6a658f2 17-Nov-2009 Eric Anholt <eric@anholt.net> tnl: Replace NormalPtr with AttribPtr[_TNL_ATTRIB_NORMAL]
adeon_maos_arrays.c
adeon_maos_vbtmp.h
13b5a624b1899c457279907d58046dfb3c95addc 18-Nov-2009 Alex Deucher <alexdeucher@gmail.com> Revert "radeon: Fix legacy bo not to reuse dma buffers before refcount is 1."

This reverts commit 284a7af274bc148f112bd0ebb40583923ee26b49.

This breaks kde desktop effects. See fdo bug 24131
adeon_dma.c
cefee4e327c92daa2f01b6de650a43eddd348063 18-Nov-2009 Maciej Cencora <m.cencora@gmail.com> Merge branch 'radeon-texrewrite-clean' into mesa_7_7_branch
93eb2ab8c395f81e40fa298d78805bb2c777f891 17-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: align for mipmap tree changes
adeon_state_init.c
adeon_tex.c
adeon_texstate.c
aef769207d3e554db8cc452d6ea3f678e5549cfb 17-Nov-2009 Maciej Cencora <m.cencora@gmail.com> r300: fix reads and writes for MESA_FORMAT_S8Z24 buffer

Regression was introduced by texformat-rework branch merge.
adeon_span.c
33e93f42770e344edf1cd693a6c8115acd505a08 17-Nov-2009 Michel Dänzer <daenzer@vmware.com> r600: More span breakage fixes.

At least now the compiler doesn't complain about implicitly declared functions
anymore...
adeon_span.c
29f3e7e1d1e8cdff3596b88990ed84d7eeff6f80 17-Nov-2009 Michel Dänzer <daenzer@vmware.com> r600: Attempt to fix span breakage introduced by big endian fixes.

Only compile tested; I happened to notice people on IRC reporting

.../r600_dri.so: undefined symbol: radeon_ptr_2byte_8x2
adeon_span.c
081bf9563fca3f64aed8676f20d17af3eb115016 17-Nov-2009 Michel Dänzer <daenzer@vmware.com> radeon: Depth/stencil span code fixes for big endian.

Fixes e.g. text in progs/demos/arbocclude.
adeon_span.c
592ce48ce9eecfdd74f59e52c8d51bdb62059e3d 17-Nov-2009 Michel Dänzer <daenzer@vmware.com> radeon: Fix occlusion queries on big endian.
adeon_queryobj.c
22627654256ee09bfd659624568865a79eb725b6 17-Nov-2009 Michel Dänzer <daenzer@vmware.com> radeon: Fix software fallbacks with KMS on big endian.
adeon_span.c
f2651264d385fb31f89859fc1287ca0e41835cf4 17-Nov-2009 Michel Dänzer <daenzer@vmware.com> radeon: FBO fixes for big endian.
adeon_fbo.c
adeon_screen.c
e015a4c29bf61077a50780cc99381510671b20ec 17-Nov-2009 Dave Airlie <airlied@redhat.com> radeon: rn50's have no 3D engine so don't try and init 3D driver.
adeon_screen.c
ad83aeccdc54beecf25f217e2dd24c8edf6d6767 14-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: return false on texture validation if texture isn't complete
adeon_mipmap_tree.c
23ec7c457483aae1e0d399e9b570f1860c27c780 14-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: rework mipmap tree
adeon_common_context.h
adeon_mipmap_tree.c
adeon_mipmap_tree.h
adeon_texture.c
adeon_texture.h
8f88cf3938f0156d4df6fcc5fde2711d40b85d03 14-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: more texture code refactoring
adeon_texture.c
9d0af686b27b82dce8ad1ee4c951098660807be6 14-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: minor refactoring of texture code

Also properly set dstImageOffsets for TexSubImage case.
adeon_texture.c
7628b06ba32e42f57a4fdb322bc32e3b411c1f18 14-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: rework mipmap tree reference counting
adeon_mipmap_tree.c
adeon_mipmap_tree.h
adeon_texture.c
aa195611586cdfb21bb1707b12b16e461a92d42e 11-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: use radeon_bo_is_referenced_by_cs for query objects
adeon_common.c
adeon_common_context.c
adeon_common_context.h
adeon_queryobj.c
d3fa67c9b83b5736724ca57a0487857631e6c415 11-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon/r300: don't flush cmdbuf if not necessary
adeon_texture.c
286bf89e5a1fc931dbf523ded861b809859485e2 11-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon/r300: no need to flush the cmdbuf when changing scissors state in KMM mode
adeon_common.c
f6d0993212fac0eb67827716be1ab4a292c8b4e5 11-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: fix glBufferSubData
adeon_buffer_objects.c
084f43c1502db1988ca53494ea590cf1351180ec 11-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: add radeon_bo_is_referenced_by_cs function
adeon_bo_drm.h
49876ab6a7f2b06177d7ac9651bd7a07956cbb25 09-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: remove unnecessary call to radeonEmitState

fixes bo space accounting errors
adeon_common.c
73b45b06690c95cf24cb6f9a81d61269ad51f9dd 31-Oct-2009 Dave Airlie <airlied@linux.ie> radeon: add missing include
adeon_texstate.c
5cf7c8e2d58a877bfc786f866d4e0d363ddd22aa 31-Oct-2009 Dave Airlie <airlied@linux.ie> radeon: use _mesa_get_current_tex_unit
adeon_texstate.c
e2131e017184a595a735e7ea1eced1552b8a7d22 29-Oct-2009 Brian Paul <brianp@vmware.com> radeon: fix incorrect Z format in radeon_alloc_renderbuffer_storage()

And update error message.
adeon_fbo.c
1f196b786d6bd0c6a5dbdc638574ff716cc3d4de 29-Oct-2009 Brian Paul <brianp@vmware.com> Merge branch 'texformat-rework'

Conflicts:
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/drivers/dri/s3v/s3v_tex.c
src/mesa/drivers/dri/s3v/s3v_xmesa.c
src/mesa/drivers/dri/trident/trident_context.c
src/mesa/main/debug.c
src/mesa/main/mipmap.c
src/mesa/main/texformat.c
src/mesa/main/texgetimage.c
660acd60d00366c97fbe7caf3995a75ce935a19b 28-Oct-2009 Alex Deucher <alexdeucher@gmail.com> r600: add occlusion query support

Based on initial patch from Stephan Schmid <stephan_2303@gmx.de>.

Basic idea is to dump the zpass count at the start and end of the query
and subtract to get the total number of visible fragments. HW writes
alternating qwords for up to 4 DBs. On the first pass, we start at
buffer address + 0; on the second pass, we start at buffer address + 8
(bytes). The resulting buffer at the end of the query looks like:

qw[0]: db0 start
qw[1]: db0 end
...
qw[6]: db3 start
qw[7]: db3 end

The MSB of each qword is the valid bit and the lower 63 bits are
the zpass count for that DB.

OQ on RV740 is disabled at the moment as it only seems to report
results for half of its DBs. This needs further investigation.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_queryobj.c
52374d7e4cc183fb783a7012b026d4254ca43b14 28-Oct-2009 Brian Paul <brianp@vmware.com> radeon: add case for MESA_FORMAT_X8_Z24 in radeon_create_renderbuffer()
adeon_fbo.c
11caea687e3f10ae12d33e44edf84635f73047dd 26-Oct-2009 Brian Paul <brianp@vmware.com> mesa: choose texture format in core mesa, not drivers

Call the ctx->Driver.ChooseTextureFormat() function from core Mesa's
_mesa_[Copy]TexImage functions instead of in the driver functions.
One less thing for drivers to do.
adeon_fbo.c
adeon_texstate.c
adeon_texture.c
e3f2efc4f14d6f0d06560d2acfac73628f5a74a6 26-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove calls to _mesa_compressed_row_stride()
adeon_texture.c
d6ee86c77a8e1543557fd64c1f1c354baa0a8ad8 25-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove _mesa_compressed_texture_size()

Use _mesa_format_image_size() instead.
adeon_mipmap_tree.c
35efc6a1b3e3dada2cf9bd3a503c1b84f4bcb7f5 25-Oct-2009 Brian Paul <brianp@vmware.com> mesa: change compressed texture size calls

Replace calls to ctx->Driver.CompressedTextureSize with calls to
_mesa_format_image_size. The former always called the later.
adeon_texture.c
17ef1f6074d6107c167f1956a5c60993904c0b72 08-Oct-2009 Chia-I Wu <olvaffe@gmail.com> mesa: Enable remap table in core.

This enables the remap table in core. driInitExtensions is adapted to
use the remap table. All uses of extension_helper.h are replaced by
remap_helper.h. The chicken-egg problem of the DRI drivers is also
solved.

It is now also possible to pass NULL extensions to driInitExtensions.
It will cause driInitExtensions to map all known functions. This
functionality is used by software drivers and EGL_i915.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
adeon_context.c
adeon_screen.c
cf0e25d4c89b62f37ff8d1f11c50efcab6557c7f 23-Oct-2009 Brian Paul <brianp@vmware.com> radeon: simplify radeon_create_renderbuffer()
adeon_common.h
adeon_fbo.c
adeon_screen.c
dd36006a4eb1cb08dc49af3075c215e6eea46e75 22-Oct-2009 Alex Deucher <alexdeucher@gmail.com> r600: fix depth span macros for format changes
adeon_span.c
eb1b8ed1484f0cc792c5237114b54d5fa53164cc 22-Oct-2009 Brian Paul <brianp@vmware.com> radeon: fix some renderbuffer format bugs
adeon_fbo.c
adeon_span.c
6e1ddd34c6b6f9773ef87198503f5f61f9a6c23a 22-Oct-2009 Brian Paul <brianp@vmware.com> radeon: get rid of z24s8 <-> s8z24 conversions in span code

Can just use s8z24 everywhere.
Note: the WRITE_DEPTH macro for R600 may need to be fixed.
adeon_span.c
c18b022d0d1dc07c37c0bd981d4fc6fac27e5a45 22-Oct-2009 Brian Paul <brianp@vmware.com> radeon: replace MESA_FORMAT_Z24_S8 with MESA_FORMAT_S8_Z24

Core Mesa deals with MESA_FORMAT_S8_Z24 everywhere it should so
we shouldn't have to use MESA_FORMAT_Z24_S8 anymore.
adeon_span.c
620270c76e7241fe4c391e31e3706468d708fe69 19-Oct-2009 Alex Deucher <alexdeucher@gmail.com> Merge branch 'mesa_7_6_branch' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa

regenerated lex.yy.c
f094b86bb5ab93aedc03df5cf5bdf51ab9d37045 16-Oct-2009 Brian Paul <brianp@vmware.com> mesa: lift default symlinks target into Makefile.template

Driver Makefiles can still add symlink dependencies/rules if needed.
akefile
3f30b0709b5a71915df336194f9f805e4c306cef 14-Oct-2009 Owen Taylor <otaylor@snell.localdomain> Use the right pitch when rendering to a texture

We need to get the pitch from the texture level we are rendering to,
rather than just using the base texel width.
adeon_fbo.c
e5d6450c2c85cc7d645cb0736194f41e5393802d 14-Oct-2009 Robert Noland <rnoland@2hip.net> radeon: return EINVAL for 0 length buffers.

Signed-off-by: Robert Noland <rnoland@2hip.net>
adeon_bo_legacy.c
c47b03ebebd4db30bf5ed17b44c0f8757306b197 14-Oct-2009 Brian Paul <brianp@vmware.com> radeon: initialize renderbuffer Format field in radeon_create_renderbuffer()

Plus, use MESA_FORMAT_S8_Z24 everywhere.
adeon_fbo.c
57e3eb1b178e861dee7695c9a5e1c71a4333192d 10-Oct-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_6_branch'
194ede4bf97547ce8a61587ede0b0a5054955783 09-Oct-2009 Alex Deucher <alexdeucher@gmail.com> radeon: fix scissor regression

fixes fdo bug 24248
adeon_common.c
45e76d2665b38ba3787548310efc59e969124c01 09-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove a bunch of gl_renderbuffer fields

_ActualFormat is replaced by Format (MESA_FORMAT_x).
ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are
all replaced by MESA_FORMAT_x queries.
adeon_common_context.c
adeon_fbo.c
adeon_span.c
adeon_state_init.c
3e34a2a2b97e7c93955deedb7c12b73bccd6662d 06-Oct-2009 Brian Paul <brianp@vmware.com> drivers: don't include texformat.h

And remove other unneeded #includes while we're at it.
adeon_fbo.c
adeon_mipmap_tree.c
adeon_tex.c
adeon_texstate.c
adeon_texture.c
1a2bb37264b4448d33f2948fe1702c9dc936395d 06-Oct-2009 Brian Paul <brianp@vmware.com> mesa: lift _mesa_set_fetch_functions() calls out of drivers

Call it from in the main Mesa glTexImage functions.
adeon_texture.c
b330cebe01c5574e203fa6b9d49fee4c01e1adb6 03-Oct-2009 Michel Dänzer <daenzer@vmware.com> radeon: Cope better with texture images with no miptrees.

Fixes crash with compiz magnifier plugin.
adeon_texture.c
32aa40eee46fd0b15f3873069f2440ea2dd75408 02-Oct-2009 Brian Paul <brianp@vmware.com> mesa: removed gl_texture_image::CompressedSize field

Just call ctx->Driver.CompressedTextureSize() when we need to get
the compressed image size.
adeon_texture.c
4ca9ba254462b9be55b78df1d50519e10b2f4d73 02-Oct-2009 Brian Paul <brianp@vmware.com> mesa: move mesa_set_fetch_functions()
adeon_texture.c
073d55f5849c6338a6381e8bc51c074524b5687b 02-Oct-2009 Brian Paul <brianp@vmware.com> radeon: fix tx_table[] entry

XXX need to still verify that the table entries are in correct order.
adeon_texstate.c
b6bdafdf2cf1110b4a5ca7cf9e1c3dcb124b800f 02-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove gl_texture_image::IsCompressed field

Use _mesa_is_format_compressed() instead.
adeon_mipmap_tree.c
adeon_texstate.c
adeon_texture.c
1f7c914ad0beea8a29c1a171c7cd1a12f2efe0fa 01-Oct-2009 Brian Paul <brianp@vmware.com> mesa: replace gl_texture_format with gl_format

Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum.
ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x.
gl_texture_format will go away next.
adeon_fbo.c
adeon_mipmap_tree.c
adeon_texstate.c
adeon_texture.c
adeon_texture.h
0b1f4dc0fa62c46030b39a0f7027dd1b0ef966fd 29-Sep-2009 Brian Paul <brianp@vmware.com> drivers: use new _mesa_texstore() function
adeon_texture.c
ddffe4546a81216cde4376ee49cbaa021f4d04bb 28-Sep-2009 Brian Paul <brianp@vmware.com> drivers: use more mesa format functions
adeon_fbo.c
9fbb8884f034e0d691fed0e099d4d796f3b42848 28-Sep-2009 Brian Paul <brianp@vmware.com> mesa/drivers: use _mesa_get_format_bytes()
adeon_mipmap_tree.c
adeon_texstate.c
adeon_texture.c
e0bc4533ebccbfb844522e2b6ddd171b97d693e8 28-Sep-2009 Brian Paul <brianp@vmware.com> mesa/drivers: use _mesa_get_format_bytes()
adeon_mipmap_tree.c
adeon_texture.c
f782f90c45fc9a483483ebd36c1971ecd0c7988d 28-Sep-2009 Brian Paul <brianp@vmware.com> mesa: use _mesa_get_texstore_func()
adeon_texture.c
fd56bee6c4de28da194333f93b52c40f1deb6163 24-Sep-2009 Pauli Nieminen <suokkos@gmail.com> Merge branch 'mesa_7_6_branch'
1d2dca194cebe6e25735b6820f85b8d1231aae63 24-Sep-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix scissors for r600 KMS.

Radeon generic scissors code had problem that some of code was using exclusive
and some inclusive bottom right corner. Only r600 driver is using exclusive
coordinate so changed generic code to pass inclusive coordinate and r600 driver
changes BR coordinate to be exclusive.
adeon_common.c
28308c92605229129a12a2273dda47c6a2ca4790 21-Sep-2009 Alex Deucher <alexdeucher@gmail.com> r600: various cleanups

- max texture size is 8k, but mesa doesn't support
that at the moment.
- attempt to set shader limits to what the hw actually
supports
- clean up some old r300 cruft
- no need to explicitly disable irqs. This is fixed
in the drm now.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_common_context.c
ec14d59afa952b4e53ad268971098584686a6fca 15-Sep-2009 Alex Deucher <alexdeucher@gmail.com> radeon: don't build non-r600 span code on r600
adeon_span.c
dbec27be856584bc5205c7eeeca2b7e98299d4cb 15-Sep-2009 Alex Deucher <alexdeucher@gmail.com> r600: minor span cleanups
adeon_span.c
9437ac9bccd294bd5a8b838e7ca7597e5dc6d5b0 15-Sep-2009 Alex Deucher <alexdeucher@gmail.com> r600: add span support for 1D tiles

1D tile span support for depth/stencil/color/textures

Z and stencil buffers are always tiled, so this fixes
sw access to Z and stencil buffers. color and textures
are currently linear, but this adds span support when we
implement 1D tiling.

This fixes the text in progs/demos/engine and progs/tests/z*
adeon_span.c
4916a5a2e72b05c176809dd0db5066a966a45b80 20-Sep-2009 Maciej Cencora <m.cencora@gmail.com> radeon: update buffer map/unmap code for changes introduced in 92033a9516942d7272ce4bf36ecd422009bbaf60 and 822c7964819ca1fcc270880d4ca8b3de8a4276d0
adeon_buffer_objects.c
1869bdabbac0926c7da8bfd9e22616cab9457126 21-Sep-2009 Alex Deucher <alexdeucher@gmail.com> r600: various cleanups

- max texture size is 8k, but mesa doesn't support
that at the moment.
- attempt to set shader limits to what the hw actually
supports
- clean up some old r300 cruft
- no need to explicitly disable irqs. This is fixed
in the drm now.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_common_context.c
ff5535c5219047fc56f89c55ee44899d218dc234 20-Sep-2009 Maciej Cencora <m.cencora@gmail.com> radeon: update buffer map/unmap code for changes introduced in 92033a9516942d7272ce4bf36ecd422009bbaf60 and 822c7964819ca1fcc270880d4ca8b3de8a4276d0
adeon_buffer_objects.c
c67bb22fe7b4a7176efd9177d8de413d7c1a9192 21-Sep-2009 Michel Dänzer <daenzer@vmware.com> Merge branch 'mesa_7_6_branch'
da9d8f192431b0142e65bceb5ca8a2e52e21ac90 21-Sep-2009 Brian Paul <brianp@vmware.com> Revert "mesa: move _mesa_meta_init/free() calls to core Mesa"

This reverts commit 651cffd626a82d9bf539437ca4bdf8ea4b396fab.

The commit inadvertantly introduced a new gallium dependency on the meta code.
adeon_common_context.c
284a7af274bc148f112bd0ebb40583923ee26b49 20-Sep-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix legacy bo not to reuse dma buffers before refcount is 1.

This should help detecting possible memory leaks with dma buffers and prevent
possible visual corruption if data would be overwriten too early.
adeon_dma.c
3640e4acde2fb050b1659271d1687a8a5f90365d 20-Sep-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix typo in variable name.
adeon_debug.h
5fa9a7a9a9cb87c8a86402981cc1b4affde95777 20-Sep-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Improve WARN_ONCE macro to appear as single statement.

Do-while makes macro safe to be used with if and for constructions.

Also remove __LINE__ macro from variable name because scope is local to macro anyway.
adeon_debug.h
94a3c5979fdfa7e5da97523456ee89848528aab0 20-Sep-2009 Nicolai Hähnle <nhaehnle@gmail.com> radeon: Fix "verts" debugging enable

Copy'n'paste apparently prevented the RADEON_VERTS flag from being enabled.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
adeon_debug.c
4de8e2123ebeb50db252b2bb57fb167058fa4683 20-Sep-2009 Brian Paul <brianp@vmware.com> mesa: rename functions to be more consistant with rest of mesa
adeon_common.c
adeon_fbo.c
651cffd626a82d9bf539437ca4bdf8ea4b396fab 19-Sep-2009 Brian Paul <brianp@vmware.com> mesa: move _mesa_meta_init/free() calls to core Mesa
adeon_common_context.c
858a2a2ac7b1c8f1a7f7c4b3c66b3919989798d4 16-Sep-2009 Dave Airlie <airlied@linux.ie> radeon: cleanup compile defines mess.

I inherited this and really it stayed around far too long,
make it nice and simple.
akefile
adeon_common_context.c
adeon_screen.c
adeon_span.c
a6a21eb00dbd262b2835456bef8172b36df5c1ea 16-Sep-2009 Dave Airlie <airlied@linux.ie> radeon: oops remove debugging left on in previous patch
adeon_texstate.c
2fdb0e5d3b6633e0dcf3fc648736e05ca0b66cdc 16-Sep-2009 Dave Airlie <airlied@linux.ie> radeon: use txformat to decide to emit rect tex state.

This is more logical, and fixes a TFP issue.
adeon_texstate.c
2914f2b7fd9bd1082f8cce724d234208b900c3d4 16-Sep-2009 Brian Paul <brianp@vmware.com> mesa: move generate mipmap calls

Per the suggestion in the Intel driver, move the calls to
ctx->Driver.GenerateMipmap() into core Mesa so that drivers don't
have to worry about it.
adeon_texture.c
87d40a95bfd99141215b6d952080135f7605d7d0 15-Sep-2009 Alex Deucher <alexdeucher@gmail.com> radeon: don't build non-r600 span code on r600
adeon_span.c
49fc41eeede4adb9867ab10718d121b017ede496 15-Sep-2009 Alex Deucher <alexdeucher@gmail.com> r600: minor span cleanups
adeon_span.c
41bbc8395111c6ef37e08a63ee58876d10a09e77 15-Sep-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_6_branch'
364ca57aff733e8ee5f417b3f8719514f443315f 15-Sep-2009 Alex Deucher <alexdeucher@gmail.com> r600: add span support for 1D tiles

1D tile span support for depth/stencil/color/textures

Z and stencil buffers are always tiled, so this fixes
sw access to Z and stencil buffers. color and textures
are currently linear, but this adds span support when we
implement 1D tiling.

This fixes the text in progs/demos/engine and progs/tests/z*
adeon_span.c
796c96de808790826d9c9077d159390ebee62888 11-Sep-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Remove structure allocation from iterator variable.

dma_bo varaible is only used for iterating so allocating memory for it only
causes memory leaks.
adeon_dma.c
3d1324a66a3b8927a400d167ba92f851b464c57a 10-Sep-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Change debugging code to use macros instead of inline functions.

Variadic functions can't be inlined which makes debugging to have quite large
function overead. Only aleternative method is to use variadic macros which are
inlined so compiler can optimize debugging to minimize overhead.
adeon_debug.c
adeon_debug.h
e0f99b8268496576b017f4d0eb0ed09507c2f30d 09-Sep-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Add more verbose error message for failed command buffer.
adeon_common.c
2f6d2a9e27f8582591dc60655f7d7b14d7552bbc 03-Sep-2009 Brian Paul <brianp@vmware.com> mesa: change ctx->Driver.BufferData() to return GLboolean for success/failure

Return GL_FALSE if we failed to allocate the buffer. Then raise
GL_OUT_OF_MEMORY in core Mesa.
adeon_buffer_objects.c
5f7c532b1e5414f65e126948b35cf9e1ef10c3a1 02-Sep-2009 Dave Airlie <airlied@redhat.com> radeon: pass internal format into the miptree.

We need to figure out if the compression format changes.

without this texcmp segfaults if you change format
enough times.
adeon_mipmap_tree.c
adeon_mipmap_tree.h
adeon_texture.c
e5b93e116180d7ae360af1fd3e7b05f14ebce656 02-Sep-2009 Dave Airlie <airlied@redhat.com> radeon/dri2: add gl20 bits for r300/r600 just like dri1 does
adeon_screen.c
85d35623859135fa6c6875be52b5c13a8d3263ba 01-Sep-2009 Brian Paul <brianp@vmware.com> radeon: trim down #includes
adeon_common.c
18916986b4a7155e3cba2efb5dfd79dc561cfa41 01-Sep-2009 Brian Paul <brianp@vmware.com> radeon: use _mesa_meta_clear()
adeon_common.c
06bf6628aabd6744ebf4268319eba4a1d377ffe2 02-Sep-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix OQ to set ful lstate as dirty too.
adeon_queryobj.c
9f650e19dda3809e87c838b50b39669ea844a3b1 02-Sep-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix debug output to filter out less critical messages instead of more critical.
adeon_debug.h
7d361537661b93a501c9533271458a41b965ea79 01-Sep-2009 Dave Airlie <airlied@redhat.com> radeon: fix r100/r200 polygon stipple under kms

There really need to use state emits under kms, otherwise
we end up with some dwords in the command buffer before we've
ever emitted any useful state.

Signed-off-by: Dave Airlie <airlied@redhat.com>
adeon_common.c
adeon_common.h
adeon_context.h
adeon_state.c
adeon_state_init.c
a2bd13fec9ac2bd77ee21cb85a636fde80ce0368 01-Sep-2009 Dave Airlie <airlied@itt42.(none)> r100: fixup cubemap domains
adeon_state_init.c
c4a3e036ed1c755a291018251c4f55c45ac17079 31-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix null pointer reference in debug system if no context is bind.
adeon_debug.c
fde929c4fdee2e998542f071ff7165d87f572593 31-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Add support for indenting debug output.

Indetion can be used to make it easier to read debug code when sections of debug output are indented.
adeon_common_context.h
adeon_cs_legacy.c
adeon_cs_legacy.h
adeon_debug.c
adeon_debug.h
7870edc778338556a65a4d4167d20ad01d6a1995 30-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Add comment warning about not choosing critical debug level.
adeon_debug.h
6c963fbdd1c9a8a2c2efe87598bfbf0485c036fb 30-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Change default debug level to verbose.

Verbose is a lot better for developement but we should considre changing it to normal in stable branch.
adeon_debug.h
fe62e4c3ff13888a85274c23b88354777760401e 30-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Make OQ to use new style debugging.
adeon_queryobj.c
b6ebcf8156c4735c2e96e5aad26c3a8dc29f50a6 30-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Add gcc attribute to enable pritnf format warnings.
adeon_debug.h
4e0d99a63588c67a955f797733da32d04e6f4ee6 30-Aug-2009 Pauli Nieminen <suokkos@gmail.com> r100: Use shared debug code.

Converted r100 to use shared debug code with sed and fast compile check. New
code has compability layer so old debugging code doesn't have to be changed
all immidiatly.
akefile
adeon_bo_legacy.c
adeon_common.c
adeon_common_context.c
adeon_common_context.h
adeon_context.c
adeon_debug.c
adeon_debug.h
adeon_dma.c
adeon_fbo.c
adeon_ioctl.c
adeon_lighting.c
adeon_lock.c
adeon_maos_arrays.c
adeon_maos_vbtmp.h
adeon_mipmap_tree.c
adeon_sanity.c
adeon_screen.c
adeon_state.c
adeon_swtcl.c
adeon_tcl.c
adeon_tex.c
adeon_texstate.c
adeon_texture.c
f9a4a0a9710c23a2041673eec290ff2f9260cbd0 30-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Add common debugging functions.

These function are aiming to make it very simple to add and keep large amount
of debugging code without having runtime impact in relase builds. Basic idea
is to expose simple printf style debugging functions that are inlined.

Level parameter will be evalueted in compile time so compiler can optimise
some of debugging functions out if compile time request for debug level is too
tight.
adeon_debug.c
adeon_debug.h
1b1673fa63b1ac66cf188711ab8421a73dde1724 31-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: add missing r7xx pci id
adeon_chipset.h
adeon_screen.c
0926a5f4a110926711d0f8a4eb297dc772b09aa2 28-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix swtcl emit pediction.

Problem was to find the correct place to run prediction. Only place that is
called for every primitive is ALLOC_VERTS so we have to do prediction there
before allocation.
adeon_dma.c
adeon_swtcl.c
4f644e58d455cbc70fe856576321f868e36b6346 28-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix scissors for dri1.

DRI1 has to set scissors in framebuffer coordinates.
adeon_common.c
4322181e6a07ecb8891c2d1ada74fd48c996a8fc 28-Aug-2009 Pauli Nieminen <suokkos@gmail.com> r100/r200: Bring back old PolygonStripple for DRI1.

DRI1 didn't have support for command buffer emit for stripple.
adeon_common.c
adeon_common.h
adeon_common_context.h
adeon_context.c
adeon_context.h
adeon_state.c
adeon_state.h
bfbad4fbb7420d3b5e8761c08d197574bfcd44b2 28-Aug-2009 Pauli Nieminen <suokkos@gmail.com> r100/r200: Share PolygonStripple code.
adeon_common.c
adeon_common.h
adeon_state.c
erver/radeon_reg.h
d0cb1036aa98d35ae5233d326fbb0ba592a26e26 28-Aug-2009 Dave Airlie <airlied@redhat.com> radeon: fix scissors harder.

this makes gnome-shell work on r300 for me
adeon_ioctl.c
570d4e375a327787441c2c7c4ae698e8993a5d6b 27-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon/r200/r300: Fix swtcl prediction to work after primitie change.

Swtcl calls flush everytime primitive changes so prediction has to made again
after flushing.
adeon_common_context.h
adeon_swtcl.c
82ff3190de3cd6cf4a514bac00ae02597abfb963 27-Aug-2009 Dave Airlie <airlied@redhat.com> radeon: fix scissor calcs.

For non-FBOs we need to invert, for FBOs the scissors are non-inverted.

no matter what we need to clamp them to the buffer sizes.
adeon_common.c
20d9204fbd71aebf870834b612579419d2c278b5 24-Jul-2009 Dave Airlie <airlied@itt42.(none)> radeon: fix max indx/vertex emission due to state checker
adeon_common_context.h
adeon_ioctl.c
47d4b9ff70c82956a77e8ea7a6abccaa0a9f9083 26-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix loop en condition so debug output doesn't flood meaningless values.
adeon_common.c
e0e76edf97d391f0c4be58b9d8b91bed0be56734 26-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Make RADEON_CMDBUF more fine grained.
adeon_common.c
97029c1860e8a99448ac157408e71bea3aa2559f 26-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon/r200/r300: Fix swtcl flushing not to invalidate dma region.

We were check command buffer sizes too alte so allocated dma regions
were freed before relocations so space checking failed.
adeon_common_context.h
adeon_dma.c
adeon_swtcl.c
674835f184b37ad378ce2e35f1a8326af0facc77 26-Aug-2009 Dave Airlie <airlied@linux.ie> radeon/r100/r200: actually init the OQ support properly
adeon_context.c
adeon_state_init.c
5484428d7267388fde868e64531dcdf98b55fafc 26-Aug-2009 Dave Airlie <airlied@linux.ie> radeon: add r100 OQ support with kms.

This adds OQ support for the r100 chipsets, it requires
KMS unless someone wants to make a kernel patch to add support
for OQ regs.
adeon_context.c
adeon_context.h
adeon_state_init.c
erver/radeon_reg.h
dbf59de6d2f8be526e97af6c768622e6ca3cf6b1 26-Aug-2009 Pauli Nieminen <suokkos@gmail.com> r200: Add scissor to state atom list.

Scissors are jsut one of states that we have to emit so it should be in state list
adeon_common.c
adeon_common_context.h
5d10890795d9bddc8cafc4afb19cacf164d6e667 25-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon/r600: Fix remaining warnings when building 64 bit binary.
adeon_cmdbuf.h
adeon_dma.c
c3374bf97ecd82b915fb29c7c04951e2b75d4dbc 25-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix all compiler warnings.
adeon_context.c
adeon_cs_legacy.c
adeon_dma.c
adeon_ioctl.c
adeon_screen.c
adeon_span.c
adeon_swtcl.c
ce7ed63f0c2f5cb1c030f73a5d8f6544eaac0f81 25-Aug-2009 Pauli Nieminen <suokkos@gmail.com> Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into r600_state_predict
4297f32c246cc5b726d02745456c06952322958d 25-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon/r200/r300/r600: Warn if we emit more than prediction was.

Prediction code making too small prediction may cause space check aserttion
failure later in rendering. So warning about any failure to predict correctly
should be fixed.
adeon_tcl.c
3023328ea721d2b87112e37e119345a9662d7e5e 20-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r300: add support for getting Z pipe info from drm

Needed for occulsion queries on rv530 chips

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
adeon_bocs_wrapper.h
adeon_screen.c
adeon_screen.h
dea10381864269bd6251a8b0af7a88de88296b32 24-Aug-2009 Dave Airlie <airlied@linux.ie> radeon: fix fbo size calculation to after pitch
adeon_fbo.c
55c0457fe9574452b3c2558ada160c42a3e1fbdc 24-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Add debug output to radeonCountStateEmitSize.
adeon_common.c
75da0a6a561e9cd0ab64494d10e6645c35d31e82 24-Aug-2009 Pauli Nieminen <suokkos@gmail.com> Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into r600_state_predict
ed14a4cb7bbcef45668a3ab6fe8efb267b7c4efd 24-Aug-2009 Maciej Cencora <m.cencora@gmail.com> r300: add support for EXT_framebuffer_blit
adeon_common_context.c
adeon_fbo.c
ccde2768380efbdde467cc37e1a248c447f46d20 24-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix dri1 ctx emit size.
adeon_state_init.c
7bb0f880dbdee0c57693c3a1f331d7c0894e71e1 23-Aug-2009 Pauli Nieminen <suokkos@gmail.com> Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into r600_state_predict

Conflicts:
src/mesa/drivers/dri/r300/r300_cmdbuf.c
src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
4484ce9c7b196a686a3928f7e29dc8d9b6f3cae3 23-Aug-2009 Alex Deucher <alexdeucher@gmail.com> radeon: add radeon_cs_write_table to the legacy path
adeon_cs_drm.h
bcbe27d0ca304bb40c150a4fe5b846e8a987980e 23-Aug-2009 Maciej Cencora <m.cencora@gmail.com> radeon: use proper macro
adeon_queryobj.c
7e7f0f61bf41bccfdd0f68afc03ccc6b1d3c0c91 23-Aug-2009 Maciej Cencora <m.cencora@gmail.com> radeon: use bo_is_idle interface for checking if OQ result is available
adeon_queryobj.c
4aadda5f66adda1b7814ec1dec39b5e8f4f71cc5 19-Aug-2009 Maciej Cencora <m.cencora@gmail.com> r300: minor optimization

use properly implemented OUT_BATCH_TABLE where possible
adeon_cmdbuf.h
b34695375ea6dcf78a113041ed8beb20cea15c71 23-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix compilation with legacy memory manager.
adeon_bo_drm.h
66bbafb6f9d44da3baddac6d948ba361182dde2a 20-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Check from kernel if dma buffer is idle.

This makes sure that objects are leaving wait list only when they are processed by gpu.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_bo_drm.h
adeon_bo_legacy.c
adeon_dma.c
17813931db4cc114262d306f4c1484cd353a13f9 22-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: add support for RS880
adeon_chipset.h
adeon_common_context.c
adeon_screen.c
c0f4063703265fc4009e6cadc2de79f553f99b1c 22-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon/r300: Code clean up and logic fix.
adeon_cmdbuf.h
adeon_common.c
90647ff5585ffb1417190e28f88bf1aeed681793 21-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: protect against buffer overflow in state atom debug code.
adeon_common.c
b7ec2ebe33608f9107ff7cae6b974edc8097cecd 21-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Improve state emit code.

Trying to make understanding code easier with small refactoring and renaming.
adeon_common.c
adeon_common.h
adeon_dma.c
adeon_swtcl.c
adeon_tcl.c
ef98eed0a94f3b76399b19f9f65ca6977cd11b5d 21-Aug-2009 Brian Paul <brianp@vmware.com> radeon: fix incorrect loop limit (warned by -O3)
adeon_state_init.c
d6b5464aaa93585376610ce8cace66ea3798723d 21-Aug-2009 Pauli Nieminen <suokkos@gmail.com> r300: Predict emit size for next rendering operation.

We do flush for cmd buffer in case there isn't enough space left for whole
rendering operation. This protects dma regions from getting released in middle
of state emit.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_cmdbuf.h
adeon_common.c
66513ba884350c45226c3820d43bfa0b834b93c1 20-Aug-2009 Pauli Nieminen <suokkos@gmail.com> r300: Clean emit code.

This fixes some state atom check functions from returing wrong emit size.

There is emit code cleanup so that emit function selection is done in init
time instead of runtime.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_cmdbuf.h
d1a0ece9077b3de49c293a04c220b995424cef28 12-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Port flush preventation code from r200 to r100.

- emit prediction
- fixes to emit_sizes for data
- clean up of excesive use of radeonEnsureCmdBufferSpace

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_dma.c
adeon_ioctl.h
adeon_state_init.c
adeon_swtcl.c
adeon_tcl.c
9f7676c7182c0ae3d191b2e6e923b3196fc9e376 11-Aug-2009 Pauli Nieminen <suokkos@gmail.com> r200: Remove unnecessary calls to rcommonEnsureCmdBufSpace.

Calling EnsureCmdBufSpace is not required because rendering pipeline has to quarentee free space.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_common.c
0f41259eff62e341e9bfe6ec39f2a7fb8f1c7656 11-Aug-2009 Pauli Nieminen <suokkos@gmail.com> r200: Fix atom->check call to return emit size for atom.

This patch makes render emit size prediction count the corect maximum emit size
for state.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_common.c
fb1d0bfd47fb8790e0b350a0fad7bc0af39e70f4 11-Aug-2009 Pauli Nieminen <suokkos@gmail.com> r200: Prevent flush in middle of rendering.

Patch adds prediction functionthat tries to predict emit size to the smallest
possible values that is quarenteed to be higher than worst case scenario in
rendering pipeline.

State emit size prediction code is in place but fix for emit sizes is included
in next patch.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_common.c
adeon_common.h
7f8f486b36dc42a3818546c704321320fcdbc94b 07-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon/r200: Add -Wall to default build flags like it is in r300/r600

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
akefile
0c0cea250d6615bbd500ac0b61b5d34bc61711cf 20-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Add comment to explain logic for freeing dma buffers.
adeon_dma.c
ba48e78b1f7cf307d505583f758c65b158f5aae0 21-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: convert to using common radeon state atoms

switches more state handling to common code. We need
should be more fine grained with the state atoms
eventually.
adeon_common_context.c
ad36058e21630bcb13244ff5939cb7ced44eb715 20-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: split state emit into block specific functions

We probably want to go finer grained eventually, but
this is a good start.
adeon_screen.c
ec1540052b8f2f4340bb2c8624e667df7a9a23db 19-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Update regulary cs processing info from kernel.

This fixes problem that dma buffers were leaking in dri1 mode.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_bo_legacy.c
adeon_bo_legacy.h
adeon_dma.c
174aeabc0f00440e3d18813f0b461470448929fc 19-Aug-2009 Alex Deucher <alexdeucher@gmail.com> radeon: fix typo in last dma patch
adeon_dma.c
947df2e5a8e4e701db67219179fb9953df8ff6e6 19-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Add debug output for dma buffer object numbers.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_dma.c
66e019c6c91e6ae3fb9e26a12d7b7782a0095a8d 19-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix dma buffer object pool to scale object sizes.

This fixes problems when application is using large vertex arrays for drawing.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_common_context.h
adeon_dma.c
f9b8562f32b77a27c872d4c70a86995032541107 18-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: balance dma buffer mapping

In radeonRefillCurrentDmaRegion() make sure we
unmap the previous buffer.
adeon_dma.c
1279cdcb1f3e37a91bb5252826386205dc3e579d 26-Jun-2009 Dave Airlie <airlied@redhat.com> r200: make use of DMA buffers for Elts a lot better.

This allows us to return the unused portion of the dma buffer
to the allocator instead of wasting nearly 16k a pop.

Cherry picked and ported to new code by Pauli.
adeon_dma.c
adeon_dma.h
bbf2b5c4ffcb6755d34a5b698445aecf604e45fb 14-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Optimize memory handling for dma operations.

We keep dma buffer objects in list untill they have been unused for many
draw operations. Current limit of having 100 flushes is just guess for
good performance/memory trade off.

Moving WARN_ONCE macro to common context because it is used in multiple drivers.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_common.c
adeon_common_context.c
adeon_common_context.h
adeon_dma.c
adeon_dma.h
adeon_state.c
adeon_swtcl.c
f74e00f4d1cafb5555aefec124edb47cc2891f92 18-Aug-2009 Dave Airlie <airlied@redhat.com> radeon/r200: fix build after OQ commits
akefile
adeon_queryobj.h
9ad76e9479c9c3cb8b2947d5144de33bb31197b8 16-Aug-2009 Dave Airlie <airlied@redhat.com> r300: OQ rework

Move to common code base so radeon/r200 can add support for this.
Make OQ start a state emitted like all normal state, and make no-tcl
flushing work in proper places.

Really need a generic post emit space reservation mechanism like max_state
so we can reserve some space for the emit

this code passes demos/arbocclude, piglit occlusion query and
glean occlusion query with TCL and NO-TCL on my rv530.
adeon_common.c
adeon_common_context.c
adeon_common_context.h
adeon_queryobj.c
adeon_queryobj.h
c3380ded10200f2df0cfba4abbe9a9eb892f7cbb 17-Aug-2009 Alex Deucher <alexdeucher@gmail.com> radeon: remove RADEON_DEBUG_BO stuff

This stuff was a vestige of the r600 bring up and
now mostly serves to periodically break the build.
adeon_bo_drm.h
adeon_bo_legacy.c
adeon_buffer_objects.c
adeon_common_context.c
adeon_common_context.h
adeon_dma.c
adeon_fbo.c
adeon_mipmap_tree.c
743c4af5cdc4c8634d1a26055a8d70f933c88024 17-Aug-2009 Dave Airlie <airlied@redhat.com> radeon: turn off bo debugging
adeon_common_context.h
d2b1b9e8d5407e87fc2a6276568088115c28029f 15-Aug-2009 Maciej Cencora <m.cencora@gmail.com> radeon: add flag for drm OQ support
adeon_screen.c
adeon_screen.h
8d60c0b7514dad075e5d46448614e8e8c5c230a7 11-Jun-2009 Maciej Cencora <m.cencora@gmail.com> r300: clear not_flushed OQ list after flush
adeon_buffer_objects.c
adeon_common.c
f2daded8123c0d82e4cd29710a5b2dfcc99068a1 15-Aug-2009 Dave Airlie <airlied@redhat.com> radeon space: realign with drm space check code
adeon_cs_space_drm.c
a89963cec1b5872d620c73ed8a5e54b10e3bf28b 15-Aug-2009 Maciej Cencora <m.cencora@gmail.com> Merge branch 'vbo_clean'

Conflicts:
src/mesa/drivers/dri/r300/r300_draw.c
e029c91fd32f934161dad05ffc46a949c70c79db 01-Aug-2009 Maciej Cencora <m.cencora@gmail.com> radeon: handle debug versions of radeon_bo_open
adeon_buffer_objects.c
6bcbeb02d61442919a2ae4dfd642547e5f7b1439 11-Jul-2009 Maciej Cencora <m.cencora@gmail.com> radeon: add VBO support (not enabled yet)
adeon_buffer_objects.c
adeon_buffer_objects.h
2233ac61e1a690f47a7d4a9d0894c1c20c9c330f 01-Aug-2009 Maciej Cencora <m.cencora@gmail.com> radeon: export emitvec* functions
adeon_dma.c
adeon_dma.h
d534648d904da71e604babcf408c00eae7922d16 26-Jul-2009 Maciej Cencora <m.cencora@gmail.com> radeon: constify some parameters
adeon_dma.c
adeon_dma.h
a245c05dd3a1ca48204dd84252e6964aba91d4df 12-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: fix warning
adeon_bo_legacy.c
adeon_bo_legacy.h
2f6675b8160c5fa2e6e9b5642c133fd2843a7508 12-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: clean up Create/DestroyContext
adeon_common_context.c
adeon_screen.c
b6a4f5f1d3f0a79b4502d0b30d8b259e8189b70f 04-Aug-2009 Pauli Nieminen <suokkos@gmail.com> r200: Prevent TexGenMatrix from leaking when destroying r200 context.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_screen.c
ef3ad412c746203727324edbd4cbe04079332d7c 12-Aug-2009 Eric Anholt <eric@anholt.net> radeon: Minor warnings cleanup.
adeon_common_context.c
29173d3d5cf02d58e720b5c7fe48a0630c7d5d5f 30-Jul-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Add protection against recursive DRM locking.

Reference counting protects DRM lock call from recursive locking that would
cause hang. Code also adds optional debugging output for recursive call that
is compiled only if NDEBUG is not defined.

This code is not 100% thread safe because mesa doesn't include increment and
test atomic operation. There is built-in gcc functions but they are only
available from gcc 4.2.
adeon_common_context.c
adeon_common_context.h
adeon_lock.c
adeon_lock.h
c2b29b5df506d747e9a53bbcf5a45dc7cfe65643 12-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: use the drm ioctls for swap and texture upload

NOTE: THIS REQUIRES AN UPDATED DRM!
adeon_bo_legacy.c
adeon_common.c
b4c95697150b8eb0bb60bb996f04be323bb56332 08-Aug-2009 Dave Airlie <airlied@redhat.com> radeon_fbo: switch short to byte for 565
adeon_fbo.c
e0c9157671e0f3868c2c53125f885fb9be1e3a62 10-Aug-2009 Dave Airlie <airlied@redhat.com> radeon: fix cut-n-paste in alphabits in fbo code
adeon_fbo.c
f7474a577d54765d893b78fbf0d6a969c2dc60cd 07-Aug-2009 Alex Deucher <alexdeucher@gmail.com> radeon: correct fix for tiling with the legacy build
adeon_bo_drm.h
adeon_bocs_wrapper.h
caf4f0ede78b4f6b1e340e33b96f21ce8a6ac344 07-Aug-2009 Alex Deucher <alexdeucher@gmail.com> radeon: fix the build with older drm headers
adeon_bo_drm.h
239c8bfb10d3cd61547ccc460f0b89062f3520bc 07-Aug-2009 Dave Airlie <airlied@redhat.com> radeon: enable tiling fallbacks in 3D driver.

Only really got good testing on r500 so far, need to enable in
DDX and play some more.
adeon_bo_drm.h
adeon_bo_legacy.c
adeon_common_context.c
2dc3fb7803cd31b20a06bcad23949be5b3a1dbb2 07-Aug-2009 Dave Airlie <airlied@redhat.com> radeon span: add r200 depth/stencil span read/writing

this should only really affect DRI2 since we mostly have a surface in DRI1.

I don't think this is perfect yet, but it is a better start than nothing.
adeon_span.c
15f5f839b1a52a49bb60e73625b8c6b2f73a75e8 05-Aug-2009 Roland Scheidegger <sroland@vmware.com> radeon: fix miptree comparison breakage

another case of image never matching miptree in case of compressed textures
adeon_mipmap_tree.c
50c736589ee0edbedf9ac434e883483b82b3030a 04-Aug-2009 Roland Scheidegger <sroland@vmware.com> radeon: more fixes for compressed textures

- fix not respecting required hardware stride with compressedTexImage -
this fixes #22615.
- make sure correct stride is used in various places
- fix stored miptree never matching with a TexImage call with compressed
texture
- don't always store data with compressedtexsubimage at offset 0,
and actually use the supplied pixel data... (untested)
- make sure rows for compressed texture handling are rounded up not down

Note that trying to access stored compressed textures in hardware miptrees
from core mesa (get_compressed_teximage, swrast fallbacks) can't work correctly,
since RowStride isn't really set to anything useful, plus some places (at least
get_compressed_teximage) assume this data has native stride and no padding.
adeon_mipmap_tree.c
adeon_texture.c
4221e81b2489c4c91092ef49bba181a1bed216c8 03-Aug-2009 Eric Anholt <eric@anholt.net> radeon: Fix inverted test for disabling flushing of front buffer output.

(corresponding fix to the intel driver one)
adeon_common.c
e0d61fd696b3561d575a9ee5055a1484a5ac6926 03-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: add some new r7xx pci ids
adeon_chipset.h
adeon_screen.c
f538d0275398276b8f9634a0b1857a01641ae927 03-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: add some missing pci ids
adeon_chipset.h
adeon_screen.c
583ed4aae54c308009346c083a1a0d49d4361631 03-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: fix the build when RADEON_DEBUG_BO is set
adeon_bo_legacy.c
282c0c411cc1d9c10adc75cb066e8af819073975 03-Aug-2009 Alex Deucher <alexdeucher@gmail.com> r600: fix r600SetTexOffset

We need to properly set up a fake bo for the texture override,
so add a new function to radeon_bo_legacy.c. This could probably
be used on radeon/r200/r300 to unify the bo handling for
texture override.

compiz now works :)
adeon_bo_legacy.c
adeon_bo_legacy.h
801c3fcbca69a17f0696522b91cbfc378094974b 31-Jul-2009 Roland Scheidegger <sroland@vmware.com> radeon: fix r100/r200 compressed texture stride

This almost fixes compressed mipmapped textures on r200, though some small
mip levels are still broken.
Leave r300 compressed texture stride as is though afaik it's different
to pre-radeon-rewrite too. Also do the fixup for rs600 uncompressed row stride
at same place.
adeon_common_context.c
2730ee75c73e79f4196d6df5540da7063a96c25e 31-Jul-2009 Roland Scheidegger <sroland@vmware.com> radeon: s/r300/radeon in shared code error message
adeon_texture.c
55bc8b139067f2596da654075a4fc6e5940e22dd 29-Jul-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Cliprects has to be updated before doing anything with clip rectangles

Reported to fix corruption while dragging an active window by John Bridgman.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
adeon_common.c
1fcb321e2fa1903b815b099e59bd85aac823850a 31-Jul-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Remove unused variable from context.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
adeon_common_context.h
adeon_lock.c
b116f57bacb79205a1f80c7055964c60b402a19d 30-Jul-2009 Alex Deucher <alexdeucher@gmail.com> r600: fix texture pitch alignment

fixes texwrap
adeon_common_context.c
adeon_common_context.h
adeon_mipmap_tree.c
e629c50e2be03144e8aeef3c51624ae8db9957b8 28-Jul-2009 Alex Deucher <alexdeucher@gmail.com> r600: implement texture border color
adeon_common_context.h
e5bed439be4fd7c3a349aedc4bff7eec4e4d363e 15-Jul-2009 Nicolai Hähnle <nhaehnle@gmail.com> r300: Detangle fragment program compiler from driver-specific structure

This is in preparation of sharing the fragment program compiler with Gallium:
Compiler code is moved into its own directory and modified so that it no
longer depends on driver structures.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
adeon_screen.c
6b142866abb3097a84cf4b6dae69423154ab40a6 27-Jul-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Add r6xx/r7xx chip family to get_chip_family_name

This fixes problem that glxinfo was reporting r600+ cards as unknown.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
adeon_common_context.c
600a53a32edea7d03efa21103ad7122670c4ed4a 27-Jul-2009 Alex Deucher <alexdeucher@gmail.com> r600: Use R600_SCRATCH_REG_OFFSET rather than RADEON_SCRATCH_REG_OFFSET

noticed by vehemens on IRC.
adeon_screen.c
7247446ba81b6bafede9ead750e5b5e81f3f1a10 21-Jul-2009 Jerome Glisse <glisse@freedesktop.org> radeon: fix colorbuffer pitch emission regarding tiling in KMS/CS case

We need to emit a relocation for pitch register so that kernel can
check and properly setup tiling on the color buffer.
adeon_state_init.c
cd63e35603568c168e8aebbc47ca6ea308f2ccfa 20-Jul-2009 Michel Dänzer <daenzer@vmware.com> Merge branch 'mesa_7_5_branch'
5ed440400573631f540701f3efd479d8c1592007 20-Jul-2009 Michel Dänzer <daenzer@vmware.com> radeon: With DRI1, if we have HW stencil, only expose fbconfigs with stencil.

Otherwise simple apps like glxgears pick up a DirectColor visual since the X
server mixes the depth 32 visual in with the other GLX visuals, and this seems
to result in a (mostly) black screen due to a bad ColorMap for a lot of people.

The bad ColorMap may be a bug in the apps, the X server or X driver, and
regardless of that I think the X server should ideally make the depth 32 GLX
visual separate from the rest again, but in the meantime this makes us cope.

(depth_bits is either 16 or 24, never 0)
adeon_screen.c
8413a3aefaf4968f8b17263826b34baa99c2a907 12-Dec-2009 Maciej Cencora <m.cencora@gmail.com> radeon: fix #25463

This is just a workaroung until we properly fix texture mapping in radeonSpanRenderStart
adeon_mipmap_tree.c
f1900323ea1e387afc487737f9930ba0d014fd0d 11-Dec-2009 Maciej Cencora <m.cencora@gmail.com> r300: fix depth textures
adeon_texture.c
a046beaffee6233e178ba7184df10f3eacd0bce4 18-Jul-2009 Dave Airlie <airlied@redhat.com> radeon: disable BO debug
adeon_bo_drm.h
79a170108f1d9cad949cd2a34e4de597beae72db 17-Jul-2009 Kevin DeKorte <kdekorte@gmail.com> R6xx/r7xx: warning fixes

patch from Kevin DeKorte with some minor fixes from me.
adeon_common_context.c
11606e873d38a320195ab4e23181579f766ae45c 16-Jul-2009 Alex Deucher <alexdeucher@gmail.com> Fix more merge fallout
adeon_bo_legacy.h
1e8a6068ee8b914bc601613c5e1655184c1cc05b 15-Jul-2009 Alex Deucher <alexdeucher@gmail.com> radeon bo: Fix merge fall out
adeon_bo_drm.h
c5c19919ce627b98d8aab4284da1694573bcccd4 15-Jul-2009 Alex Deucher <alexdeucher@gmail.com> Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa into r6xx-rewrite

This builds, but I get an assertion in radeonGetLock() due to
the drawable being null.
a0d4a12614fce072fa1eb5516e626909171c95e1 15-Jul-2009 Alex Deucher <alexdeucher@gmail.com> make sure ctx->Driver.Flush is valid before calling it
adeon_common.c
adeon_fbo.c
efe7ad233ca8fa1b7e1aabf706c433955c5c51e8 15-Jul-2009 Alex Deucher <alexdeucher@gmail.com> Use memcpy directly in the common code

This alleviates the need for an additional symbol.
adeon_bo_legacy.c
adeon_common.c
3a3b83e5112b725e22f05b32a273a2351b820944 15-Jul-2009 Dave Airlie <airlied@redhat.com> radeon: update span reading micro tile code

tested on r500 with zreaddraw with Z buffer in all 3 modes
adeon_span.c
94d2a809f9cabf3821be9b0d2b11b26151ed3084 14-Jul-2009 Dave Airlie <airlied@redhat.com> radeon: r300 fix span reading for macro tiled buffers.

this uses the correct formula for macro tiled buffers for readback
adeon_span.c
9b17f041d12cfe9a34df43da93fc16e275a5c751 08-Jul-2009 Dave Airlie <airlied@redhat.com> radeon: for tiling you really need to use GET/PUT VALUE not PTR.

since the surfaces aren't linear you can't just use GET_PTR
adeon_span.c
10b3e64bcada2e68144cc6ed40f7d760aff873e2 15-Jul-2009 Alex Deucher <alexdeucher@gmail.com> R6xx/r7xx: implement memcpy buffer swaps

This allows double buffered apps to run, but perfomance
will be awful until we implement something faster.

You must update to the latest kernel modules.
adeon_common.c
f6f0e117a45a64464e49290ebc9f75b9a976070a 15-Jul-2009 Dave Airlie <airlied@redhat.com> intel/radeon: add common metaops code.

Move all the metaops to a dri_metaops file and port radeon/intel
to use the new common meta ops code.
adeon_common.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
adeon_ioctl.c
9ae78dc0bc948d56198c344d077a1513e531c4d4 15-Jul-2009 Alex Deucher <alexdeucher@gmail.com> R6xx/R7xx: no irqs yet.
adeon_common_context.c
681ede8836746735fbb904edf89b076343507a8b 14-Jul-2009 Dave Airlie <airlied@redhat.com> radeon: fix unsigned vs signed comparison in stencil code.

This function takes a GLint not a GLuint, passing in -1
breaks internally.
adeon_common.c
33f56b4612e506999a2be8391ba82c0174afa1b3 14-Jul-2009 Michel Dänzer <daenzer@vmware.com> radeon: Differentiate 16 bpp destination formats.

Fixes those formats in fbo_firecube.

Only tested with r300, radeon and r200 compile tested only.
adeon_state_init.c
60e60bb3026a269fefe1cfd3312fdf3a7e4c595f 14-Jul-2009 Michel Dänzer <daenzer@vmware.com> radeon: Invert front face winding when rendering to FBO.

Fixes fgl_glxgears and progs/demos/fbotexture after pressing 'c'.

Tested with r300, radeon and r200 compile tested only.
adeon_state.c
bb4c70358778f28f644ae493b5d8163e76e9fddb 13-Jul-2009 Dave Airlie <airlied@linux.ie> radeon: port more front fixes from intel.

Port fixes to read buffer from front.
adeon_common.c
adeon_common_context.c
adeon_common_context.h
504d01b275169f019d375b4a8b5e935b9fd108d3 13-Jul-2009 Dave Airlie <airlied@linux.ie> radeon/r200: fix color masking under dri2

Need to retrieve the bits from the rrb not from screen struct
adeon_state.c
a79aefb1775ce6eaf0fd0cf9a1f72150f631c90f 13-Jul-2009 Dave Airlie <airlied@linux.ie> radeon: Use Stencil.Enabled instead of Stencil._Enabled in DrawBuffers.

The _Enabled field isn't updated at the point that DrawBuffers is called,
and the Driver.Enable() function does the testing for stencil buffer
presence anyway.
adeon_common.c
d9913d7c095487ebec6ce074d1ac4edbd96d260d 13-Jul-2009 Dave Airlie <airlied@linux.ie> radeon/fbo: stencil bits fix from Michel in intel fbo code
adeon_fbo.c
b484c71036e0d0b30ac7685ba50a9008d09f5047 12-Jul-2009 Nicolai Hähnle <nhaehnle@gmail.com> radeon: Fix crash when rendering to incomplete texture and other formats

It is possible to bind texture images of an incomplete mipmapped texture.
Software fallbacks in this case incorrectly tried to mmap the entire texture.

Additionally, add span functions for 1555 and 4444 formats.

This fixes crashes in piglit's fbo-readpixels test; unfortunately, the test
itself still fails - this needs to be investigated.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
adeon_span.c
a10244453c24d62cd87f8c4d85cbe103b62db311 12-Jul-2009 Dave Airlie <airlied@redhat.com> radeon: update clear code from Intel codebase.

This updates some of the clear code from Intel gives a 5x clearspd perf
for me here. played openarena also, not sure if the viewport changes
broke anything,
adeon_common.c
adeon_common_context.h
b06cb372bf59f06f51af40572917d4cd94346f90 11-Jul-2009 Dave Airlie <airlied@redhat.com> radeon: fbo fix firecube crashes

it might still be misrendering not sure
adeon_fbo.c
65059606e9a0039fc962869857c5f00a11d6b7cc 11-Jul-2009 Michel Dänzer <daenzer@vmware.com> radeon: Fix scissor rectangle calculation when rendering to FBO.

fgl_glxgears -fbo runs, though the gears don't look right yet.
adeon_common.c
db618427abab44939189c688e58ea7eca52f1795 10-Jul-2009 Dave Airlie <airlied@linux.ie> radeon: enable GL_NV_texture_rectangle under dri2.
adeon_context.c
85957cb512e74c8ddeb5ba2e06df091943ab8400 10-Jul-2009 Dave Airlie <airlied@linux.ie> radeon: set texture in state properly.

make sure to turn off when no texture is used in hw
adeon_state.c
adeon_texstate.c
a6a11e1dc019ad54e0c4c9d1de46ca6ca48528c3 10-Jul-2009 Dave Airlie <airlied@linux.ie> radeon: make swtcl emit size bigger
adeon_dma.c
93ab69a0eff8e0b264ec8888cfd0ac11ea0e274f 08-Jul-2009 Richard Li <richardradeon@gmail.com> Fix buffer age implementaion bug.
adeon_bo_legacy.c
f74d1c26acaacf688545ecc1ddb996a02e991ccb 07-Jul-2009 Alex Deucher <alexdeucher@gmail.com> r6xx/r7xx: add sw blit for tex upload

Can be used for buffer swap as well.
adeon_bo_legacy.c
1bad691a177240e8281592fa66c9e6ab0869f618 06-Jul-2009 Alex Deucher <alexdeucher@gmail.com> R6xx/r7xx: first pass at texture support

texture bo setup isn't quite working yet
adeon_common_context.h
adeon_screen.c
95df7bfc03fc63152b241e65bce1f7c73bbf007b 05-Jul-2009 Maciej Cencora <m.cencora@gmail.com> radeon: fix copy and paste typo
adeon_common.c
f110c5fd6e762a0166c44d7446c4c3fdc434f42a 06-Jul-2009 Dave Airlie <airlied@redhat.com> radeon: fixup FBO depth 24 allocations to avoid assert
adeon_fbo.c
c27f21f92d2cf9d23a9edb15d144eceb9ff383bc 06-Jul-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: port to new space checking code in libdrm

This moves a big chunk of the space checking code into libdrm so
it can be shared by the DDX.
akefile
adeon_bo_drm.h
adeon_bo_legacy.c
adeon_common.c
adeon_common.h
adeon_cs_drm.h
adeon_cs_legacy.c
adeon_cs_space_drm.c
adeon_dma.c
adeon_state.c
060c7f2321f72503c14f9f3f7bb27d59d8a90224 03-Jul-2009 Michel Dänzer <daenzer@vmware.com> radeon: Wait for BO idle if necessary before mapping it.

Fixes fighting between GPU and software rendering with TTM.
adeon_span.c
54ee188a00e31d239cbd256e7ba5ffd2c1259650 02-Jul-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: drop radeon renderbuffer private width/height

half stealing the code without taking the intel regions
adeon_common_context.c
adeon_common_context.h
adeon_texstate.c
2ed3eddf9a828f2ff6c74b0913ca37fb60672950 02-Jul-2009 Dave Airlie <airlied@redhat.com> radeon/r300: use base width/height.

I suspect this might break TFP in some way but it makes firecube run here
adeon_state_init.c
43bb78f2bb6c851d989903e7eb996e87113d878c 19-Jun-2009 Roland Scheidegger <sroland@vmware.com> radeons: use dp4 for position invariant vertex programs

Fixes #22181. R200 requires this since DP4 is used in hw tnl mode.
R300 prefers it (should be faster due to no instruction dependencies), but
both methods should be correct (when sw tcl is used though, MUL/MAD might
be faster). Probably doesn't make much difference for R100 since vertex progs
are executed in software anyway, but let's just keep it the same there too.
adeon_context.c
6791576f6cc90018bd65c263fa6c16ad2b19cdae 29-Jun-2009 Dave Airlie <airlied@redhat.com> Revert "r200: make use of DMA buffers for Elts a lot better."

This reverts commit 0952645fe04a27968565ea4d913500c23b1b11e3.

Need to revisit where this is going wrong
adeon_dma.c
adeon_dma.h
dbb56687c83845cc20aee7243e437a32e5c79a70 01-Jun-2009 Nicolai Hähnle <nhaehnle@gmail.com> radeon: Always initialize front and back renderbuffers if present

This fixes an assertion in glReadPixels from the front buffer.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
adeon_common_context.c
0952645fe04a27968565ea4d913500c23b1b11e3 26-Jun-2009 Dave Airlie <airlied@redhat.com> r200: make use of DMA buffers for Elts a lot better.

This allows us to return the unused portion of the dma buffer
to the allocator instead of wasting nearly 16k a pop.
adeon_dma.c
adeon_dma.h
43b3b745e4d893b64d6331cb6183f8615e613f66 25-Jun-2009 Roland Scheidegger <sroland@vmware.com> radeon: fix hw texture limits

still always enable max, but the right values this time.
More work should probably be done for saner limits without mm, and/or
dri conf option allow_large_textures (which is ignored) removed.
3D limit on r100 is pretty arbitrary as still handled by swrast anyway.
Also fix r300 limits (except 3d I've no idea what the max is anyway so
keep using mesa default).
adeon_context.c
cdbcb051d93836861bc4d4e1027156111ac249d2 25-Jun-2009 Dave Airlie <airlied@redhat.com> radeon/r200: add some hw texture limits
adeon_context.c
69fd0cbaa2ac259101f647ad0934b626f382674f 24-Jun-2009 Dave Airlie <airlied@redhat.com> radeon: fix stupidity in cs space check code.

This was already correct in the GEM code
adeon_cs_legacy.c
402df41c1c7655439d22efead08153dc29fe2afd 20-Jun-2009 Roland Scheidegger <sroland@vmware.com> radeon: make cubemap mipmap generation work

need to pass target parameter to radeon_teximage/radeon_subteximage functions
otherwise mipmap generation for cube maps can't work (assert/segfault in
_mesa_generate_mipmap)
adeon_texture.c
4d2b392a0ac597f8b7f88006746660e8f0fe09ea 19-Jun-2009 Roland Scheidegger <sroland@vmware.com> radeon: fix cube maps for non-mm path

drm cmd checker would refuse cube emits
also fix an issue in the cs path which would calculate the register
offset off by one dword.
Only same testing done as original code (none except compile tested).
adeon_state_init.c
7ce814b25f8c216c7897904cbce7f570112e60ef 19-Jun-2009 Roland Scheidegger <sroland@vmware.com> radeons: use dp4 for position invariant vertex programs

Fixes #22181. R200 requires this since DP4 is used in hw tnl mode.
R300 prefers it (should be faster due to no instruction dependencies), but
both methods should be correct (when sw tcl is used though, MUL/MAD might
be faster). Probably doesn't make much difference for R100 since vertex progs
are executed in software anyway, but let's just keep it the same there too.
adeon_context.c
b165fa7d45e230f9e61fcf3a09babf0c61c67319 18-Jun-2009 Dave Airlie <airlied@redhat.com> radeon: don't re-add BOs to validate list

if its on the list its on the list don't go readding it.

multitexturing from the same texture could cause this.
adeon_common.c
f806a0336153ec211441a23da0eb8e763e001b02 17-Jun-2009 Jerome Glisse <jglisse@redhat.com> radeon: Flush command buffer on viewport change

We flush the command buffer so we don't emit mixed
state (with new and previous buffer size) command
buffer, this is especialy affecting zbuffer states.
adeon_common.c
856221d6995a7754cde60748d7c229b5278f043e 17-Jun-2009 Dave Airlie <airlied@redhat.com> radeon: fix warnings in wrapper with libdrm
adeon_bocs_wrapper.h
e0eafde746fee546b16205e4a605e28f78e120f9 15-Jun-2009 Maciej Cencora <m.cencora@gmail.com> r300: fix 3D textures
adeon_texture.c
41091087396f935d4acf70b018ba54889fcf55a1 12-Jun-2009 Maciej Cencora <m.cencora@gmail.com> r300: add support for EXT_texture_sRGB

Tested with glean/texture_srgb and wine/d3d9 tests on RV535
adeon_texture.c
1036ef2bf468611d37b5df06fc4424f2002e3837 12-Jun-2009 Alex Deucher <alexdeucher@gmail.com> Merge master and fix conflicts
d0fab94842b18dbd4027f5565804ca6884646240 12-Jun-2009 Dave Airlie <airlied@redhat.com> radeon: fix size of mipmap texture array
adeon_mipmap_tree.h
a5d92d7ed208d20c788889640503fa61b2d38851 12-Jun-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: fix max texture levels assert

use the actual value set in the context
adeon_mipmap_tree.c
917f8bc1a85e61311cef6478127b387df70fba14 12-Jun-2009 Alex Deucher <alexdeucher@gmail.com> Add RV740 support
adeon_chipset.h
adeon_screen.c
e21e82f42549aa78214f3339a13b79791406dde0 07-Jun-2009 Maciej Cencora <m.cencora@gmail.com> radeon: increase max bo count
adeon_common_context.h
7ac2f655f845a7a100939a9b1b2251535055ab84 11-Jun-2009 Alex Deucher <alexdeucher@gmail.com> move radeon_set_screen_flags() up so CHIP_FAMILY is set before using it

fixes last commit.
adeon_screen.c
51507b0e94ffb375a040ef751a435c2e196ee748 10-Jun-2009 Alex Deucher <alexdeucher@gmail.com> Use correct scratch reg offset for r6xx/r7xx
adeon_screen.c
18b3cbcede292ce7b90b818b6abb064869072ff3 09-Jun-2009 Dave Airlie <airlied@redhat.com> radeon: fix mipmap_limits crasher.

This gets the correct srclvl image map when uploading images to the new mipmap.
adeon_texture.c
c1ccc7d5394c23a371540e1b2c3d35b0da3b30d6 31-May-2009 Nicolai Hähnle <nhaehnle@gmail.com> radeon: Provide a more detailled GL_RENDERER string.

Display the chip family and PCI ID. This can be parsed easily,
and essentially all information that the driver has about the chip can be
deduced from it.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
adeon_common_context.c
adeon_screen.c
adeon_screen.h
3a6dd3ebb33a35779b0d5be2c8cab581a56f245a 27-May-2009 Jerome Glisse <glisse@freedesktop.org> radeon: emit scissor before emiting vertices
adeon_ioctl.c
6141c9ba71df68c44fb4f8c9409f23b557009ca0 27-May-2009 Jerome Glisse <glisse@freedesktop.org> radeon: emit scissor when using cs submission style.
adeon_ioctl.c
17417fc8eeaf5f88452fa3d37a763cee3c92a28c 26-May-2009 Alex Deucher <alexdeucher@gmail.com> fix segfault when running glxinfo
adeon_common_context.c
4a28974cf59e12f1296526802a4ed3e7160671e4 26-May-2009 Alex Deucher <alexdeucher@gmail.com> add missing RS780 pci id
adeon_chipset.h
adeon_screen.c
ced2f1b94c2bac8344f44e9474b1e363f65f4d3f 26-May-2009 Alex Deucher <alexdeucher@gmail.com> fix build when HAVE_LIBDRM_RADEON is defined
adeon_common.h
adeon_common_context.h
9dee2f20a204f375eb4321092cf5dea6476c1c24 25-May-2009 Jerome Glisse <glisse@freedesktop.org> radeon: on update drawable don't firevertices as it might be call from GetLock

To avoid locking bug we shouldn't not call firevertices from this path
as it's call from radeon get lock.
adeon_common.c
9b1efcb87c794ded9306f01336d48a80aaad3261 23-May-2009 Jerome Glisse <glisse@freedesktop.org> radeon: realloc dma if needed after revalidate

Revalidate can trigger flushing and dma buffer deallocation,
so retry allocation on such case.
adeon_dma.c
7dd184dc4da37233471875df6f40cce0560cb7bc 24-May-2009 Nicolai Hähnle <nhaehnle@gmail.com> radeon: Remove drawable & readable from radeon_dri_mirror

The duplication of state data caused a crash due to double-free on destruction
of context, because a variable wasn't correctly null'ed out.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
adeon_common.c
adeon_common_context.c
adeon_common_context.h
adeon_ioctl.c
adeon_lock.c
adeon_screen.c
adeon_state.c
434f9200422a9e937277ca592ef14a63781dec16 22-May-2009 Jerome Glisse <glisse@freedesktop.org> radeon: reading back to scratch reg through status map doesn't work

For some unknown reasons the scratch reg value doesn't endup in the status
map at the scratch reg offset, this is a temporary work around until we
figure out why it doesn't work.
adeon_bo_legacy.c
d7cc0eb47930d6c8ebfd18fefbe48fe8eec696a0 21-May-2009 Jerome Glisse <glisse@freedesktop.org> radeon: maxbuffer size is in bytes
adeon_dma.c
a13e96359baaa0331561f86ef6487feba6540464 20-May-2009 Jerome Glisse <glisse@freedesktop.org> r200: fix vbo array rendering
adeon_dma.c
01daeadf8cd8c56820585c3da88cc626dcdc33d0 20-May-2009 Michel Dänzer <daenzer@vmware.com> radeon: Increase reference count of current renderbuffers.

Fixes

glxinfo: main/renderbuffer.c:2159: _mesa_reference_renderbuffer: Assertion
`oldRb->Magic == 0xaabbccdd' failed.
adeon_common.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
c696dd0f62c195d71cf7ecbdd04d9b156dd0da0b 20-May-2009 Jerome Glisse <glisse@freedesktop.org> radeon: set max texture size

This still need some work to actually report somethings reasonable
if no memory manager is available.
adeon_context.c
3149b87ac43a5f10983c6682dff7a00cf1d99c7c 19-May-2009 root <root@richard-desktop.(none)> Makeup checkin for radeon code change paired with r6/7 code.
adeon_bo_drm.h
adeon_bo_legacy.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
adeon_dma.c
adeon_fbo.c
adeon_mipmap_tree.c
adeon_screen.c
adeon_texture.c
2a7a2c6b77116fd475e1d05fb0adbd1702d11f77 16-May-2009 Richard Li <richardradeon@gmail.com> Fix r6 code bugs.
adeon_common_context.c
adeon_screen.c
7cd57e35b6427068b87c2fdb6c2aadef57f53520 14-May-2009 Alex Deucher <alexdeucher@gmail.com> R1xx/r2xx: Don't use an alpha texture format for GLX_TEXTURE_FORMAT_RGB_EXT

In r*00SetTexBuffer2(), if the passed in text glx_texture_format
is GLX_TEXTURE_FORMAT_RGB_EXT, then we should use an RGB-only
texture format, even if the DRI buffer has four channels.

https://bugs.freedesktop.org/show_bug.cgi?id=21609
adeon_texstate.c
ca792be42b238bd1c8f8a99ad72ea8558cbbfc32 09-May-2009 Owen W. Taylor <otaylor@fishsoup.net> radeon: Don't crash generating mipmaps when pixels=NULL

When a NULL value of pixels is passed to TexImage2D and
SGIS_generate_mipmap is enabled, don't try to generate the
mipmap tree: we don't have data yet for the texture and will
crash.

https://bugs.freedesktop.org/show_bug.cgi?id=21648
adeon_texture.c
34eab5dd9c837769f1259e1f900b4528586d23b2 07-May-2009 Owen W. Taylor <otaylor@fishsoup.net> Call _mesa_update_stencil() before accessing ctx->Stencil._Enabled

ctx->Stencil._Enabled is derived state and not immediately updated
when the stencil parameters are changed; we need to make sure that
it is up-to-date before accessing it.

https://bugs.freedesktop.org/show_bug.cgi?id=21608
adeon_common.c
c514c1f99493147bbba7a1dbe157c0492f4cf2eb 12-May-2009 Jerome Glisse <glisse@freedesktop.org> radeon: glReadBuffer set _NEW_BUFFERS, not _NEW_PIXEL

This was broken with last merge see 62043b27575c378c027251316421e4699f461108
for explanations
adeon_state.c
0bfa8dfaaf49703eb5c3237b5cae6201b8755e4d 12-May-2009 Tormod Volden <debian.tormod@gmail.com> radeon: avoid segfault in radeon_update_renderbuffers() if using DRI1

Basically the same as 43d9020ff1e975e7f4f9480d9ef24f0b9fb2141f for intel. Bug 21688.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
adeon_common_context.c
98bb5c610dc68d8e9a185216ce9d2dc6d278c114 10-May-2009 Joel Bosveld <joel.bosveld@gmail.com> radeon: add support for new dri2 interfaces & fix single buffer rendering
adeon_common.c
adeon_common_context.c
adeon_common_context.h
13e0ff0df1bb75993bded7b248dd37f58fbfd22c 09-May-2009 Jerome Glisse <glisse@freedesktop.org> radeon: don't include cs uncondionaly
adeon_bocs_wrapper.h
e2dcebd2e6b2af6269a5ece6d6ced73ec8bb4a47 09-May-2009 Richard Li <RichardZ.Li@amd.com> R6xx/R7xx: WIP r6xx-rewrite code
adeon_cmdbuf.h
adeon_common.c
adeon_cs_legacy.c
adeon_fbo.c
adeon_screen.c
a67c29a268bdfecb910b929e05c0ea02c720caa6 08-May-2009 Jerome Glisse <glisse@freedesktop.org> radeon: IRQ always enabled in DRI2 path no need to query kernel for it
adeon_screen.c
14365aa0ef278ac6e04a8c6e6d37e6625b0a309a 02-May-2009 Maciej Cencora <m.cencora@gmail.com> r300: fix compiler warnings
adeon_bocs_wrapper.h
adeon_common.c
adeon_cs_legacy.c
adeon_texture.c
cfc3ac8d6e3024d1284cfc3f50f695b6b8008c5f 06-May-2009 Owen W. Taylor <otaylor@fishsoup.net> When clearing the stencil buffer, don't use a two-sided stencil

In radeon_clear_tris(), when clearing the stencil buffer,
pass GL_FRONT_AND_BACK to _mesa_StencilFuncSeparate(), to avoid
triggering a software fallback on r300 and below.

https://bugs.freedesktop.org/show_bug.cgi?id=21601
adeon_common.c
7f65fea95e56fe0dee91ba726358896c9899780a 06-May-2009 Dave Airlie <airlied@redhat.com> radeon: hopefully fixup radeon cube state emission for kms
adeon_state_init.c
d7f62e54055c7b8afaf0683944a4ba907b96d6ec 06-May-2009 Dave Airlie <airlied@redhat.com> r100/r200: try and allocate miptree correct for hw.

This doesn't make things worse but according to sroland it
is how the GPU hw expects things on the r100/r200
adeon_mipmap_tree.c
f616995e5ed56745c4470b2ca5aeeb8d89a8c9db 05-May-2009 Dave Airlie <airlied@redhat.com> radeon/r200: enable all the optional drm support bits
adeon_screen.c
0b22615c2c860968a027c04519e25864ae69f6cd 02-May-2009 Maciej Cencora <m.cencora@gmail.com> r300: set proper texture row alignment for IGP chips

Looks like r400 based IGP chips require 64 byte alignment
adeon_common_context.c
adeon_common_context.h
adeon_mipmap_tree.c
55db6ce537f1fd9acf205400202abfcc3908d6c3 28-Apr-2009 Alex Deucher <alexdeucher@gmail.com> R300: add quadpipe overrides

RV410 SE chips only have 1 quadpipe.
Also, handle other R300 chip with quadpipe override.
adeon_screen.c
09c91a1565fc99f20379a0f552651303ae8067c2 28-Apr-2009 Alex Deucher <alexdeucher@gmail.com> R300: add quadpipe overrides

RV410 SE chips only have 1 quadpipe.
Also, handle other R300 chip with quadpipe override
adeon_screen.c
5ca4f3c5dad94f8e07aa7d93c076d4bc0acee1f6 28-Apr-2009 Dave Airlie <airlied@redhat.com> radeno: cleanup the startup path further
adeon_screen.c
a9d64873d771a0ac8a319f036d97d827fea934df 28-Apr-2009 Dave Airlie <airlied@redhat.com> radeon: further cleanup dri1 screen init
adeon_screen.c
4e7d603fae8cff2a80096936ad210cb26a3f5f0e 28-Apr-2009 Dave Airlie <airlied@redhat.com> radeon: remove kernel mm, dri2 path takes care of it
adeon_screen.c
3d83a709b94e72608a061449bc30edc8af7c9ecc 25-Apr-2009 Maciej Cencora <m.cencora@gmail.com> r300: fix valgrind warnings
adeon_common.c
adeon_screen.c
7ff2dcbbdc74bf5e9650d4a94a253a0cab3e8863 23-Apr-2009 Maciej Cencora <m.cencora@gmail.com> r300: add atom print function for kernel mm path
adeon_common.c
27c07b6b28cb5d9f0b2ba446846670a234e48228 21-Apr-2009 Richard Li <RichardZ.Li@amd.com> Initial pull of code from r6xx-r7xx-support branch

Not functional yet.
adeon_screen.c
bcef4b63eba3b6072df3a699d0c4d5128e2515b9 19-Apr-2009 Maciej Cencora <m.cencora@gmail.com> r300: revert part of cb4bef7ae0b5fe8de82c380bc98f19067394d355

Some debugging code got there by accident
adeon_mipmap_tree.c
cb4bef7ae0b5fe8de82c380bc98f19067394d355 18-Apr-2009 Maciej Cencora <m.cencora@gmail.com> r300: general cleanup

- remove unused fields
- remove unused defines and macros
- flatten one structure
adeon_mipmap_tree.c
3230cb5f532c9df6a262b339d947bb71c71c510e 19-Apr-2009 Dave Airlie <airlied@linux.ie> radeon: update clear state with latest intel code
adeon_common.c
143b416af6662995059cd5209a750dbace78081c 16-Apr-2009 Dave Airlie <airlied@redhat.com> radeon: take a bo reference when adding to validate list
adeon_common.c
8181f8fbf9c3d0f60191ee874248b8113b215e30 12-Apr-2009 Jerome Glisse <glisse@freedesktop.org> radeon: emit scissor when using cs path
adeon_state_init.c
04f335fd16c2a13b9425797acf5c3989cb6def7f 10-Apr-2009 Alex Deucher <alexdeucher@gmail.com> Merge branch 'radeon-rewrite' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa into r6xx-rewrite
69edb8a156cb83e6658dfbe50f56ce4394a79e14 09-Apr-2009 Alex Deucher <alexdeucher@gmail.com> R600/r700: add new cmdbuf macros
adeon_cmdbuf.h
e24e4ae2e8f69447c0917655d25fa96b62b94298 09-Apr-2009 Alex Deucher <alexdeucher@gmail.com> R6xx/R7xx: r300 -> r600 symbols
adeon_screen.c
d1a9b1f513109c975a5a7ed5a2d0c329b280afe4 09-Apr-2009 Dave Airlie <airlied@redhat.com> Merge remote branch 'origin/master' into radeon-rewrite

Conflicts:
src/mesa/drivers/dri/r200/r200_tex.c
src/mesa/drivers/dri/r300/r300_cmdbuf.c
src/mesa/drivers/dri/r300/r300_context.h
src/mesa/drivers/dri/r300/r300_swtcl.c
src/mesa/drivers/dri/r300/r300_tex.c
src/mesa/drivers/dri/r300/r300_texmem.c
src/mesa/drivers/dri/r300/r300_texstate.c
src/mesa/drivers/dri/radeon/radeon_tex.c
4138bdb3b1e845d8a6172015025e1231fda7dcd1 08-Apr-2009 Alex Deucher <alexdeucher@gmail.com> R600: initial copy of r300 code
adeon_chipset.h
adeon_common_context.c
adeon_screen.c
adeon_screen.h
90ffce497395d8c02fee2ea4ee4c025eede3d876 07-Apr-2009 Alex Deucher <alexdeucher@gmail.com> radeon: fix compiler warning
adeon_state.c
86556f8bdab2c59a33619ecfda011bce8f047acb 07-Apr-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: fix missing dma buffer validation

this make gnome shell run
adeon_common.c
adeon_state.c
23478f1c037c3c97ebf3a5f53f2dfbfa31a9b197 06-Apr-2009 Dave Airlie <airlied@redhat.com> radeon: fix bocs wrapper
adeon_bocs_wrapper.h
741aaaa2881e5ab60cfa55f081f7b9ca6f4de46b 03-Apr-2009 Jerome Glisse <glisse@freedesktop.org> radeon: add support for new ttm
adeon_common.c
adeon_screen.c
adeon_span.c
e798bf8053612516420a4ec42e2ff58433abd521 06-Apr-2009 Michel Dänzer <daenzer@vmware.com> radeon: Expose a 32 bit RGBA fbconfig even when the screen depth is 16.

Otherwise current xserver / libGL no longer expose a 32 bit RGBA GLX visual,
and compiz fails.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=20479 .
adeon_screen.c
7391ba1e9d81f15465059db25d1279eefdbeb1a9 03-Apr-2009 Brian Paul <brianp@vmware.com> mesa: rename some gl_light fields to be clearer

EyeDirection -> SpotDirection
_NormDirection -> _NormSpotDirection
adeon_lighting.c
adeon_state.c
05304d41f2d9ab7a66a8b976580c156b7b93a9d3 02-Apr-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: fix up the whole buffer space checking.

This fixes up the buffer validation scheme, so that we keep a list
of buffers to validate so cmdbuf flushes during a pipeline get
all the buffers revalidated on the next emit.

This also fixes radeonFlush to not flush unless we have something
useful to send to the GPU, like a DMA buffer or something not state
adeon_common.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
adeon_dma.c
adeon_state.c
adeon_state.h
41702160090a4c1325afc07c56682f3e1c4fcaf0 02-Apr-2009 Dave Airlie <airlied@redhat.com> radeon/common: use glCtx not ctx
adeon_common_context.c
e00ef43d796f0ae0247b1072bf0aa8cdd8e3034d 02-Apr-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: collapse context destruction down to a common path.

Context destruction was nearly the same over all the drivers,
so collapse it down.
akefile
adeon_common_context.c
adeon_common_context.h
adeon_context.c
adeon_context.h
adeon_dma.c
adeon_dma.h
adeon_ioctl.c
adeon_maos.h
adeon_maos_arrays.c
adeon_maos_verts.c
adeon_screen.c
adeon_state.h
adeon_state_init.c
adeon_swtcl.c
adeon_swtcl.h
adeon_tcl.c
79c55e55f808d77cb0dff7cda826719d5fda3c7d 12-Mar-2009 Brian Paul <brianp@vmware.com> dri: use BorderColor instead of _BorderChan
adeon_tex.c
f9d272fa414ec04d9cc608840436f29e6adf84bc 01-Apr-2009 Dave Airlie <airlied@redhat.com> radeon: go back and repick texture formats.

This might trip up some serious FBO users, will have to see, but
it avoids the slow paths for all the demos I have.
adeon_fbo.c
adeon_tex.c
adeon_texstate.c
adeon_texture.c
adeon_texture.h
6e30fe4873f30ccf9edec9ab6113ea647dccb9b7 01-Apr-2009 Dave Airlie <airlied@redhat.com> radeon: fixup render buffer cleanups

this fixes qtdemo-qt4 starting and a leak in glxgears exit
adeon_common_context.c
adeon_screen.c
adeon_screen.h
d81a48757a9bde35299fd7c3cfbe83885238409a 31-Mar-2009 Dave Airlie <airlied@redhat.com> radeon/dri2: if the depth buffer is 16-bit force cpp == 2

This is because the DDX always allocates using the drawable sizes.
which gives me twice the depth buffer I asked for, dumb.
adeon_common_context.c
2f3be8ab14d6f4a3cc44817f6f55bc640faadde0 31-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fix pixel readback for RGB8 tests
adeon_fbo.c
adeon_screen.c
adeon_span.c
5ad32cfd21bc9c798d05f5202cc75d37cc258354 31-Mar-2009 Dave Airlie <airlied@redhat.com> r200: fix glean pixelFormats regression
adeon_texture.c
e1d16574932be24da573a93e3302418dc6e855f1 31-Mar-2009 Dave Airlie <airlied@redhat.com> radeon/r200: fix glean failures on readPixSanity since EXT_DEPTH_STENCIL support
adeon_span.c
adeon_texture.c
3b09f6544aee880687cd82de33205ae2fa652e10 29-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fix readback problem for piglit tests
adeon_span.c
8ed405cd3716a9a578bf2bdd46eabd6c90400074 25-Mar-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: set correct row stride for rbs
adeon_texstate.c
e757bf964f4fd9ddbaa23ebaa47f743725aaf2c5 25-Mar-2009 Dave Airlie <airlied@redhat.com> r300: check buffer sizes in non-tcl case + set correct VRAM limits
adeon_common.c
258686a973d7aef4bf956f540e99e65dc5bbee9c 25-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fixup map/unmap texture to work with override BOs

if you hit this you've already failed but we shouldn't crash
adeon_texture.c
f577c8e462fc924ea436d129ad64c8a1226b5f9c 24-Mar-2009 Dave Airlie <airlied@linux.ie> radeon/r200/r300: fix warnings
adeon_common_context.c
adeon_fbo.c
adeon_lock.c
adeon_mipmap_tree.c
adeon_mipmap_tree.h
adeon_span.c
adeon_swtcl.c
adeon_texstate.c
20981c0a0bd43aff4972c1300f990b06dfa789d1 24-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fixup some issue with fbos and sw fallbacks
adeon_fbo.c
adeon_texture.c
0a725db10c1491539d48370df7207206538bf945 24-Mar-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: set the texture depth correctly for DRI2
adeon_common_context.c
adeon_context.c
ccd18f462cccd238ff0d839004d43a3102f09ff3 24-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: actual format is rgba8
adeon_fbo.c
2aa097f963d7be12b538469f61214b8ddaa535fb 24-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fix typo
adeon_tex.h
28e082197d158206b58da62940cf57796abe565a 24-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: setup pipes for r300
adeon_screen.c
9f11b3311e9f65bc19a3fde10f1ee4d6fbb7ead2 24-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: stupid mesa extension fail
adeon_screen.c
f9d3de06bdc609d2c7cb189d220977968894c7ed 23-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fixup wrapper bo name
adeon_bocs_wrapper.h
cb68588c939c33b42f6ac704f0fe9b22b7350f71 23-Mar-2009 Dave Airlie <airlied@redhat.com> Merge branch 'radeon-fbo-hacking' into radeon-rewrite
8c7e30fb950c83f5e9e29e60735e999ac608145a 23-Mar-2009 Dave Airlie <airlied@redhat.com> raedon/r200/r300: mega-FBO commits.

Re work depth issues.
Do a lot more FBO abstactions
fixup depth/stencil buffer interactions
adeon_bocs_wrapper.h
adeon_common.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
adeon_context.c
adeon_context.h
adeon_fbo.c
adeon_ioctl.c
adeon_screen.c
adeon_span.c
adeon_state.c
adeon_state_init.c
c607a664dd005c001afda1fff1a68d41925fa86e 22-Mar-2009 Dave Airlie <airlied@redhat.com> radeon fbo: add draw offset calcs
adeon_common.c
adeon_common_context.h
adeon_fbo.c
4a2cb696cc3b9e151ea902fc976ee025fb614309 21-Mar-2009 Dave Airlie <airlied@linux.ie> radeon/r200/r300: add support for new tfp interface

also fixup old interface, gets rid of white boxes in compiz
adeon_screen.c
adeon_tex.h
adeon_texstate.c
06cb6f7aa799e25b4a53f8c547a8f4ca909fe245 22-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: use mipmap fns in FBO code
adeon_fbo.c
0968512f8f4abc5bce84c200bd99f8a522d56122 22-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: add miptree offset functions
adeon_mipmap_tree.c
adeon_mipmap_tree.h
4bd5ee2d9741a74e28f29e48a4c144206f78fd41 21-Mar-2009 Dave Airlie <airlied@linux.ie> radeon/r200: oops make correct fbo init calls
adeon_context.c
9f7a03d94586091ef6c38187e0c8a4564143fd7a 21-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: add xRGB span functions

same as ARGB need to add a parameter to get ptr32
adeon_span.c
218083c542138dc2271b83450f556a6146144f75 21-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: dri2 is hooked up elsewhere now
adeon_common.h
98f1b1e6f99c690645c3cb5093005fc41f436225 21-Mar-2009 Dave Airlie <airlied@redhat.com> radeon/r200: add fbo init
adeon_context.c
6c48c93a5358ab04d6779afb14203bd1680a37a0 21-Mar-2009 Dave Airlie <airlied@redhat.com> radeon/r200: add fbo state changes
adeon_state.c
8ab7c77dc2a29ad3edc1fab4e0c9fb01a15665fa 21-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: align FBO pitch
adeon_fbo.c
56c5df33de1e34b606bb771db27742af78be30f3 21-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: fixup last missing x_off/y_off
adeon_span.c
8a600836766716df684f2ab1eeafdcbec4b0f019 21-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: add cpp/pitch to rrb
adeon_fbo.c
e795bd3c9090443a5e52ff79356c253022de8538 21-Mar-2009 Dave Airlie <airlied@linux.ie> radeon/fbo: add x_off and y_off in correct places
adeon_span.c
86dcbb545729627e09115cc0d416af697f2c2832 21-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: dPriv handling is now in cliprects code
adeon_span.c
9368dcb426a97e8fb628b712ac74c7c808a79b9b 21-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: fixup span code for FBOs
adeon_common.c
adeon_common.h
adeon_span.c
ffde891a0390a915716087ca7d99b3ddf7f1ef89 21-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: fix up span function setting
adeon_fbo.c
adeon_span.c
adeon_span.h
ba890ad35b3ff52603665bdb576f9efcbb3a108a 20-Mar-2009 Dave Airlie <airlied@linux.ie> more fbo fillin
adeon_fbo.c
230abc06f817b5d9868f7e6a094f56bb3294b476 20-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: some more fbo work
adeon_common.h
adeon_fbo.c
adeon_screen.c
fabce837f9740df2553b6cc0dd991b2cb8b8fc5b 20-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: initial couch code copy from radeon
adeon_common.h
adeon_fbo.c
407e8ae5b167b0193e1e5b1266a5d61ed836dfb5 20-Mar-2009 Dave Airlie <airlied@redhat.com> Merge remote branch 'main/master' into radeon-rewrite

Conflicts:
src/mesa/drivers/dri/r300/r300_cmdbuf.c
src/mesa/drivers/dri/r300/r300_state.c
src/mesa/drivers/dri/r300/r300_swtcl.c
src/mesa/drivers/dri/r300/radeon_ioctl.c
src/mesa/drivers/dri/radeon/radeon_screen.c
bdaa0341caffc353fd26bbd91865c2d86eed11c1 19-Mar-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: cleanup some of the renderbuffer code
adeon_common.h
adeon_common_context.c
adeon_common_context.h
adeon_lock.c
adeon_screen.c
adeon_texstate.c
c0c06803fee4d5cd04da03f1984ae99e411e1588 19-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fix up locking like the intel driver for pageflip/swaps
adeon_common.c
aa85973f95b8ccce1964c9bbbfb1e411c4b31cbd 16-Mar-2009 Michel Dänzer <daenzer@vmware.com> Fixup previous commit.

radeonScheduleSwap() already takes the lock in the SwapBuffers case, only
the CopySubBuffer case was missing it.
adeon_common.c
9c591c52c7a9a75fc1f5822ed2f5e7e82ab396a5 16-Mar-2009 Michel Dänzer <daenzer@vmware.com> radeon: Take the hardware lock for swaps and flips.

Otherwise they fail with AIGLX at least.
adeon_common.c
0fc6c2644cf69fd1851c9387c83b0e43f820bdf2 09-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: remove unused lines
adeon_texstate.c
1ebc92b0d02afaf8be75630bb785c70d65315c1d 09-Mar-2009 Roland Scheidegger <sroland@vmware.com> fix typo in fragment pipe alu define, should fix dot3_rgb tex combine
erver/radeon_reg.h
778cf80d9e462ca26e660dca1910328f66f6427d 09-Mar-2009 Dave Airlie <airlied@redhat.com> r300: move firevertices out into the main place its needed.

This fixes a hang on context destruction on rs690
adeon_common_context.c
adeon_state.c
0f04a1d3f8989b0a391e6dad80abf06ce151d1f1 07-Mar-2009 Brian Paul <brianp@vmware.com> mesa: remove last of _mesa_unreference_framebuffer() calls
adeon_screen.c
1386e8a6ba9732c578e0122de245abfd578a7d1d 07-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fix cut-n-paste typo
adeon_dma.c
b125af1d2587d8e69218010ebba0b748467158a9 07-Mar-2009 Maciej Cencora <m.cencora@gmail.com> r300: shut up valgrind

It complained about uninitialized values

Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
adeon_screen.c
f881035fd84add859b3e3dc4721eddd027005f49 07-Mar-2009 Dave Airlie <airlied@redhat.com> rs690: fix r300 swtcl bug in DMA code.

When we finish emitting swtcl objects, we request space in the cmdbuf,
and flush if no space exists. However in this case we also flush
the DMA buffer we just put the vertices we wanted to send in.

This checks in advance if we have space in the buffer.
adeon_dma.c
c6ac53bc40508ab2f0b9e023eee7ec3793fdf917 06-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: implement userspace clears

This is pretty much Eric Anholts implementation of clear using the GL state machine
from the Intel drivers.

It works quite well for now for us, probably could do with trying to use Z engine for
clears.
adeon_context.h
adeon_ioctl.c
9d72a759170ebf51d8f93fd00d3d9c37bd5dfb27 05-Mar-2009 Dave Airlie <airlied@linux.ie> radeon: use t->bo to figure out of settexbuffer override is in action
adeon_texstate.c
5c80eb7ec13e064b81302da6c672e96a7a7e4e95 05-Mar-2009 Dave Airlie <airlied@redhat.com> r200: add set tex buffer support
adeon_screen.c
31f129880719f75c491fa2ad269055fbc2fb9b95 04-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: r100 clean up CS packet size calc
adeon_state_init.c
924bf0d8d3db28941efa97911bdcdd01a3f33b7c 04-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: settexbuffer support

This gets DRI2 compiz going
adeon_screen.c
adeon_state_init.c
adeon_tex.h
adeon_texstate.c
26d0172a5bc5b733e839e3ccb8d497cab2bcce98 04-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fix texturing for r100
adeon_state_init.c
940d47de08eedaf5d8471628ba4860663d79a98e 04-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: use swrast clear - fail on depth

need to write real hw user clear
adeon_ioctl.c
e0de73e8a558db5dfe8e20ed7aa2e9eae28861c1 04-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fixup some segfaults/exit at startup
adeon_common_context.c
adeon_state_init.c
54b42c0a4a07c5eab5c5dc4ebce2b947b7b6722e 02-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: remove debugging
adeon_common.c
2b85fccae5ba33748846f74f90fe0f72c673a4b1 02-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: refactor framebuffer code like intel

this is a step towards fbos and should fix pageflipping, but
I think the first flip seems broken.
adeon_common.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
adeon_context.c
adeon_lock.c
adeon_lock.h
adeon_screen.c
adeon_state.c
863c76a7bb0ecf0cd492d9ddb0dcac8e12da75e0 27-Feb-2009 Alex Deucher <alexdeucher@gmail.com> R300: add support for RS600 chips
adeon_chipset.h
adeon_screen.c
5a34ace3e6f507b4a7bd0f99051b64167549672c 27-Feb-2009 Alex Deucher <alexdeucher@gmail.com> R300: set the number of GB pipes on all r3xx-r5xx chips
adeon_screen.c
26c1b0af024e4847ce1000ee471ab5b5bdb18a1b 27-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: add more fbconfigs

this makes glxgears get its background back when running under DRI2
adeon_screen.c
e267a090ab7be5dbd9a40887726e6ae696bc7be3 26-Feb-2009 Dave Airlie <airlied@redhat.com> r200: port over cs emit changes from radeon
adeon_state_init.c
2972d065265d38c7902ffeaa1e71706895649bec 26-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fixup old packets emission for CS case
adeon_ioctl.c
6d7164705b933c754dddea6015b653a3bacc75bf 26-Feb-2009 Dave Airlie <airlied@redhat.com> r100: fixup kms state emissions
adeon_state_init.c
6415e64cbc55b2e11b9ed3f3a861e28479f85d68 25-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: avoid page flip code in DRI2
adeon_state.c
3ec7137a75f8832bba52f98669b93d4135ae1a3f 25-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: enable DRI2 for r100
adeon_screen.c
925ea2d9a5096dbad1d82dc1afffb13a650de799 25-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: move CB/ZB state init into emit code

This removes the use of the sarea for this stuff so makes DRI2 easier
and emits the CB/ZB info in the correct place
adeon_state_init.c
69f080cefced8b3395cdf179c107303a1013d196 25-Feb-2009 Alex Deucher <alexdeucher@gmail.com> R300: Add support for RS600 chips
adeon_chipset.h
adeon_screen.c
c32a28d86eda3d1984f6a571be0db6c6f5c7f5dc 23-Feb-2009 Dave Airlie <airlied@redhat.com> r300: fixup old setTexOffset DRI1 extension
adeon_screen.c
f4502f0f8c065f28c257b7be67021d3920e51a99 23-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: add more debug info to the flush debug
adeon_common.c
8c239704792712c246d04450cab8aa167ed8680c 23-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: stabilise r300 driver like the F10 mesa bufmgr

For some reason flushs caused by this CS needs flush hook,
caused the chip to lockup on r300 under compiz, whereas
the F10 driver was rock solid.
adeon_cs_legacy.c
77161c5ff51a7b8fcd7043b94c2cb86cb1d57d79 23-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: add some debugging for flush ioctls
adeon_common.c
d4bfe34cb9a06f887e243cde936982342d4894c6 23-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: make state atom print like old r300 code
adeon_common.c
b4a90c62134e7cf3af4ce52baa923a875ff292c1 23-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fixup legacy bo/cs out of VRAM waiting.

This is similiar to the code from the F10 r300 bufmgr
adeon_bo_legacy.c
adeon_cs_legacy.c
9705cff2033f1771a39ac3bb78eb5fcea522218a 21-Feb-2009 Brian Paul <brianp@vmware.com> mesa: re-org texgen state

New gl_texgen struct allows quite a bit of code reduction.
adeon_texstate.c
e9d6beaab4c4b47576fb422ace0434e0fbbe567a 18-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: move device param id check ifndef
adeon_bocs_wrapper.h
745c78733822573a5791fbae9b3e8fab785f7aca 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: initialise swapped objects pointer
adeon_bo_legacy.c
9c040745fe1d8c6cad3ac79030ead13fbcb5ae4d 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: legacy texMem interface fixups.

The texmem.c interface is wildly messed up it really wants to own the objects
so let it, pain in the ass but this code should work a lot better now
adeon_bo_legacy.c
7ce6af25e56e28a819c38e60b4371caea3c8b5b0 17-Feb-2009 Dave Airlie <airlied@redhat.com> Revert "dri/radeon: export a function to cleanup a texture object."

This reverts commit 5325f8624093bb1ec30d581b4ff64218ceab99f9.
adeon_bo_legacy.c
2ba4fc3d603ebc9e3210ef96f9fbc2cd488e0a33 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200: drop legacy texture heap code
adeon_common_context.h
adeon_context.c
48e7b940ebc2cb3594074ca35fad9c63f6568582 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200: fixup texturing aging calls
adeon_context.c
7c7ff659ce7684f44b064c09cdca6436d2c2bf64 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fixup destroy texture object exit path and update LRU

the destroy path was doing bad things with structure names, make it do less
bad things, use container_of instead
adeon_bo_legacy.c
43c71a2d40d417cf721656e8b088e375dc4bdedb 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: remove leftover debug
adeon_texture.c
62d504d818f1ab1836a134658b1661ceabb65f1f 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200: drop dirty state from texture object + pp_txoffset

this is just more code cleanup for old dead code
adeon_common_context.h
adeon_state_init.c
adeon_tex.c
adeon_texstate.c
646325a5efb3cf4157623d115d6d8fa36f0b357d 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fix not emitting texture state correctly

this is whole texture dirty bit is probably not needed with the current
codebase, need to revisit
adeon_texstate.c
0a8cba9a65e6ec1159a08725d2101e7eabb4526b 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: steal miptree optimisation from intel codebase

This replaces a miptree if it won't distrub anything else.
adeon_texture.c
7a1dbcabf3f2599c90665e7fdbdba8698528841a 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: move YUV on first texunit check after hw state is setup
adeon_texstate.c
5325f8624093bb1ec30d581b4ff64218ceab99f9 17-Feb-2009 Dave Airlie <airlied@redhat.com> dri/radeon: export a function to cleanup a texture object.

The radeon legacy code want to cleanup not free the texture obj,
so export a function to do that and wrap it.
adeon_bo_legacy.c
ecf0a3eac1a4868da83ab0a3c21e2f265f7cf9e2 16-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fix texcompress2 test.

this makes compressed subimages work properly.
adeon_texture.c
f069bc4a8e628197a11ff7eb447a88a59d819689 16-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fix compressed tex subimage unpack parameter
adeon_texture.c
b0e8ac8fd2eeb88b5f9299afb36102113a2435d4 15-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: add cflags to decide whether to link libdrm_radeon or not.

You don't need libdrm_radeon for the legacy driver to build,
only for the experimental mm/cs paths.
akefile
7d19d2768491f4de3b674106e93c24d29712404f 14-Feb-2009 Nicolai Haehnle <nhaehnle@gmail.com> radeon-common: Fix crash in glGetTexImage

Since texture images are now stored in miptrees, we cannot usually
access them directly via the Data pointer.

So we wrap Mesa's implementation by map/unmap calls.

This crash was triggered by Sauerbraten, Piglit now contains a
regression test.

Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
adeon_tex.c
adeon_texture.c
adeon_texture.h
2d9471b28159b9af952c6a87868ff648a6055c55 14-Feb-2009 Nicolai Haehnle <nhaehnle@gmail.com> r300: Fix crash in cubemap tree creation

The mip tree creation would crash if the first baselevel image to be uploaded
was not the positive-x image.

Found with Sauerbraten, also added a regression test to Piglit.

Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
adeon_mipmap_tree.c
5f3ab230ea3e971737b733b0c0358c0a85061f5c 14-Feb-2009 Michel Dänzer <michel@daenzer.net> r300: Fix R300_CMD_SCRATCH on big endian.
adeon_cs_drm.h
adeon_cs_legacy.c
b1b7bc66a414d200102a90ed0580c3fd80a45838 14-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: remove unused radeon_compat.c
adeon_compat.c
f3a1f321cfa275eba6186626ee691e8bc9ecfe8c 13-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: check for valid bo in release arrays
adeon_maos_verts.c
fcc7a691dc968d9d2bc61a8bf18dfbd7ed789598 13-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: remove old cube code
adeon_texstate.c
c0ae4d3c55a606ede41399e39e5221b1955ecc22 13-Feb-2009 Dave Airlie <airlied@linux.ie> radeon/r300: fix warnings
adeon_screen.c
adeon_texture.c
cd4e37c8fb7c03e8331a9487d46043eea70fea31 13-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: add initial cubemap support appears to work
adeon_state_init.c
2753dd42fd42a3383d2e74ab231d0b1373a2d46d 13-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200: make setTexOffset work again
adeon_common.c
adeon_state_init.c
adeon_texture.c
f363a97d2586a8487bfa64f882fbfc204a56fd05 13-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200: fix set tex offset functions
adeon_texstate.c
ed8340192ef88bd841966aba10d0043b246805bd 13-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: revert unneeded change to texturing code
adeon_texture.c
9fd8da299b4a62c6baf49f08067d7c1ddebb0ffd 13-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fix compressed texture upload on all radeons

tested on r200, texcmp works. May need more verification
adeon_mipmap_tree.c
adeon_texture.c
5ee1dd2133c5514713281f32cd4b05fabf14354a 12-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fixup include ordering
adeon_bocs_wrapper.h
adeon_cs_drm.h
53116910b10e3b8a05f42970eff311c21808699f 12-Feb-2009 Dave Airlie <airlied@redhat.com> Merge remote branch 'origin/master' into radeon-rewrite

Conflicts:
configure.ac
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/r300/r300_render.c
dc531ba4063a32e21419cd43cdd9019c64569eb5 12-Feb-2009 Dave Airlie <airlied@dhcp-1-203.bne.redhat.com> radeon: add stdint include
adeon_bocs_wrapper.h
899b91b1fb766f2b716c53a350ff2a078655e6c5 12-Feb-2009 Dave Airlie <airlied@dhcp-1-203.bne.redhat.com> radeon: add mminfo struct to wrapper
adeon_bocs_wrapper.h
ec0939b01370e9272000fcd4d71a023866e767a0 12-Feb-2009 Dave Airlie <airlied@dhcp-1-203.bne.redhat.com> radeon: add defines for future bits
adeon_bocs_wrapper.h
adeon_screen.c
1e77f7b55c052de238d46df3454bf2f2eb8d7346 12-Feb-2009 Dave Airlie <airlied@dhcp-1-203.bne.redhat.com> r200: make build complete
adeon_bocs_wrapper.h
c83d0bfe0645a58e7dd028b4472dbd54e479ab32 12-Feb-2009 Dave Airlie <airlied@dhcp-1-203.bne.redhat.com> radeon: make build without libdrm_radeon better
adeon_cs_drm.h
adeon_screen.c
d513915d27eac8a57ff7f5c1973b4a07fe288c53 12-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: make build again with tracker changes
akefile
adeon_bo_drm.h
adeon_bocs_wrapper.h
adeon_common.c
adeon_common_context.c
adeon_screen.c
9314d936e84cc8449d6e200b5d1df51d6d057876 12-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: remove depends on libdrm_radeon for now.

will fixup makefiles later to detect and use libdrm_Radeon in proper
places
akefile
dc8a707c672918b88dd4135930bef60ed148d8ce 12-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: make build with out libdrm_radeon installed for now
adeon_bo_drm.h
adeon_bo_legacy.c
adeon_bo_legacy.h
adeon_bocs_wrapper.h
adeon_buffer.h
adeon_cmdbuf.h
adeon_common.c
adeon_common.h
adeon_common_context.h
adeon_cs_drm.h
adeon_cs_legacy.c
adeon_cs_legacy.h
adeon_ioctl.c
adeon_ioctl.h
adeon_mipmap_tree.c
adeon_screen.c
adeon_screen.h
adeon_span.c
adeon_span.h
adeon_state_init.c
23d3559bd4ece1fcab5513ebdaa38600d6654374 12-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: renaming and headers cleanup
akefile
ommon_cmdbuf.h
ommon_context.h
ommon_lock.c
ommon_lock.h
ommon_misc.c
ommon_misc.h
adeon_bo_legacy.c
adeon_cmdbuf.h
adeon_common.c
adeon_common.h
adeon_common_context.c
adeon_common_context.h
adeon_context.c
adeon_context.h
adeon_cs_legacy.c
adeon_cs_legacy.h
adeon_dma.c
adeon_dma.h
adeon_ioctl.c
adeon_lock.c
adeon_lock.h
adeon_mipmap_tree.h
adeon_screen.c
adeon_span.c
adeon_state.c
adeon_state_init.c
adeon_swtcl.c
adeon_tcl.c
adeon_texture.c
adeon_texture.h
df4a1348b1f869338d4742b213dbde9d64de4c7a 12-Feb-2009 Dave Airlie <airlied@redhat.com> r100/r200: fix front rendering issue.
ommon_misc.c
adeon_state.c
1090d206de011a67d236d8c4ae32d2d42b2f6337 12-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: another big merge upheavel.

This merges lots of the hw state atom emission and firevertices code.

it also removes a lot of the extra radeon crap from r300

and merge scissor
ommon_cmdbuf.h
ommon_context.h
ommon_misc.c
ommon_misc.h
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_ioctl.h
adeon_screen.c
adeon_state.c
adeon_state_init.c
adeon_swtcl.c
adeon_tcl.c
adeon_tex.c
3713a7accf8e10049c878ae62f6bc199ef1566eb 11-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: unmap in case of two dma regions being used for one cmdbuf
ommon_misc.c
7e98907eb8da936d72902fa0bb456962fe6ac551 11-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: cleanup cmdbuffer
ommon_misc.c
c5d9a7ab3034b90614689f223b94ac81b8a84338 11-Feb-2009 Dave Airlie <airlied@redhat.com> r200: fix build
adeon_screen.c
edbe1fac6a1793da7faca104691a453023d9efac 10-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fix span init needs more work
ommon_misc.c
adeon_context.c
45496122b7b590479a4ed60c8bbdc1725cad0211 10-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: merge span code into single shared file
ommon_misc.c
adeon_context.c
adeon_span.c
adeon_span.h
7394c429c065eb96801500605ab7caa0a1289193 10-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200: flush vertices when data in cmdbuf.

This fixes a whole bunch of regressions in piglit
adeon_ioctl.h
18aca218a29578b5cb14a3bc492330406d3a761d 10-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: r100 can't use some of the texture formats.

this fixes the texrect-many test
ommon_misc.c
4c36282ef9e84da15b3e1d9bc28b9bbc8db5e1be 10-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: fix span code for depth reading.

makes the maskedClear test work
adeon_span.c
3e4d0c2a5d709e4b87474dfe6e64d67bb217135c 10-Feb-2009 Dave Airlie <airlied@redhat.com> r100: remove debug code
adeon_state.c
adeon_texstate.c
639b5fca0c5cea26a9dc393b538508aece16ce6b 10-Feb-2009 Dave Airlie <airlied@redhat.com> r100: fix 3D texture fallback
adeon_ioctl.c
adeon_state_init.c
adeon_tcl.c
adeon_tex.c
adeon_texstate.c
c3ca94bc9115f0f328327f1e96fac84b87d5efd5 10-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fix fallback case where t->mt is valid NULL
ommon_misc.c
eaf15db895e3a5c6c5ccc2f23a4f0fa522855868 10-Feb-2009 Michel Dänzer <daenzer@vmware.com> gallium: Fixups for driCreateConfigs MSAA support.

Add the MSAA samples array or make sure its contents are initialized.
adeon_screen.c
b1df5ed6db4d79de895e37bcdd12dfbaae7bd4f6 09-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: put back state emission lastcmd
adeon_state_init.c
ccf7814a315f0be05cdc36ca358e2917a3d4ac19 09-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: major cleanups removing old dead codepaths.

This should be working gears on radeon state
adeon_ioctl.c
adeon_ioctl.h
adeon_state.c
adeon_state_init.c
adeon_tcl.c
adeon_tex.c
adeon_texstate.c
e13593678f62941db06b7ae1a21b81c643371659 09-Feb-2009 Brian Paul <brianp@vmware.com> re-add MSAA support

(cherry picked from commit f7d80aa00611917bc8ce637136d982b151b8f44f)

This also involved adding the new MSAA fields to driCreateConfigs().

Also, re-add prog_instructions->Sampler field for i965 driver. Will
have to revisit that.
adeon_screen.c
9df844b109a9d2cc1d3b16315c34ef84f147c5b6 09-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: fix alignment issues in ELT code
adeon_ioctl.c
3fafaf8959681cc41c988607bb6e387bab4fe1b5 08-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: make more r100 work
ommon_context.h
adeon_context.h
adeon_cs_legacy.c
adeon_ioctl.c
adeon_ioctl.h
adeon_maos_arrays.c
adeon_maos_verts.c
adeon_state_init.c
adeon_swtcl.c
adeon_tcl.c
adeon_tex.c
adeon_texstate.c
da795ff0a837eeb8c8f9d44987b374da2d4d2835 06-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: remove include that breaks build in !OLD_PACKET path

this path isn't enabled by default in any case.
adeon_maos_arrays.c
e223b7c312a1211966f47d36724ffceaec32a3f3 06-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: port over arrays code even though not in use yet
ommon_misc.c
ommon_misc.h
adeon_maos_arrays.c
36d3f3e74a809ad346e981805a2f61710d3a380b 06-Feb-2009 Dave Airlie <airlied@redhat.com> r100: fixup radeon so gears seems to work
akefile
ommon_misc.c
adeon_context.c
adeon_ioctl.c
adeon_state.c
adeon_state_init.c
16f4b10170da7f1cae3561cdd2a0b2e3d86cf8de 06-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: remove unused texmem
adeon_texmem.c
0a43603c1c714b4a87b3a282bdf1295ecda31713 06-Feb-2009 Dave Airlie <airlied@redhat.com> r300: fix some autostate batch setups
ommon_cmdbuf.h
8fe61fc5ba70be29b9d7dbdfab45c5434be587fc 04-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200 remove more unused code
adeon_ioctl.c
b584b0728d3a001a142f76dde22f9e8ed7d2dd16 04-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: make compile again.

Not tested but ripped out lots of stuff unneeded anymore time to test later
adeon_context.c
adeon_context.h
adeon_cs_legacy.c
adeon_ioctl.c
adeon_ioctl.h
adeon_maos_verts.c
adeon_span.c
adeon_swtcl.c
adeon_swtcl.h
adeon_tcl.c
adeon_tex.c
adeon_texstate.c
88a409fa8e85a45eb71f99e5926340a5fe6a8071 04-Feb-2009 Dave Airlie <airlied@redhat.com> r300: fix up CS for modesetting - gears under kms works
ommon_misc.c
c370776b02806c6c98d1354e3d60d06311dcfb80 04-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: make generate_mipmap static
ommon_misc.c
0bcac04100f01bb79edacb29384fb535c37413f1 04-Feb-2009 Dave Airlie <airlied@redhat.com> r300: fix swtcl
ommon_misc.c
e44effcfcba4591a622e47ee1b4807ddf5789d51 04-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: call getpagesize once and store in a static
adeon_bo_legacy.c
711cbf30a1ce72338ca9f1c0f71bd530754a4bd9 04-Feb-2009 Dave Airlie <airlied@redhat.com> r300: make dma buffer reuse much more sensible
ommon_misc.c
55c8a79a339668dd661bb8adb615fbcb8075f51a 04-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: add support for stencil buffers + misc debug changes

this adds the stencil rb setup, along with misc changes to formatting
and debug
ommon_misc.c
c85a3851b6519c24780e94dea570a72418621189 04-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: only do the fb read if we are mapping a VRAM object

this makes writing the DMA buffers got a lot better
adeon_bo_legacy.c
e8f575d657c5a363a4bf090b3b4fd219cce218ae 04-Feb-2009 Dave Airlie <airlied@redhat.com> radeon_cs: move to inline cs_write_dword

this gets back some of the CPU this was wasting
adeon_cs_legacy.c
4c078cfbad82126108081350b9326228aa2da46d 02-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: add a reference to the static buffers so they don't get deleted
adeon_bo_legacy.c
d9cf1319252e053a894dd49583064e4cd063d119 03-Feb-2009 Dave Airlie <airlied@redhat.com> r300: fixup mipmap + texsubimage issues

This fixes a few regression in piglit, and adds some debug to the mipmap code
ommon_misc.c
ommon_misc.h
adeon_mipmap_tree.c
dbf72bdd3dda73384381a9ae8a94b522b7f786c2 03-Feb-2009 Dave Airlie <airlied@redhat.com> radeon_bo: align size of bo to page size.

This is really required for the VRAM allocator upload function.
adeon_bo_legacy.c
75762a8219d7db0f7990eab73f953a6a4f9ee130 01-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: this code forgot to add dPriv x/y back to spans
ommon_misc.c
f68a61d88398fe8eb3eb41b929dcb4483354a81e 30-Jan-2009 Dave Airlie <airlied@redhat.com> r200/r300: swtcl fixups to use old dma buffers on top of BOs
ommon_context.h
ommon_misc.c
adeon_cs_legacy.c
adeon_screen.c
e45213d89bf26c68c9f4c9074eaec9ab3311de7d 30-Jan-2009 Dave Airlie <airlied@redhat.com> r200/r300: add aperture space checks
ommon_misc.c
ommon_misc.h
adeon_bo_legacy.c
adeon_bo_legacy.h
adeon_cs_legacy.c
70661f678edcc9b6dd5005016e3355ec4546e716 29-Jan-2009 Dave Airlie <airlied@redhat.com> WIP comit
ommon_cmdbuf.h
ommon_context.h
ommon_misc.c
adeon_tcl.c
adeon_texstate.c
erver/radeon_reg.h
59b183ce0fc8fd8ab73b9321e609fdb3c29bb078 29-Jan-2009 Dave Airlie <airlied@redhat.com> radeon: remove even more common code
akefile
adeon_context.c
adeon_cs_legacy.c
adeon_ioctl.c
adeon_maos_arrays.c
adeon_tex.c
5ba92a5b0543b4ff2c7db6101029ba36cb9843fa 29-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: bring back old style DMA buffer on top of BOs.

this gets back a lot of the lots speed in gears on r500 at least

I also fixed the legacy bufmgr to deal when the dma space fills up
ommon_context.h
ommon_misc.c
ommon_misc.h
adeon_bo_legacy.c
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_ioctl.h
ab6edc9dce3ee0c63037c155a40d97a868c19341 29-Jan-2009 Dave Airlie <airlied@redhat.com> radeon: add repeated register packet one
ommon_cmdbuf.h
8aa209c766b79144db499063dd1c8482562b07bf 28-Jan-2009 Ian Romanick <idr@freedesktop.org> Make GL_ARB_draw_buffers mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
adeon_context.c
82b9661894315362f857192439bdcbc9db090387 28-Jan-2009 Ian Romanick <idr@freedesktop.org> Make GL_ARB_vertex_buffer_object mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
adeon_context.c
2b77b1d62e6480f19aac1bde6f730b7da1046ce0 28-Jan-2009 Ian Romanick <idr@freedesktop.org> Make GL_ARB_multisample mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
adeon_context.c
33fa5e4bfad8005f09ad3c9fc92c40fa863935d1 28-Jan-2009 Ian Romanick <idr@freedesktop.org> Make GL_ARB_texture_compression mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
adeon_context.c
42c07d1500c0fc948f17f3eb1c3d527aeb428bd0 10-Jan-2009 Ian Romanick <idr@freedesktop.org> r300: Enable GL_ATI_separate_stencil in R300

At this point, GL_EXT_stencil_two_side should probably be disabled.
It may be worth leaving it enabled because it has GLX protocol while
GL_ATI_separate_stencil does not. I'll leave it to one of the r300
maintainers to make the call.
adeon_screen.c
d93dc4338279c03b8fa2b0adec01dedae4fe4895 22-Jan-2009 Dave Airlie <airlied@redhat.com> radeon: plug memory leak running gears
adeon_cs_legacy.c
9780127449c6b32cc16ee1a1589c1e28eae1d7bb 22-Jan-2009 Dave Airlie <airlied@redhat.com> radeon: remove some debugging
ommon_cmdbuf.h
adeon_cs_legacy.c
8b56a86385f3411f0d1ba64423f32bff6c60416d 22-Jan-2009 Dave Airlie <airlied@linux.ie> radeon: better free of array
adeon_cs_legacy.c
860d0cc656ee0eb724b2d82596c09a9eee9a8d19 22-Jan-2009 Dave Airlie <airlied@linux.ie> radeon: free all relocs in array
adeon_cs_legacy.c
02952a41eb0e47ab77a984922c1c3202aeb45b50 22-Jan-2009 Dave Airlie <airlied@linux.ie> radeon: check relocs before deref
adeon_cs_legacy.c
2c8b55b351c84cda4e620a5aba3e67c110890567 22-Jan-2009 Dave Airlie <airlied@linux.ie> radeon: fix relocs even more
adeon_cs_legacy.c
c66e38d24fa8ffa2ac759ce118cb779fbce117d4 22-Jan-2009 Dave Airlie <airlied@linux.ie> radeon: fix reloc free harder
adeon_cs_legacy.c
bb7756eaed7b6c51a2da2ed9905b79172be91881 22-Jan-2009 Dave Airlie <airlied@linux.ie> radeon: free indices caught with valgrind
adeon_cs_legacy.c
a5b54eb3c99aedf92197c834a6645127a231b382 22-Jan-2009 Dave Airlie <airlied@linux.ie> radeon: cleanup bo unref codepath in pending code

assert for bad case hopefully
adeon_bo_legacy.c
11995807f1d83e29e4517c6ae5449cd702f33835 22-Jan-2009 Dave Airlie <airlied@linux.ie> radeon: fix counting for cfree handles in an inline
adeon_bo_legacy.c
014c52eb6bc2fc0edb69d1ef063eb6c9735b3833 22-Jan-2009 Dave Airlie <airlied@redhat.com> radeon: add r100/r200 workarounds for legacy aging
adeon_bo_legacy.c
adeon_cs_legacy.c
eda2284961e46002c7b2bd4e4ae2785d7b0a2191 21-Jan-2009 Dave Airlie <airlied@redhat.com> r200r300: start merging span code
ommon_misc.c
ommon_misc.h
61bb82636f7b1681b5509e1a9038bbcc1feea35c 21-Jan-2009 Dave Airlie <airlied@redhat.com> r200/r300: port r200 texture handling to common code

we now get texrect + trivial textures working
ommon_context.h
ommon_misc.c
ommon_misc.h
2bf31b7ffdee0b84e916d5ee4aa487f2e61a1ff7 21-Jan-2009 Dave Airlie <airlied@redhat.com> r300/radeon: move face_for_target
ommon_misc.c
ommon_misc.h
e0ec3243e87cbdfb5db2657fe791748e145930e8 20-Jan-2009 Dave Airlie <airlied@redhat.com> r300: start migrating common functions into common code
ommon_misc.c
ommon_misc.h
ddbd6ed326275de0c22011a2700f342409beee76 20-Jan-2009 Dave Airlie <airlied@redhat.com> r300: move to common texture_image object
ommon_context.h
33dc14c707734df37fb02b7bcc278ddeb94036f1 20-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: start to move to common miptree/texobj
ommon_context.h
adeon_mipmap_tree.c
adeon_mipmap_tree.h
d9c4a01bad3a7d4a965fc09d8605afc6ca48f6f9 20-Jan-2009 Dave Airlie <airlied@redhat.com> r200: make tri render on my r200.
ommon_lock.c
ommon_misc.c
ommon_misc.h
adeon_cs_legacy.c
04029e5ddb030445edc98305b091b9a35479282a 20-Jan-2009 Dave Airlie <airlied@redhat.com> r200: tri runs without crashing - doesn't draw anything
ommon_misc.c
ed3a1cce73fcd0d6f4b6e9b5f69a98ad179ddc4b 20-Jan-2009 Dave Airlie <airlied@redhat.com> r200: clear is working at least - not much else
ommon_cmdbuf.h
ommon_context.h
ommon_misc.c
ommon_misc.h
adeon_context.c
adeon_screen.c
adeon_span.c
adeon_span.h
adeon_state.c
08d90fe8a5e12d92994c05b2ec9f68ab7232275c 15-Jan-2009 Dave Airlie <airlied@linux.ie> r300: move some more function to generic
ommon_cmdbuf.h
ommon_context.h
1a51b76343255af9be6282f93614e92788ad4f0f 15-Jan-2009 Dave Airlie <airlied@linux.ie> radeon/r200/r300: start to make cmd buf useful
ommon_cmdbuf.h
ommon_context.h
ommon_misc.c
ommon_misc.h
0c0a55a21158e1f97cf140c0a1c0531c06751873 15-Jan-2009 Dave Airlie <airlied@linux.ie> r100/r200: move to new atom style emission
adeon_ioctl.c
adeon_state_init.c
47e3a7d7942d722bc679852fec167cc3a8b5bdd4 14-Jan-2009 Dave Airlie <airlied@redhat.com> radeon: get ctx right in copybuffer
ommon_misc.c
8c6a7d01744fe6164a868c5f691bb119109773c0 14-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: make legacy emit non-r300 specific
akefile
ommon_context.h
adeon_bo_legacy.c
adeon_cs_legacy.c
e7d06a55c5443cfef73f5c2f60052cc26a1e9ff2 14-Jan-2009 Dave Airlie <airlied@redhat.com> radeon: move debug symbol add DRI2
ommon_misc.c
adeon_context.c
adeon_screen.c
61da612a4f8862e0aac4ff4fc87c133cb8a1c4a5 14-Jan-2009 Dave Airlie <airlied@redhat.com> r300: start moving new r300 cmdbuf into common code
ommon_context.h
ommon_lock.c
ommon_lock.h
ommon_misc.c
ommon_misc.h
adeon_cs_legacy.h
adeon_screen.c
23295cf8e84495af86f62395d32b3116261927e8 14-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: consolidate swap buffers
ommon_context.h
ommon_lock.c
ommon_misc.c
ommon_misc.h
adeon_context.c
adeon_context.h
adeon_screen.c
44b916b2c0af0b451b8c45d5872663e61d9110e5 14-Jan-2009 Dave Airlie <airlied@redhat.com> radeon: remove old lock code
adeon_lock.c
7e5e327cea83d9f6d1485f9be440277540ace5c7 14-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: consolidate the buffer copy/flip code into one place
ommon_context.h
ommon_misc.c
ommon_misc.h
adeon_context.c
adeon_ioctl.c
adeon_ioctl.h
d29e96bf33e91d071770b86d87ffc4ef4dfc2f70 13-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: attempt to move lock to common code
akefile
ommon_context.h
ommon_lock.c
ommon_lock.h
ommon_misc.c
ommon_misc.h
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_lock.h
adeon_span.c
adeon_state.c
adeon_state.h
adeon_state_init.c
adeon_texmem.c
4637235183b80963536f2364e4d50fcb894886dd 14-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: initial attempt to convert to common context code
ommon_context.h
adeon_bo_legacy.c
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_ioctl.h
adeon_lock.c
adeon_lock.h
adeon_maos_verts.c
adeon_sanity.c
adeon_sanity.h
adeon_screen.c
adeon_span.c
adeon_state.c
adeon_state.h
adeon_state_init.c
adeon_swtcl.c
adeon_tcl.c
adeon_tex.c
adeon_tex.h
adeon_texmem.c
adeon_texstate.c
0217ed2cf9b0a538ca03d26b302a7cd57af7dd21 13-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200: move more stuff closer together in context
ommon_context.h
adeon_context.h
b6e486906968d82c7b8a869d7ab51697a7cce80c 13-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200: move state atom to common header
ommon_context.h
adeon_context.h
adeon_ioctl.c
adeon_state_init.c
692ca82116485a9c6191e5265c5b369d5b4f82f3 13-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200: start splitting out commonalities into separate headers
ommon_context.h
adeon_context.h
adeon_screen.c
adeon_tex.c
adeon_texmem.c
adeon_texstate.c
efe68930dce815b3ecda7dc1164dcd9a504dc525 11-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r300: add code to setup r300 vs r500 using pci device from kernel
adeon_screen.c
2a287ddd324cf285200aaf2eddc78da4eaaad1a1 22-Dec-2008 Dave Airlie <airlied@redhat.com> r300: disable settexoffset extension on r300
adeon_screen.c
e14ffb1fa176dbaf260a62cc5e4ddbd602ff6327 22-Dec-2008 Dave Airlie <airlied@redhat.com> radeon: remove start/end offset + cleanup some whitespace
adeon_cs_legacy.c
9f2732d3128a1482d4d7feacd98efaf7bdcc4eef 21-Dec-2008 Dave Airlie <airlied@redhat.com> radeno: hopefully make r200/radeon build
adeon_screen.c
72cd2c8c0c863873d280a0e49dfa381e5c3236c8 01-Dec-2008 Dave Airlie <airlied@redhat.com> radeon: make DRI1 one work with new CS mechanism
adeon_screen.c
adeon_screen.h
9770bb32f50659ef749751780e00d8c88e16126c 16-Nov-2008 Jerome Glisse <glisse@freedesktop.org> radeon: cs add print cs callback
adeon_cs_legacy.c
f1d98e51275eaa440e1c6b9c61e5e014faaad45a 16-Nov-2008 Jerome Glisse <glisse@freedesktop.org> radeon: fix pointer dangling
adeon_screen.c
56c458e0f2027bc19b45ed3112e84b6ace67920f 15-Nov-2008 Jerome Glisse <glisse@freedesktop.org> radeon: update to libdrm-radeon API changes
adeon_bo_legacy.c
adeon_bo_legacy.h
adeon_cs_legacy.c
adeon_cs_legacy.h
adeon_screen.c
5b79c18c83288eaaa6af25fdf3fe71b8347b5c1d 14-Nov-2008 Jerome Glisse <glisse@freedesktop.org> radeon: dri2 don't forget to free buffer
adeon_screen.c
c26ec97b1390deb7c2ae586450e621a7095dac87 12-Nov-2008 Jerome Glisse <glisse@freedesktop.org> r300: convert to new relocations format (see libdrm-radeon)
adeon_cs_legacy.c
d07d1379314c9222ccb955244fa7e56bd4d03d6d 12-Nov-2008 Jerome Glisse <glisse@freedesktop.org> r300: SetTex extension support
adeon_buffer.h
adeon_cs_legacy.c
adeon_screen.c
adeon_screen.h
3b43c28195ffce79822728b546a707ee14a03320 09-Nov-2008 Jerome Glisse <glisse@freedesktop.org> r300: cs + DRI2 support

If DRI2 is enabled then switch cmd assembly to directly build
hw packet.
adeon_bo_legacy.c
adeon_buffer.h
adeon_cs_legacy.c
adeon_cs_legacy.h
adeon_screen.c
e5d5dab8c03f72097ec3e5b465fe93b6e369bb2d 05-Nov-2008 Jerome Glisse <glisse@freedesktop.org> r300: bo and cs abstraction.

This abstract memory management and command stream building so we
can use different backend either legacy one which use old pathway
or a new one like with a new memory manager. This works was done by :

Nicolai Haehnle
Dave Airlie
Jerome Glisse
adeon_bo_legacy.c
adeon_bo_legacy.h
adeon_buffer.h
adeon_cs_legacy.c
adeon_cs_legacy.h
adeon_screen.c
adeon_screen.h
adeon_span.h
73e119363216b75243dce170f8afd5c2f9bfce50 16-Oct-2008 Roland Scheidegger <sroland@tungstengraphics.com> fix span issue with really old ddx and non-tcl r100 chips
adeon_screen.c
45efcc44c758a94928648bc20df32b98b3462bcc 21-Sep-2008 Keith Whitwell <keith@tungstengraphics.com> Remove CVS keywords.

Cherry-picked from gallium-0.1

Conflicts:

src/glu/sgi/libnurbs/interface/bezierEval.h
src/glu/sgi/libnurbs/interface/bezierPatch.h
src/glu/sgi/libnurbs/interface/bezierPatchMesh.h
src/glu/sgi/libnurbs/internals/dataTransform.h
src/glu/sgi/libnurbs/internals/displaymode.h
src/glu/sgi/libnurbs/internals/sorter.h
src/glu/sgi/libnurbs/nurbtess/definitions.h
src/glu/sgi/libnurbs/nurbtess/directedLine.h
src/glu/sgi/libnurbs/nurbtess/gridWrap.h
src/glu/sgi/libnurbs/nurbtess/monoChain.h
src/glu/sgi/libnurbs/nurbtess/monoPolyPart.h
src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h
src/glu/sgi/libnurbs/nurbtess/partitionX.h
src/glu/sgi/libnurbs/nurbtess/partitionY.h
src/glu/sgi/libnurbs/nurbtess/polyDBG.h
src/glu/sgi/libnurbs/nurbtess/polyUtil.h
src/glu/sgi/libnurbs/nurbtess/primitiveStream.h
src/glu/sgi/libnurbs/nurbtess/quicksort.h
src/glu/sgi/libnurbs/nurbtess/rectBlock.h
src/glu/sgi/libnurbs/nurbtess/sampleComp.h
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h
src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h
src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h
src/glu/sgi/libnurbs/nurbtess/sampledLine.h
src/glu/sgi/libnurbs/nurbtess/searchTree.h
src/glu/sgi/libnurbs/nurbtess/zlassert.h
src/glu/sgi/libutil/error.c
src/glu/sgi/libutil/glue.c
src/glu/sgi/libutil/gluint.h
src/glu/sgi/libutil/project.c
src/glu/sgi/libutil/registry.c
src/glx/x11/glxclient.h
src/glx/x11/glxext.c
src/mesa/drivers/dri/ffb/ffb_dd.h
src/mesa/drivers/dri/ffb/ffb_points.h
src/mesa/drivers/dri/gamma/gamma_context.h
src/mesa/drivers/dri/gamma/gamma_macros.h
src/mesa/drivers/dri/i810/i810context.h
src/mesa/drivers/dri/r128/r128_dd.h
src/mesa/drivers/dri/tdfx/tdfx_dd.h
adeon_compat.c
adeon_context.c
adeon_ioctl.c
adeon_ioctl.h
adeon_lighting.c
adeon_maos.h
adeon_maos_arrays.c
adeon_maos_verts.c
adeon_sanity.c
adeon_screen.c
adeon_screen.h
adeon_state.c
adeon_state.h
adeon_state_init.c
adeon_swtcl.c
adeon_swtcl.h
adeon_tcl.c
adeon_tcl.h
adeon_tex.c
adeon_tex.h
adeon_texmem.c
adeon_texstate.c
erver/radeon.h
erver/radeon_dri.h
erver/radeon_macros.h
erver/radeon_reg.h
5a46e176715b0eae7b8a715e8aec42f5a27214fc 20-Sep-2008 Keith Whitwell <keith@tungstengraphics.com> mesa: standardize on C99's uint*_t instead of u_int*_t
adeon_ioctl.c
adeon_screen.c
adeon_screen.h
adeon_state.c
erver/radeon_egl.c
ecadb51bbcb972a79f3ed79e65a7986b9396e757 18-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: added "main/" prefix to includes, remove some -I paths from Makefile.template
adeon_compat.c
adeon_context.h
adeon_ioctl.c
adeon_ioctl.h
adeon_lighting.c
adeon_lock.c
adeon_maos_arrays.c
adeon_maos_verts.c
adeon_sanity.c
adeon_screen.c
adeon_span.c
adeon_state.c
adeon_state_init.c
adeon_swtcl.c
adeon_swtcl.h
adeon_tcl.c
adeon_tex.c
adeon_texmem.c
adeon_texstate.c
8e8019b49ab137403ba92aef3e286f4e27049ad5 05-Aug-2008 Xiang, Haihao <haihao.xiang@intel.com> dri: Fix write/read depth buffer issue under 16bpp mode. See bug #16646
adeon_span.c
5e600209f4908ece2ba8b7f880e1d7e950d2cfb4 14-Jul-2008 Chris Rankin <rankincj@yahoo.com> radeon: SetTexOffset support

This patch is a straightforward duplication of the R200 SetTexOffset code,
except that there is no big-endian tx_table[] array.
adeon_context.h
adeon_screen.c
adeon_tex.h
adeon_texmem.c
adeon_texstate.c
4002b75e6267ecd0f9e3093e221e34ed5c8485d4 30-Jun-2008 Nicolai Haehnle <nhaehnle@gmail.com> r300: Cleanup LodBias support

. There is both a per-texture unit and a per-texture object (at least for
OpenGL 1.4); this should now be supported properly.
. The LOD bias calculation in r300_state has been simplified and corrected
(need to multiply by 32 instead of 31, and ensure clamping)
. do not clamp LOD bias in TexEnv, as that behaviour conflicts with what
the spec says
. set Const.MaxTextureLodBias properly
. remove the no_neg_lod_bias property; if somebody can explain what
it's good for, we can add it back in, but according to Google, nobody
seems to use it
. removed some dead code and unused variables
adeon_screen.c
5ee7b7912c1fe7b09d13ae385088e4281b62eba6 21-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> replace __inline and __inline__ with INLINE macro
adeon_context.h
adeon_ioctl.h
dc25661099bcc4b107a30ca504fcc2e76db3492e 21-Jun-2008 Alex Deucher <alex@botch2.com> R300: 1002:5657 is actually RV410

See bug 14289
adeon_chipset.h
adeon_screen.c
7013eecf282d2b1151cdb5cd3ba356295e1e1b79 01-Jun-2008 Dave Airlie <airlied@linux.ie> r300: disable the lowimpact fallbacks by default.

because really we should be able to just fix the driver.
adeon_screen.c
328621509f4690fb945201a90425662e4fd2fc2d 29-May-2008 Dennis Kasprzyk <onestone@opencompositing.org> R1/2/3/4/5xx: fixed calculation of cliprects in CopyBuffer.
adeon_ioctl.c
85af4fde7fd5c7f6a6976fbd9d6529a9082f42b7 28-May-2008 Dave Airlie <airlied@redhat.com> r500: remove warnings and only start on newer drms.

This removes lots of warnings to the user, and only allows the driver
to run on > .29 drms for r500 cards.
adeon_screen.c
867f5aac5361eda657491a98feca33c91eae3218 28-May-2008 Alex Deucher <alex@botch2.com> R3/4/5xx: update to use drm get_param for num gb pipes
adeon_screen.c
adeon_screen.h
026ef8111a94f6449dfa5e5cc0ae91fca4e68c0c 03-May-2008 Dave Airlie <airlied@linux.ie> r300: add R300_NO_TCL to allow testing of non-tcl on tcl cards
adeon_screen.c
9e7ae34da5aeb9a38c3f4280f6d9648faad48df5 02-May-2008 Alex Deucher <alex@botch2.com> R3/4/5: fix TCL on r5xx, cleanup PVS code
adeon_screen.c
e3721a3b3fca5ad7d957ae95252405da0740fbf6 02-May-2008 Alex Deucher <alex@botch2.com> R5xx: various updates

- fixup VAP_CNTL setup
- remove extra instruction in r5xx passthrough shader
- add notes about pipe config
adeon_screen.c
831fc138c1617f5cb49da589ea5126c8eda364a4 01-May-2008 Alex Deucher <alex@botch2.com> R5xx: Add R5xx pci ids
adeon_chipset.h
adeon_screen.c
6443da0865a6ad8bdd7abc65a9621ba329fcb756 20-Mar-2008 Dave Airlie <airlied@redhat.com> r300: add rv530 pci id for the t60p laptop
adeon_chipset.h
adeon_screen.c
5a143e91dcaf64d77694b85671c214f93e3e8512 17-Mar-2008 Dave Airlie <airlied@redhat.com> some basic r500 portage
adeon_chipset.h
acba9c1771d653126fd6f604cb80c050b9e8ffb3 29-Apr-2008 Michel Dänzer <michel@tungstengraphics.com> Change default of driconf "allow_large_textures" to announce hardware limits.

The previous default these days served mostly to cause artifical problems with
GLX compositing managers like compiz (see e.g.
http://bugs.freedesktop.org/show_bug.cgi?id=10501).
adeon_screen.c
e82dd8c6e1fa2fff5b960de26961080ba5e9651d 27-Mar-2008 Kristian Høgsberg <krh@redhat.com> DRI interface changes and DRI2 direct rendering support.

Add DRI2 direct rendering support to libGL and add DRI2 client side
protocol code. Extend the GLX 1.3 create drawable functions in
glx_pbuffer.c to call into the DRI driver when possible.

Introduce __DRIconfig, opaque struct that represents a DRI driver
configuration. Get's rid of the open coded __GLcontextModes in the
DRI driver interface and the context modes create and destroy
functions that the loader was requires to provide. glcore.h is no
longer part of the DRI driver interface. The DRI config is GL binding
agnostic, that is, not specific to GLX, EGL or other bindings.

The core API is now also an extension, and the driver exports a list
of extensions as the symbol __driDriverExtensions, which the loader
must dlsym() for. The list of extension will always include the DRI
core extension, which allows creating and manipulating DRI screens,
drawables and contexts. The DRI legacy extension, when available,
provides alternative entry points for creating the DRI objects that
work with the XF86DRI infrastructure.

Change DRI2 client code to not use drm drawables or contexts. We
never used drm_drawable_t's and the only use for drm_context_t was as
a unique identifier when taking the lock. We now just allocate a
unique lock ID out of the DRILock sarea block. Once we get rid of the
lock entirely, we can drop this hack.

Change the interface between dri_util.c and the drivers, so that the
drivers now export the DriverAPI struct as driDriverAPI instead of the
InitScreen entry point. This lets us avoid dlsym()'ing for the DRI2
init screen function to see if DRI2 is supported by the driver.
adeon_screen.c
65c4ced1ccea7ff88123296b7f0587faa6f23eef 19-Mar-2008 Alex Deucher <alex@cube.(none)> Radeon 9500 (0x4144) only has one pipe

confirmed by Reid Linnemann <lreid@cs.okstate.edu>
adeon_screen.c
48efb769e983bea6baf934eba8865ab3fa61a77a 18-Mar-2008 Dave Airlie <airlied@redhat.com> r300: add new rs690 pci id
adeon_chipset.h
6cb3f5c4d8618a14bb7ad1d9df10ed7e648a7b2b 28-Feb-2008 Kristian Høgsberg <krh@redhat.com> Use __DRIextension mechanism providing loader functionality to the driver.

Instead of passing in a fixed struct, the loader now passes in a list
of __DRIextension structs, to advertise the functionality it can provide
to the driver. Each extension is individually versioned and can be
extended or phased out as the interface develops.
adeon_context.c
adeon_ioctl.c
adeon_screen.c
6e8d21d72f35767e07081a8bee4323aaaf5e2aae 25-Feb-2008 Kristian Høgsberg <krh@redhat.com> Remove GetMSC DriverAPI function.

The DriverAPI is internal to the DRI drivers and GetDrawableMSC
obsoletes GetMSC. Also, since the DRI driver interface has not yet
been released, just drop the getMSC function from the DRI interface
instead using the ABI preserving version mechanism.

Finally, using void pointer privates in the DRI interface is not allowed,
always pass the actual types around (__DRIdrawable in this case) to
enhance type safety and readability of the code.
adeon_screen.c
80efe27560134510dce88a52729e5a3d93e8e275 29-Jan-2008 Alex Deucher <alex@cube.(none)> Add new RV380 pci id

bug 14289
adeon_chipset.h
adeon_screen.c
3bfef648000e544a3505feea5bda7aa9f184f304 26-Jan-2008 Dave Airlie <airlied@linux.ie> r300: add initial rs690 support to Mesa

The rs690 has an rs4xx style vertex-shader less 3D engine. It uses the new
r500 output engine though. It also needs a new drm with rs690 support,
which is just getting cleaned up.
adeon_chipset.h
adeon_screen.c
601a6b872c33bfe3cb4ea03a5a8ba5ebe92dedaf 07-Jan-2008 Brian <brian.paul@tungstengraphics.com> Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexes

Each array element is now a BUFFER_x token rather than a BUFFER_BIT_x bitmask.
The number of active color buffers is specified by _NumColorDrawBuffers.
This builds on the previous DrawBuffer changes and will help with drivers
implementing GL_ARB_draw_buffers.
adeon_state.c
166a828ddfecf7fab110102783faa756081bf28a 25-Dec-2007 Adam Jackson <ajax@redhat.com> __driConfigOptions must be PUBLIC.
adeon_screen.c
0b7e0f81591c0b70452ff9250af9b145e8c15adf 24-Dec-2007 Alex Deucher <alex@botch2.(none)> R300: RV410 SE chips have half the pipes of regular RV410

This fixes 3D rendering on x700 SE chips. Reported
by Kano.
adeon_screen.c
26473140b9c5e6aa962961c836f79fd5aa6cd246 22-Dec-2007 Roland Scheidegger <sroland@tungstengraphics.com> fix GL_LINE_LOOP with drivers using own render pipeline stage (#12410, #13527)

primitive needs to include the begin/end flags (broken since vbo-0.2). Should
fix missing first/last line segment on gamma, i810, i915, mga, r200, radeon,
s3v, savage, unichrome (r300 already correct). Tested on r200, fixes #13527.
adeon_tcl.c
3d51c7900105a99fc30a4318080fd4cc373c8eec 22-Nov-2007 Roland Scheidegger <sroland@tungstengraphics.com> fix z buffer read/write issue with rv100-like chips and old ddx
adeon_screen.c
96ba38a450b77d56730fd293499cbeaa1f511507 15-Nov-2007 Roland Scheidegger <sroland@tungstengraphics.com> fix bogus assumption if ddx has set up surface reg for z buffer

this is wrong since even if ddx has not set up a surface reg to cover the z
buffer we should pretend it has on those rv100 chips since they presumably do
not do z buffer tiling if not using hyperz, so we can use linear addressing
just the same. Doesn't seem to fix #13080, but it's wrong anyway and the bug
almost certainly broke newer non-tcl chips.
adeon_screen.c
badc061a65b8e8b3d92eb4a45bd9eb4191eaaf62 06-Nov-2007 Michel Dänzer <michel@tungstengraphics.com> r200: Re-expose SetTexOffset functionality.

This seems to have been mismerged with the DRI interface changes.
adeon_screen.c
3177b4e2cf7d2fff7428cb6057bebbe60ff5cc6c 30-Oct-2007 Michel Dänzer <michel@tungstengraphics.com> More vblank cleanups.

* Fix crash at context creation in most drivers supporting vblank.
* Don't pass vblank sequence or flags to functions that get passed the drawable
private already.
* Attempt to initialize vblank related drawable private fields just once
per drawable. May need more work in some drivers.
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_ioctl.h
38fdb47d26055e19d50cd407266b56ed4317ae0a 29-Oct-2007 Jesse Barnes <jesse.barnes@intel.com> Refactor and fix core vblank support

Consolidate support for synchronizing to and retrieving vblank counters. Also
fix the core vblank code to return monotonic MSC counters, which are required
by some GLX extensions. Adding support for multiple pipes to a low level
driver is fairly easy, the Intel 965 driver provides simple example code (see
intel_buffers.c:intelWindowMoved()).

The new code bumps the media stream counter extension version to 2 and adds a
new getDrawableMSC callback. This callback takes a drawablePrivate pointer,
which is used to calculate the MSC value seen by clients based on the actual
vblank counter(s) returned from the kernel. The new drawable private fields
are as follows:
- vblSeq - used for tracking vblank counts for buffer swapping
- vblFlags - flags (e.g. current pipe), updated by low level driver
- msc_base - MSC counter from the last time the current pipe changed
- vblank_base - kernel DRM vblank counter from the last time the pipe changed

Using the above variables, the core vblank code (in vblank.c) can calculate a
monotonic MSC value. The low level DRI drivers are responsible for updating
the current pipe (by setting VBLANK_FLAG_SECONDARY for example in vblFlags)
along with msc_base and vblank_base whenever the pipe associated with a given
drawable changes (again, see intelWindowMoved for an example of this).

Drivers should fill in the GetDrawableMSC DriverAPIRec field to point to
driDrawableGetMSC32 and add code for pipe switching as outlined above to fully
support the new scheme.
adeon_context.c
adeon_screen.c
ccff0cb26378ce370fc8697a2a2ada138d2e119e 08-Jun-2007 Kristian Høgsberg <krh@redhat.com> Add a version field to __DRIextension.
adeon_screen.c
f29f0ae8383888a6493b615edc3bab254cf6df39 22-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move new texOffset extension to the new extension mechanism.
adeon_screen.c
adeon_screen.h
f968f67e6214416f04b8875ce59a94a02f464c81 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Add a DRI_ReadDrawable marker extension to signal read drawable capability.
adeon_screen.c
adeon_screen.h
106a6f29bbdc71982afd629bdf89369cefd1459e 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move media stream counter entry points to new extension.
adeon_screen.c
adeon_screen.h
a7a0a2beb54dcb78d7e0ab64cf2f5a6ede8191a4 16-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move GLX_MESA_swap_frame_usage DRI entry points to the new mechanism.
adeon_screen.c
adeon_screen.h
78a6aa57a0155d72280dd91c05513c847bf76f3b 16-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move GLX_MESA_allocate_memory related functions to new extension mechanism.
adeon_screen.c
adeon_screen.h
efaf90b03e8b69e04909bce071f8ef6b65cc0e9d 15-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move swap_interval to new extension mechanism.
adeon_screen.c
adeon_screen.h
ac3e838fa748c8c8a6ffc04d1ab13da71f75f103 15-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move the copySubBuffer extension over to the new mechanism.
adeon_screen.c
64106d0d9aeefa6974317042b6bc3e5eaabac5a2 14-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Pull createNewScreen entry point into dri_util.c.

This pulls the top level createNewScreen entry point out of the drivers
and rewrites __driUtilCreateNewScreen in dri_util.c to be the new entry point.

The change moves more logic into the common/ layer and changes the
createNewScreen entry point to only be defined in one place.
adeon_screen.c
efd03a278ae55b454509e9659c42899133983ebd 14-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Replace open-coded major, minor, and patch version fields with __DRIversionRec.
adeon_context.c
adeon_screen.c
aac367f48afc62176faf67aa6f329fbeae2004b4 11-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Remove screenConfigs from __DRIscreen.

The screenConfigs field of __DRIscreen points back to the containing
__GLXscreenConfigs struct. This is a serious abstraction violation; it
assumes that the loader is libGL and that there *is* a __GLXscreenConfigs
type in the loader.

Using the containerOf macro, we can get from the __DRIscreen pointer to
the containing __GLXscreenConfigs struct, at a place in the stack
where the above is a valid assumption. Besides, the __DRI* structs shouldn't
hold state other than the private pointer.
adeon_screen.c
aceccda56b08338e217991e54607f1c9f18fc3e6 10-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Drop __DRInativeDisplay and pass in __DRIscreen pointers instead.

Many DRI entry points took a __DRInativeDisplay pointer and a screen
index as arguments. The only use for the native display pointer was to
pass it back to the loader when looking up the __DRIscreen for the given
screen index.

Instead, let's just pass in the __DRIscreen pointer directly, which
let's drop the __DRInativeDisplay type and the getScreen function.

The assumption is now that the loader will be able to retrieve context
from the __DRIscreen pointer when necessary.
adeon_screen.c
4f96000e294fa0d6ba6f5915ff508017d9c26d50 29-Sep-2007 Chris Rankin <rankincj@yahoo.com> r200: Implement SetTexOffset hook.

Implementation guidance by Michel Dänzer, final testing by Timo Aaltonen.
adeon_screen.c
acfeb3b6ea93bcb5b18e6f51a0727e39da608d76 11-Sep-2007 Brian <brian.paul@tungstengraphics.com> Fix-up #includes to remove some -I options.

eg: #include "shader/program.h" and remove -I$(TOP)/src/mesa/program
adeon_context.c
59a08923f51d4ed83effbfcd91473c9ee86465f1 22-May-2007 Michel Dänzer <michel@tungstengraphics.com> r300: Implement SetTexOffset hook.
adeon_screen.c
b78aec576735c663342da8367dccd3de71e70c34 12-May-2007 Roland Scheidegger <sroland@tungstengraphics.com> bring over recent radeonMakeCurrent fixes for r300 to radeon/r200
adeon_context.c
b8b0dd1e2056742401fe610d205f6272b313dc63 12-May-2007 Oliver McFadden <z3ro.geek@gmail.com> Revert "r300: Merged radeon_span.c."

This reverts commit 0aa998b2ab6fdfe139b54de9868e2383440685d0.
adeon_span.c
f405fbb36de167eb3294358d97e6f62a420f3bff 12-May-2007 Oliver McFadden <z3ro.geek@gmail.com> r300: Corrected some macro errors from the previous commit.
adeon_lock.h
5a09ea01e06a648b37eb167914fb1549e066326d 12-May-2007 Oliver McFadden <z3ro.geek@gmail.com> r300: Reduced the diff on radeon_lock.[ch].
adeon_lock.h
98d25a5a28b1d6e4ed299904aec4104f7d6c80b0 12-May-2007 Oliver McFadden <z3ro.geek@gmail.com> r300: Initial work on merging radeon_lock.[ch].
adeon_lock.c
adeon_lock.h
0aa998b2ab6fdfe139b54de9868e2383440685d0 11-May-2007 Oliver McFadden <z3ro.geek@gmail.com> r300: Merged radeon_span.c.
adeon_span.c
4d5d4e1f97bf8d5c55ef817f7a28f920accc151b 09-May-2007 Oliver McFadden <z3ro.geek@gmail.com> r300: Cleaned up radeon_context.h slightly; mostly Indent.
adeon_context.h
a15470606125478ae314e7dc00821e46292ac810 09-May-2007 Oliver McFadden <z3ro.geek@gmail.com> r300: Indented radeon_span.h
adeon_span.h
6fe41a4c01f4ec9f280f52901554a58aa8b30627 09-May-2007 Oliver McFadden <z3ro.geek@gmail.com> r300: Further reduced the radeon_span.c diff.
adeon_span.c
2db667290a19d15122d8d0c011f4b813bb542bc5 09-May-2007 Oliver McFadden <z3ro.geek@gmail.com> r300: Further reduced the diff between radeon_span.[ch].
adeon_span.c
cea0c2b14426bf315ae606656274dae5eedd1b6a 09-May-2007 Oliver McFadden <z3ro.geek@gmail.com> r300: Indented both copies of radeon_span.[ch] in preparation for merging.
adeon_span.c
adeon_span.h
8130a4fe982a7583e439a1fac61c5050f85bdf46 06-May-2007 Dave Airlie <airlied@nx6125b.(none)> radeon: enable xpress chipsets

glxgears and googleearth now run so that seems like a good start

Thanks to Aapo Tahkola for doing the 3D work on this so far, I got lost
after the GART changes.
adeon_screen.c
6461e91ac3ce6160107d5df7468572c6e943f442 09-Apr-2007 Dave Airlie <airlied@linux.ie> the RS400 definitely doesn't work at this point so don't let it init
adeon_screen.c
32225d06b9ade78df612b3fd8c3aff93afa3b7ff 27-Mar-2007 Roland Scheidegger <sroland@tungstengraphics.com> r128, radeon, r200: Check ctx->WinSysDrawBuffer before calling function that dereferences it.

Same fix as for r300 (which fixed https://bugs.freedesktop.org/show_bug.cgi?id=10417),
since it's likely an issue with those drivers too.
adeon_lock.c
37e6f760fde506728077c6e8b48bb8c34d53dfd3 13-Mar-2007 Roland Scheidegger <sroland@tungstengraphics.com> enable ARB_vertex_buffer_object for more dri drivers

ARB_vertex_buffer_object looks like a useful extension even for old chips.
The drivers should not need any code to be able to use this extension since
they just use mesa's vbo code anyway.
Newly enabled for i810, mach64, mga, r128, radeon, savage, sis and unichrome.
adeon_context.c
88501887e48d1619e4296afa609dfe9904b81a70 12-Mar-2007 Alan Swanson <swanson@ukfsn.org> radeon: Adapt cliprect fixes from r300.
adeon_context.c
adeon_lock.c
adeon_state.c
a510bc3ee1a696da120c09ee4ec33dc033f671ac 06-Mar-2007 Brian <brian@yutani.localnet.net> Fix/improve framebuffer object reference counting.

Use _mesa_reference_framebuffer() and _mesa_unreference_framebuffer() functions
to be sure reference counting is done correctly. Additional assertions are
done too. Note _mesa_dereference_framebuffer() renamed to "unreference" as
that's more accurate.
adeon_screen.c
ee5417bca883d82d618e1c0b65011940253555dd 12-Feb-2007 Rune Peterson <rune@megahurts.dk> r300: Add proper support for sin/cos instruction in fragment program

Getting proper SIN and COS wasn't as easy as it appeared.
I had to make make some changes to the fragment program code.
general FP changes:
- support HHH swizzle for vector instructions.
- don't copy a source to a temp when it is not XYZW swizzled, but
combine the two and have the swizzle resolve any issues.
(saves temps/instructions with more elaborate shader code)
- fix overflow in cnstv[].
adeon_screen.c
f697308ae583dbcdf0268e98232c32be7f25fac6 03-Feb-2007 Roland Scheidegger <sroland@tungstengraphics.com> remove now unused vtxfmt stuff from radeon/r200 header files
adeon_context.h
b59657ad965f9471574e914b861bb1d2a17d772e 02-Feb-2007 Keith Whitwell <keith@tungstengraphics.com> Merge branch 'vbo-0.2'

Conflicts:

src/mesa/main/texcompress_s3tc.c
src/mesa/tnl/t_array_api.c
a2104dc6e18879ed3ba2108a09b6779e461eaa17 01-Feb-2007 Roland Scheidegger <sroland@tungstengraphics.com> fix unitialized values in radeonClear
adeon_ioctl.c
62efc4ba3eb53ca75abbe9b52feabe49a5fd56b5 18-Jan-2007 Aapo Tahkola <aet@rasterburn.org> support as much of GL_EXT_stencil_two_side as we can. untested.
adeon_screen.c
6a3fdc3a1ea6c306d9543791bf172dd1052d7382 16-Jan-2007 Keith Whitwell <keith@tungstengraphics.com> Merge branch 'master' of git+ssh://keithw@git.freedesktop.org/git/mesa/mesa into vbo-0.2

Conflicts:

src/mesa/array_cache/sources
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_fallback.c
src/mesa/drivers/dri/i965/brw_vs_emit.c
src/mesa/drivers/dri/i965/brw_vs_tnl.c
src/mesa/drivers/dri/mach64/mach64_context.c
src/mesa/main/extensions.c
src/mesa/main/getstring.c
src/mesa/tnl/sources
src/mesa/tnl/t_save_api.c
src/mesa/tnl/t_save_playback.c
src/mesa/tnl/t_vtx_api.c
src/mesa/tnl/t_vtx_exec.c
src/mesa/vbo/vbo_attrib.h
src/mesa/vbo/vbo_exec_api.c
src/mesa/vbo/vbo_save_api.c
src/mesa/vbo/vbo_save_draw.c
3ce4adaa8fc0cb067dd9da3f358556490954f776 09-Nov-2006 Ian Romanick <idr@us.ibm.com> Remove unnecessary setting of GetBufferSize to NULL.
adeon_context.c
ce55bbe9ef8077a0d5b93cf0d128306c888263d4 03-Nov-2006 Brian Paul <brian.paul@tungstengraphics.com> s/GLuint/int/ to silence warnings
adeon_texstate.c
6d104cb932080c5c0d951fbc0ec6d30fb7ebef45 02-Nov-2006 Alan Hourihane <alanh@tungstengraphics.com> merge current trunk into vbo branch
adeon_ioctl.c
adeon_state.c
a5676795cfe2e24979b5da65c2f499049ab009d9 01-Nov-2006 Brian Paul <brian.paul@tungstengraphics.com> Remove x/y/width/height parameters from Clear functions.
adeon_ioctl.c
361d137587d1b7a6a18ddc33c7862ff5e6ddd648 01-Nov-2006 Jerome Glisse <glisse@freedesktop.org> Correct a little bug, radeon->glCtx is a pointer.
adeon_state.c
80c88304fc9d09531b2530b74973821e47b46753 31-Oct-2006 Keith Whitwell <keith@tungstengraphics.com> remove vtxfmt code, switch over to vbo
akefile
adeon_context.c
adeon_maos_verts.c
adeon_state.c
adeon_state_init.c
adeon_swtcl.c
adeon_swtcl.h
adeon_tcl.c
adeon_vtxfmt.c
adeon_vtxfmt.h
adeon_vtxfmt_c.c
adeon_vtxfmt_sse.c
adeon_vtxfmt_x86.c
adeon_vtxtmp_x86.S
3beaff1e3cf227c493badfc55a69381c778b2ff7 18-Oct-2006 Ian Romanick <idr@us.ibm.com> Enable GLX_SGI_make_current_read for radeon.

Added code to track the drawable bound to the context for reading. In
addition, when a drawable is initially bound (for reading or drawing)
or when the size of the drawable changes, update the size of the
framebuffer object that back the drawable (for software fallbacks).

Deprecate the old GetBufferSize interface.

Bump the driver date.

These changes were tested with wincopy on both direct rendering and
accelerated indirect rendering (AIGLX).
adeon_context.c
adeon_context.h
adeon_lock.c
adeon_screen.c
adeon_state.c
446972bc2756cf9770a82f51aa0dc4f529c6cae5 18-Oct-2006 Brian Paul <brian.paul@tungstengraphics.com> Want to stop passing x/y/width/height to Clear() function.
The coordinates need to be computed after we've got the hw lock.
Code updated to:
1. Ignore all/x/y/width/height/ params passed to Clear func.
2. Pass 0,0,0,0,0 to _swrast_Clear() until they're totally removed.
adeon_ioctl.c
97f47f771a405377b94b4b139450a7bd2db0c827 15-Oct-2006 Roland Scheidegger <rscheidegger@gmx.ch> fix handling of textures with a base internal format that does not have all four rgba values set for radeon and r200 (discovered with a modified glean pixelFormats test, noone ever noticed in over 2 years). For radeon, use hw format I8 as previously, and change tex env to make the correct default values appear for both GL_ALPHA and GL_LUMINANCE textures. For r200, which supports GL_LUMINANCE just fine, use the AL88 hw format for GL_ALPHA textures, since it seems like it's probably not worth the effort to fix up the texture environment (certainly complicated in case of ATI_fragment_shader programs).
adeon_texstate.c
2b6d2e4dcbdc253e8148888d1a7e60d8466ba4e8 15-Oct-2006 Brian Paul <brian.paul@tungstengraphics.com> Remove Driver.ResizeBuffers = _mesa_resize_framebuffer lines.
This is already done by the preceeding call to _mesa_init_driver_functions()
which plugs in default functions like that.
adeon_context.c
cb977ae5f4c9fab5753c04bfdd8736978ad4feee 14-Oct-2006 Roland Scheidegger <rscheidegger@gmx.ch> implement ARB_point_parameters and ARB_point_sprite on r200. The code is nearly the same as outlined in bug #4707, except it disables perspective correction for point sprites to make them actually work. And, separate the state atom into two as the tcl parameters would overwrite vertex program parameters when active. Also implement the GL_VERTEX_PROGRAM_POINT_SIZE_ARB option to make vertex programs outputting a point size work correctly (untested). Smooth points will still always be size 1. While here, enable gouraud shading for fog when using fog coord.
adeon_screen.c
24bb3b399847bdb11f0008820c2c1bad1e21d499 28-Sep-2006 Michel Dänzer <michel@daenzer.net> Make driDrawableInitVBlank() initialize the sequence number.

This prevents the first wait for vertical blank from timing out when the X
server has been running for a long time.
adeon_context.c
6babf624b72a34b7be78bbc896bd241db98deb2e 14-Sep-2006 Roland Scheidegger <rscheidegger@gmx.ch> always use argb8888 instead of rgba8888, this is far more likely to hit a faster memcopy path in mesa (at least on little endian systems, possibly on big endian too)
adeon_tex.c
99e0236046436fba25afb60632a76ad9cdfbbc9a 14-Sep-2006 Roland Scheidegger <rscheidegger@gmx.ch> Always mark tex state atom as dirty when the texture image is dirty, this ensures texture cache gets flushed in case the new texture has the same offset as the old one (fixes glean pixelFormat test at least on r200).
adeon_texstate.c
888b1a9166abfb1b2873cf7c1eb2daf45a26c84f 14-Sep-2006 Roland Scheidegger <rscheidegger@gmx.ch> don't use derived value _ColorLogicOpEnabled as it's not current by the time we call the blend/logic op functions. Fixes glean logicOp test on r200.
adeon_state.c
25847f2b5b50d9bbd58729e28e4a3032972e6c0c 10-Sep-2006 Roland Scheidegger <rscheidegger@gmx.ch> remove code to deal with non-normalized texture coordinates for tex rect targets (swtcl tex coord translation stage, tcl tex matrix adaption) and use the chip's native handling of such coords instead (!!!). Seems noone noticed those bits in the se_coord_fmt reg, even though it works fairly similar to r200 (except it's set per-unit and always active, so only enable it for texture rectangles).
adeon_context.c
adeon_state.c
adeon_swtcl.c
adeon_tcl.c
adeon_texstate.c
799896244439c586b9610c7eedfef715f652d51b 10-Sep-2006 Roland Scheidegger <rscheidegger@gmx.ch> cause a raster fallback if a yuv texture is used on texture unit > 0 as yuv conversion appears only to work on first unit.
adeon_texstate.c
a5e73e68878ebed7347532285019befc8c7b1106 08-Sep-2006 Roland Scheidegger <rscheidegger@gmx.ch> cause a vtxfmt fallback directly when hitting NewList for radeon and r200 drivers, otherwise we'll mix up tcl and vtxfmt path for some reason. This fixes a warzone2100 asssertion failure.
adeon_vtxfmt.c
3cbfef3917451485aab723b81200156a1077a91c 31-Aug-2006 Rune Petersen <rune@megahurts.dk> Give the user posibility to choose speed over correctness.

It does 2 things:
1) Allows you to disable S3TC, wine-games sometimes need S3TC enabled.
2) Disable fallbacks that usually have low impact.
adeon_screen.c
9cb82f7917b11288169146035700b992b86a7ec2 27-Aug-2006 Aapo Tahkola <aet@rasterburn.org> close #6318
adeon_screen.c
bd4c8ec0ec1edcc96fe841ccc7159b7856ade5c1 19-Aug-2006 Roland Scheidegger <rscheidegger@gmx.ch> remove the now confusing option to manually enable software ARB_vp if drm is not new enough on r200
adeon_screen.c
b302419abe96cdb81878913c164d7ae2209ddcda 02-Jun-2006 Roland Scheidegger <rscheidegger@gmx.ch> remove code dealing with drmMinor version < 6 since all radeon drivers request at least drmMinor 6 anyway.
adeon_ioctl.c
adeon_ioctl.h
5377ac80dcabc717a93b270fbd84260b2dfe9d7a 02-Jun-2006 Roland Scheidegger <rscheidegger@gmx.ch> retry on EBUSY instead of EAGAIN in radeonWaitIrq (it appears this was the intention as drm seems to never return EAGAIN) in all radeon drivers.
adeon_ioctl.c
8a6182105772280e2727de4a00809c8fb7b13c87 27-May-2006 Roland Scheidegger <rscheidegger@gmx.ch> preparation for r200 hw vertex programs. Increase R200_CMD_BUF_SZ to 16k instead of 8k (the reasons why it was exactly 8k are unclear). Add register defines, sanity code, fix potential issue with wrong statechange order when disabling fragment programs.
adeon_sanity.c
adeon_screen.c
adeon_screen.h
erver/radeon_reg.h
787fd58186cbaffde7bf930f94a1a1bfa90a23b8 18-May-2006 Aapo Tahkola <aet@rasterburn.org> Dont allow 16 tex units to be used at all.
adeon_screen.c
f1dbacc6adcd7efde02d9a8f7ab0b4a5cac1869b 12-May-2006 Dave Airlie <airliedfreedesktop.org> the r300 should only use 8 until Mesa can deal with this
adeon_screen.c
71b2504e0390fa19f133647c8686d830f8f40eb6 08-May-2006 Keith Whitwell <keith@tungstengraphics.com> updates to dri drivers for recent stencil changes
adeon_state.c
3538f81513389b75cbd9e9b04a3723ce9c15b497 20-Apr-2006 Brian Paul <brian.paul@tungstengraphics.com> Make most of the _mesa_noop_*() functions static.
Generate GL_INVALID_VALUE, not GL_INVALID_ENUM when glVertexAttrib is called
with a bad index.
Use _mesa_noop_vtxfmt_init() in DRI drivers to initialize vertex format
struct.
adeon_vtxfmt.c
fcdc6a7d2488defd66bc7e8398c6d8c9a6190a1a 17-Apr-2006 Kristian Høgsberg <krh@redhat.com> Add .note.GNU-stack section to assembler files to avoid the default behavior
of requesting executable stacks.
adeon_vtxtmp_x86.S
bb38cadb1c5f2dc13096a091bdaf61dc3e3cfa4d 11-Apr-2006 Michal Krol <mjkrol@gmail.org> More GLSL code:
- use macros to access and modify render inputs bit-field;
- un-alias generic vertex attributes for ARB vertex calls;
- use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS
(ARB code) in place of VERT_ATTRIB_MAX;
- define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex
attributes for ARB_vertex_shader;
- fix generic attribute index range check in arbprogparse.c;
- interface GLSL varyings between vertex and fragment shader;
- use 64-bit optimised bitset (bitset.h) for render inputs;
adeon_context.h
adeon_swtcl.c
8c3d15ce28f90e41002eaddc8ac9304c8b3dbab9 09-Apr-2006 Eric Anholt <anholt@FreeBSD.org> Destroy the GL context after driDestroyTextureHeap, because the driver's
DestroyTexObj has a dependence on the glCtx and may segfault otherwise.
adeon_context.c
f4d5b1da7bd9084eda4745b1d4cb1916ce05e257 06-Apr-2006 Brian Paul <brian.paul@tungstengraphics.com> Set DRIVER_DEFINES instead of DEFINES to fix duplicate flags problem
akefile
f8ca99d697e428936cea0c7c7fc03352cf909cc6 04-Apr-2006 Dave Airlie <airliedfreedesktop.org> use gart base from drm not try to work it out ourselves.. bump radeon client
to need 1.6 drm where this first appeared.. this fixes r300 on PCIE
adeon_screen.c
6a9f0a27c3853738e4bbfb33e8b20464a7d92923 04-Apr-2006 Dave Airlie <airliedfreedesktop.org> switch to card_type rather than IsPCI, doesn't change any functionality yet
adeon_context.c
adeon_screen.c
adeon_screen.h
a824813d22abf6f93dcabd7bc20fb4b1aa2cc669 03-Apr-2006 Dave Airlie <airliedfreedesktop.org> use Width
erver/radeon_dri.c
f2ad1b60c0da11283b399008f491792790cea294 31-Mar-2006 Brian Paul <brian.paul@tungstengraphics.com> Dave Reveman's patch for GLX_MESA_copy_sub_buffer support
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_ioctl.h
adeon_screen.c
6652dc8aac79265190efa0a90ebadab8831c6cca 31-Mar-2006 Aapo Tahkola <aet@rasterburn.org> free rs300 and ban r350(according to r300.sf.net)
adeon_screen.c
fb0175db931e1b1457b9b7ea2faa44f07d549266 31-Mar-2006 Aapo Tahkola <aet@rasterburn.org> disable r300 chips. R300_FORCE_R300 to force
adeon_screen.c
08e62a147618ac796f5e548bdaa3380342ec2a78 28-Mar-2006 Roland Scheidegger <rscheidegger@gmx.ch> fix missing *_STATECHANGE in *UpdateViewportOffset for radeon, r200 and r300 (reported by Jim Duchek). Fix some potential problems with strict-aliasing with r200 and radeon drivers in *UpdateViewportOffset, *PolygonOffset and *UpdateWindow functions (some compiler warnings about strict-aliasing remain in the codegen vertex code, and there may be more problems unnoticed by the compiler).
adeon_context.h
adeon_sanity.c
adeon_state.c
f76ff7e4a7b728258606950f182a0a9a8cce791b 28-Mar-2006 Roland Scheidegger <rscheidegger@gmx.ch> make allow_large_textures 1 by default for radeon and r200, and consequently enable all texture units by default on those cards (3 for radeon, 6 for r200). Fix the usually forgotten DRIVER_DATE accordingly.
adeon_context.c
adeon_screen.c
f1b431b265abc445e962701c65916d721a0e0ddf 08-Mar-2006 Dave Airlie <airliedfreedesktop.org> coverity check bug fix going over end of array
adeon_sanity.c
9fc897af7a50ec8dd9349826f97704da6d3e2411 08-Mar-2006 Dave Airlie <airliedfreedesktop.org> coverity checker bug: Pointer dereferenced after NULL check
adeon_texmem.c
dba9c0bafd889d30f044d1e2e870b07ed60efd0a 07-Mar-2006 Aapo Tahkola <aet@rasterburn.org> Enable HW VBOs and other things needed by it.
adeon_screen.c
6754e17138994dc3c67299177a0906535cb4ddcd 01-Mar-2006 Aapo Tahkola <aet@rasterburn.org> No need to call *_FIREVERTICES twice.
adeon_state.c
4e7766992607db215430ee388751f32692401c0a 25-Feb-2006 Roland Scheidegger <rscheidegger@gmx.ch> Add all pci ids known by ddx to radeon dri driver. Remove the entries not known by ddx (probably secondary ids, non-existant cards and similar). Add rs400 to the family enum, and configure the rv410 like a 2 quad chip (?)
adeon_chipset.h
adeon_screen.c
555b5fac4f47576f04d8e4159dc22f72a2b0a397 16-Feb-2006 Roland Scheidegger <rscheidegger@gmx.ch> Reinstate vertex format after a rasterization fallback for both r200 and radeon driver when a tcl fallback is active, fixes a blender issue with non-tcl hw (bug #5601)
adeon_swtcl.c
e7276b7fa597f7914f7e10a2e50dae36ae50e10b 03-Feb-2006 Roland Scheidegger <rscheidegger@gmx.ch> replace the texture level hack used in radeon/r200 to allow larger textures with different methods to calculate the announced maximum texture sizes. Default is still the same (that is, radeon/r200 default to not announce anything which might not fit, i830/i915 default to 1 texture must fit). Bug #5785.
adeon_context.c
adeon_screen.c
a45f23bed141fc23300b8cd6960ba95e883a57bf 31-Jan-2006 Roland Scheidegger <rscheidegger@gmx.ch> fix broken assertion to make radeon driver compile with -DDEBUG...
adeon_texstate.c
ef073b7a756e37be59308a2e598cfa9e0ba3a700 20-Jan-2006 Aapo Tahkola <aet@rasterburn.org> Try to tackle bug #5148
adeon_screen.c
8bc4dae67e083c6415c07e6ff77e700f7395dc9e 07-Jan-2006 Roland Scheidegger <rscheidegger@gmx.ch> cube maps on r100 require newer drm than the same feature on r200 (regression from introducing unfied initialization). Fix wrong (so far unused) family assignment for r100 cards.
adeon_context.c
adeon_screen.c
adeon_screen.h
adeon_state_init.c
8c137e2f94a5710e59676598fb2c3f00565834e1 30-Dec-2005 Dave Airlie <airliedfreedesktop.org> fill out framebuffer egl stuff enable egl on R300
erver/radeon_egl.c
456a513daa2165b1cc04ef06939384f964d13628 29-Dec-2005 Dave Airlie <airliedfreedesktop.org> add support for PCIE card to EGL, doesn't fully work yet but these changes
need to get off my hard disk
erver/radeon.h
erver/radeon_egl.c
369ae3e2c46a2f8b2f6cc060b2012a2d801c916e 29-Dec-2005 Dave Airlie <airliedfreedesktop.org> rv370 not rv350
erver/radeon.h
77a7c2ad92e57549c71329218a96b3777211dfdf 29-Dec-2005 Dave Airlie <airliedfreedesktop.org> typo
erver/radeon_egl.c
4dac78463ef0e265818eafbc4b3859b7f3e08961 29-Dec-2005 Dave Airlie <airliedfreedesktop.org> add some card type ioctl support
erver/radeon_egl.c
49b93550204efd2a3898138289507aec3bb91bc5 29-Dec-2005 Dave Airlie <airliedfreedesktop.org> add some r300 information
erver/radeon.h
ad960612cea4a42db915252d0fd4a6cc04de26bd 23-Dec-2005 Dave Airlie <airliedfreedesktop.org> fixup driver for some api changes
erver/radeon_egl.c
923257fe07ff41132a22ebba0405646ee657b59f 05-Dec-2005 Dave Airlie <airliedfreedesktop.org> update r300 drm minimum to 20
adeon_screen.c
eb06704a7c0027136d5ced74d67a83ddaf1f82aa 03-Dec-2005 Brian Paul <brian.paul@tungstengraphics.com> Added PCI_CHIP_RV410_5E4B (Adam Kirchhoff)
adeon_chipset.h
adeon_screen.c
9790e641ef24859833c01a1fa7004a1c2b73ddd1 29-Nov-2005 Michel Dänzer <michel@daenzer.net> If the DDX driver didn't reserve any video RAM for textures, fall back to
using only GART memory for textures instead of segfaulting in the texture
management code. (Bug 5115)
adeon_screen.c
4f12aa5a6a00a4c3f1e65f8661c657691cfae0e4 28-Nov-2005 Brian Paul <brian.paul@tungstengraphics.com> check for driver_modes == NULL. Don't need driver_modes for EGL driver
adeon_screen.c
a913d9f2f7991b4ae4ac7cc1264efbc11c16237b 28-Nov-2005 Brian Paul <brian.paul@tungstengraphics.com> rearrange some code to put in more logical order, misc clean-ups
erver/radeon_egl.c
2a76d952b8f08570dd628ebf3fff0841d3cb60be 24-Nov-2005 Brian Paul <brian.paul@tungstengraphics.com> use new _egl_api struct
erver/radeon_egl.c
a3d2c69e6173432c1dc608a253c89deb6d2e116d 23-Nov-2005 Brian Paul <brian.paul@tungstengraphics.com> fixed wrong return value in radeonShowSurfaceMESA()
erver/radeon_egl.c
3a5626cb846ad767fe1c38fe35ebe4df3e3a0454 02-Nov-2005 Eric Anholt <anholt@FreeBSD.org> First step of Radeon DRI unification:
- Makes all three drivers use the same screen structure and setup code, with a
few ifdefs for the separate compilation to deal with symbols not being
available to all drivers and the fact that we have no mechanism for dealing
with different config options for different chip families in the same driver.
These issues should be dealt with later.
- Introduces IS_R[123]00_CLASS(radeonScreenPtr) macro for code for taking
different paths depending on the general class of chipset.
- Adds many new R300-class PCI IDs, though not all those listed in
radeon_driver.c.
akefile
adeon_chipset.h
adeon_context.c
adeon_ioctl.c
adeon_screen.c
adeon_screen.h
adeon_state.c
adeon_state_init.c
ffec105109f5b16bfe8282bd477d4aa32b550015 31-Oct-2005 Brian Paul <brian.paul@tungstengraphics.com> fix problems found with gcc 2.96 (bug 4934)
adeon_swtcl.c
aba878d8c2d0d75b0762f7d8ae191fa438fc7d6a 29-Oct-2005 Eric Anholt <anholt@FreeBSD.org> Bug #4901: Correct secondary color emission when lighting is turned off, tested
with seccolor on rv200 and r200.

Submitted by: sroland
adeon_tcl.c
512c994b92126a7575bb3cc327da40710b43f52c 27-Oct-2005 Eric Anholt <anholt@FreeBSD.org> Bug #4900: Fix the non-fogcoord fog test on r100 (and rv200) at tcl_mode=1 by
flipping the signs on two factors. While this contradicts the DDK, it matches
what r200 does, and it fixes the test.
adeon_state.c
ca2db58166400acdd1c4f8209d1bb3fb3caf4f7a 19-Oct-2005 Brian Paul <brian.paul@tungstengraphics.com> s/memcpy/_mesa_memcpy/, s/FREE/_mesa_free/
adeon_vtxfmt.c
adeon_vtxfmt.h
005469005df6ba5f80e382d5371c6d069c27738b 18-Oct-2005 Keith Whitwell <keith@tungstengraphics.com> Add _mesa_exec_malloc() and _mesa_exec_free() for allocating
executable memory. Based on Thomas Hellstrom's patch.
TODO: glapi.c also needs this, but cannot access this code.
adeon_vtxfmt.c
adeon_vtxfmt.h
05e1a49ab4b0d34aba4bdf55ed7ffe5b6d4411f8 18-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> on r200, don't emit fog coords when fog isn't actually enabled. Fix bug with vtxfmt not causing a fallback when fog coords are active.
adeon_maos_arrays.c
2d61d301171620efe624d83a5457f4094eb49cba 17-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> add GL_EXT_fog_coord support to radeon driver. No vtxfmt code (just uses fallback) yet. May cause a tcl fallback if fog coord is used together with separate specular lighting. Fog factors are precomputed and then submitted instead of the raw coords (chip limitation, same as on r200).
adeon_context.c
adeon_maos_arrays.c
adeon_maos_vbtmp.h
adeon_maos_verts.c
adeon_state.c
adeon_state_init.c
adeon_tcl.c
adeon_tcl.h
adeon_vtxfmt.c
dd5a86339f8b10f72c8a0e15c14463af3e0f717d 17-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> fix some obvious typos in radeon_reg.h (only currently unused bits affected)
erver/radeon_reg.h
247f3b3e81fffa86c50531070fab573e26ffb452 16-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> enable cube maps on radeon (#2241 on bugzilla). No vtxfmt code yet (just generates vfmt fallback). Code by Andreas Stenglein, some small adjustments by me.
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_maos_arrays.c
adeon_maos_verts.c
adeon_screen.c
adeon_screen.h
adeon_state.c
adeon_state_init.c
adeon_swtcl.c
adeon_tex.c
adeon_texmem.c
adeon_texstate.c
30daa7529331057ecb470efb500152e9c4aa1ae5 13-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> enable 3rd texture unit on radeon (default still 2 enabled units). Disable some multitexcoord codegen stuff noone understands to make it work. Replace most code testing explicitly for unit 0 and 1 with loops instead of adding test for unit 2, smaller/more readable code at the cost of maybe some slight performance hit. (Code provided by Andreas Stenglein, some adjustments by me.)
adeon_context.c
adeon_context.h
adeon_maos.c
adeon_maos_arrays.c
adeon_maos_vbtmp.h
adeon_maos_verts.c
adeon_screen.c
adeon_state.c
adeon_state_init.c
adeon_swtcl.c
adeon_tcl.h
adeon_texstate.c
adeon_vtxfmt.c
adeon_vtxfmt_c.c
adeon_vtxfmt_sse.c
adeon_vtxfmt_x86.c
adeon_vtxtmp_x86.S
ed2f8635f006886a16da07c77bcab8094229042c 13-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> make sure texture matrix is updated often enough with texture rectangles
adeon_texstate.c
d084c3d4dcabf58cef921b50ab60d1287563cd43 11-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> Minor driver cleanup. Remove unnecessery/unneded radeon/r200AllocDmaRegionVerts function. No longer compile the radeon_compat stuff which was for drm 1.1 compatibility presumably but unused since about forever into the driver.
akefile
adeon_ioctl.c
adeon_ioctl.h
adeon_maos_vbtmp.h
adeon_maos_verts.c
30f2d6f0cb34744c323c301573684b918332437f 09-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> remove code dealing with drm versions older than 1.3. The driver requires (and requests) 1.3 since quite some time already to work at all.
adeon_state.c
ea20c324ae1dd6360ec88f83f95087ebbb79bd0d 05-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> fix typo in radeon_maos_arrays.c from last commit (code currently unused, that path is compile-tested only).
adeon_maos_arrays.c
11f763f5057490477a2771febe8923682f6a5ada 05-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> remove unneeded parameter from radeonUploadTexMatrix.
adeon_maos_arrays.c
adeon_maos_verts.c
adeon_state.c
adeon_state.h
a3c8de2fa7fba22647e5b3e8cfb05c85d1a5a980 05-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> Remove the tcl fallback for texture rectangle (by manipulating the texture matrix) (tested with texrect). Enable texgen for r/q coordinates (tested with projtex). Fix projected texcoords when an app uses TexCoord3x and the texture matrix to save on vertex size (fixes ut2k3 shadow projectors in tcl mode). From texgenmix, all cases with all texgen or no texgen work, with the exception of texgen enabled for s/t only, this one works with hw tcl, but not with vtxfmt (suspect issues with vtxfmt), the mixed cases do not work (which is expected, and should be rare in practice), with the exception of the first one which hits a tcl fallback.
adeon_context.c
adeon_context.h
adeon_maos_arrays.c
adeon_maos_vbtmp.h
adeon_maos_verts.c
adeon_state.c
adeon_state.h
adeon_tcl.c
adeon_tcl.h
adeon_texstate.c
a9fc8ba756dd25a07dc19058fe60f65bda82a055 05-Oct-2005 Brian Paul <brian.paul@tungstengraphics.com> In gl_texture_image replace IntFormat with InternalFormat and Format with
_BaseFormat to be consistant with gl_renderbuffer.
adeon_texstate.c
afb9fb09655a87e1b78807b0c24c794e03f3632b 26-Sep-2005 Roland Scheidegger <rscheidegger@gmx.ch> remove identity check for texgen planes (which was just plain wrong).
adeon_texstate.c
84c9e671edcc1358307879491bddef9f7d96f14b 26-Sep-2005 Roland Scheidegger <rscheidegger@gmx.ch> fix projective texturing for (swtcl) texture rectangles. Fix wrong argument order for texgen/texmat matrix multiplication.
adeon_state.c
adeon_swtcl.c
a60ff20c584245c929ba755f5592e4b3791b2173 14-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> updated comment
adeon_context.c
67a8decffeada987d10da616d72c1e6ec473dfa5 14-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> make some functions static
adeon_screen.c
e42a31350df04ae9d68b7ab4a14408f5d013b42f 14-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
call driUpdateFramebufferSize() when we detect changes in window size/
position in radeonGetLock().
adeon_lock.c
adeon_state.c
878c371e6cf6eb28afacc482d8aeaa0119f00d5b 13-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> Replace ctx->Driver.StencilOp/Func/Mask() functions with
ctx->Driver.Stencil*Separate() functions.
adeon_state.c
bdf8441f808b7bd0a8fa10c59025c015db482a58 13-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> just some reformatting
adeon_screen.c
c53d2d0ca81f4335c3b3bf9870635ba5ec2b3b52 10-Sep-2005 Roland Scheidegger <rscheidegger@gmx.ch> add the new drm packets needed for ATI_fragment_shader to the sanity code of the r200 and radeon driver
adeon_sanity.c
16e7aebfe39bdd9c9fecb03ca3b0b617c2b449c8 05-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> Simplify radeonSetCliprects(). Remove the 'mode' parameter.
adeon_lock.c
adeon_state.c
adeon_state.h
87ce68e1b305b844f1ff72d79ef68dad48c63fc3 05-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> Further clean-up and simplification of the span-related functions.
adeon_span.c
61ba6b5a74625a01e07ae267c6e4ebf192434e40 05-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> Add new void *addr and __DRIdrawablePrivate parameters to
driNewRenderbuffer().
adeon_screen.c
6e0e6eff05727ac8833c2b2dffc51c6619427e77 04-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> Fix UpdatePageFlipping() function. Always call driFlipRenderbuffers()
with pfCurrentPage value, in case it's initially 1 instead of 0.
adeon_lock.c
0cfd4f92dde078bcc9f458ede91cc341a7b0ef5b 04-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> replace GET_SRC_PTR, GET_DST_PTR with GET_PTR
adeon_span.c
6e57725061813a3b8cee30bb857f6c59a88a8592 03-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> use new InitStencil/DepthPointer functions
adeon_span.c
350a1676357301f3d103b6d16d01c766644bf872 02-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> set depthHasSurface for stencil renderbuffer
adeon_screen.c
da84f0b642a65614c2618121869d5cd45ad986f5 01-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> fix page flipping breakage
adeon_ioctl.c
adeon_lock.c
982e8e4d5c95e9e9040b4b70d7322a2a8a9396d9 01-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> Finish up some of the gl_renderbuffer work.
Use driRenderbuffer's offset, pitch fields in the span routines.
Remove the SetBuffer driver function.
Consolidate the code for setting CTX_RB3D_COLOROFFSET and CTX_RB3D_COLORPITCH
state in new radeonUpdateDrawBuffer() function.
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_lock.c
adeon_screen.c
adeon_span.c
adeon_state.c
adeon_state.h
adeon_state_init.c
8e5479c7f806ffd57eed26c147e3ca227a39f0a7 01-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> s/__inline/INLINE/
adeon_swtcl.c
275a563bea0c0eef7bcd52ddc493803acf94c37e 31-Aug-2005 Brian Paul <brian.paul@tungstengraphics.com> remove redundant ctx->Driver fallback assignments that were already done in _mesa_init_driver_functions()
adeon_state.c
61d386a93f862005d1eddb45be91c7d5421aca83 25-Aug-2005 Eric Anholt <anholt@FreeBSD.org> Attempt to fix the issue reported by Alan Grimes with DRM_RADEON_TEXTURE
erroring out when it shouldn't. The errno could be changed by usleep() between
the ioctl call and the loop check, if a signal was received. This could cause
an EAGAIN return from the DRM_RADEON_TEXTURE ioctl to not loop again.
Instead of checking errno, check thevalue of ret itself, since it is a saved
(and sign-flipped) copy of errno from the ioctl call.
adeon_texmem.c
dabec11d277e68b6940e741651e61102767240b9 15-Aug-2005 Alan Hourihane <alanh@tungstengraphics.com> Add Egberts fixes for 64bit architectures

Add additional checks for the *DRIRec info structure passed in from the
device driver. This ensures that things fallback to indirect rendering if
the DDX driver has had modifications (i.e. removal of the drmAddress field).
adeon_screen.c
erver/radeon_dri.c
0d942b740c6bf82bf769f77ab979df11682a338c 08-Aug-2005 Dave Airlie <airliedfreedesktop.org> fix up color tiling in miniglx radeon server code
erver/radeon_dri.c
ae4e58c9ab9f9d14865479394fc1e8e79fa702e0 08-Aug-2005 Jon Smirl <jonsmirl@gmail.com> Remove platform specific bits from radeon_egl.c
erver/radeon_egl.c
485528f2acb69940a7c757638127f716c0cb2654 05-Aug-2005 Jon Smirl <jonsmirl@gmail.com> More EGL prep. No impact on anything outside of EGL
erver/radeon.h
erver/radeon_dri.c
b507bd41607a8025866d125d99c5abbca1931cd7 05-Aug-2005 Jon Smirl <jonsmirl@gmail.com> New files for radeon egl driver.
Still a work in progress.
erver/radeon_egl.c
7f5925d57c1405ff40acb2fd40b41ab4f189f7a4 03-Aug-2005 Dave Airlie <airliedfreedesktop.org> Add color tiling support to miniglx for radeon
(Stephane Marchesin + Dave Airlie)
erver/radeon.h
erver/radeon_dri.c
erver/radeon_reg.h
4508bcc72c96d468ea121f75e33500a9359a786e 29-Jul-2005 Jon Smirl <jonsmirl@gmail.com> Leave the AGP_BASE code in. It is pointless to bump the interface
for X on a miniglx fix. It can be removed later.
erver/radeon_dri.c
a7d4bfed8a80fb42ef104a6c9fde68e20526693c 29-Jul-2005 Jon Smirl <jonsmirl@gmail.com> Remove OUTREG(RADEON_AGP_BASE, info->ringHandle); from DRI driver
Code is already in DRM driver to do this.
erver/radeon_dri.c
f7c9eafa856623d5ce72afb8b20b7ccbcc3e671d 28-Jul-2005 Ian Romanick <idr@us.ibm.com> glxEnableExtension is a platform-specific function exported by the loader.
Therefore, drivers should not require it to run.
adeon_screen.c
1585c234e0db4bfb7cd85c4111594f6da1582e6f 28-Jul-2005 Ian Romanick <idr@us.ibm.com> Major rip-up of internal function insertion interface. The old
_glapi_add_entrypoint has been replaced by a new routine called
_glapi_add_dispatch. This new routine dynamically assignes dispatch offsets
to functions added. This allows IHVs to add support for extension functions
that do not have assigned dispatch offsets.

It also means that a driver has no idea what offset will be assigned to a
function. The vast majority of the changes in this commit account for that.
An additional table, driDispatchRemapTable, is added. Functions not in the
Linux OpenGL ABI (i.e., anything not in GL 1.2 + ARB_multitexture) has a
fixed offset in this new table. The entry in this table specifies the
offset in of the function in the real dispatch table.

The internal interface was also bumped from version 20050725 to 20050727.

This has been tested with various programs in progs/demos on:

radeon (Radeon Mobility M6)
r128 (Rage 128 Pro)
mga (G400)
adeon_context.c
adeon_screen.c
5f1ba3e21b62cee1a4f900a2e6964728f3eeea9b 26-Jul-2005 Ian Romanick <idr@us.ibm.com> Fixes the glXGetProcAddress portion of the interface. Most of the functions
that are currently obtained via glXGetProcAddress and all of the XF86DRI
functions are replaced with a funciton table. This table will be passed to
__driCreateNewScreen.

One of the functions in the table is getProcAddress. This allows some
loaders to expose functionality not in all loaders. This will be immediatly
used for glxEnableExtension (formerly known to drivers as
__glXScrEnableExtension). libGL (and in the future libglx) expose this
function so that drivers can enable GLX extensions. libEGL should exposed
eglEnableExtension to enable EGL extensions. The same function cannot be
used for both because the extensions have different names and (possibly)
different semantics. Drivers can optionally use one, both, or neither.

The key parts are in the __DRIinterfaceMethodsRec structure in
dri_interface.h. A pointer to one of these structures is passed into
__driCreateNewScreen. Because of this, the version of the API is bumped to
20050725. Since the previous version(s) were never in a release, their
existance is erased.

I was actually a little surprised by how much code this cuts from the
drivers. A lot of glXGetProcAddress calls disappear, and a lot of
version checks go with them. Nice.

The one thing I'm not sure of is removing __glXInitialize. For some
reason that function was in the glXGetProcAddress table, but *nothing*
in the Mesa tree used it. Did something with DRI conf. use this
function? It seems odd...
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_screen.c
c39bf5e273a4995a279ae2af59fc29e06ab47e29 24-Jul-2005 Ian Romanick <idr@us.ibm.com> All elements of pre-DRI_NEW_INTERFACE_ONLY are removed. This allows
1,402 lines of code to be removed from Mesa (drivers and libGL). The
big winner is dri_util.c.

Primary changes are:

1. Remove all "deprecated" entry-points from the various structures in
dri_interface.h.

2. Rename the remaining fields to removed "version numbers." So,
bindContext3 becomes bindContext. Functions with "New" in the name
(e.g., CreateNewContext) were *not* changed, but that is an option.
Having "New" in the name is less annoying to me than having "3" in the name.

3. Remove all compatibility code that handles cases where the driver or
the loader is too old to support the latest interfaces.

4. Append the API version to the __driCreateNewScreen function name.
This is currently done by hand. In the future (i.e., the next time we
make an incompatible change to the interface) we'll want to come up with
a better way to do this. This prevents old loaders from being able to load
new (incompatible) drivers.

5. Bump the API version to 20050722. All drivers (by way of dri_util.c)
require this version.

6. All drivers are *required* to expose GLX_SGIX_fbconfig and
GLX_OML_swap_method (or the moral equivalents). Support for these
functions in implicit in the use of the "new" interface.

7. Some cases still exist that need to be compiled differently in a loader
or core Mesa versus in a driver. These are identified by the define
IN_DRI_DRIVER.
adeon_screen.c
9bdfee3a470a535ebe31074651fbacf680bcea6a 18-Jul-2005 Ian Romanick <idr@us.ibm.com> Wrap every place that accesses a dispatch table with a macro. A new script-
generated file, called src/mesa/glapi/dispatch.h, is added. This file
contains three macros for each API function. It contains a GET, a SET, and
a CALL. Each of the macros take a pointer to the context and a pointer to
the dispatch table.

In several threads on mesa3d-dev we discussed replacing _glapi_add_entrypoint
with a new function called _glapi_add_dispatch. For this discussion, the
important difference between the two is that the caller of _glapi_add_dispatch
does *not* know what the dispatch offset will be at compile time. Because of
this callers need to track the dispatch offset returned by
_glapi_add_dispatch.

http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2

The downside is that driver code then has to access the dispatch table two
different ways. It accesses it using structure tags (e.g., exec->Begin) for
functions with fixed offsets and via a remap table (e.g., exec[
remap->NewExtensionFunction ]) for functions without fixed offsets. Yuck!

Using the macros allows both types of functions to be accessed
identically. If a driver needs to set a pointer for Begin, it does
'SET_Begin(ctx, exec, my_begin_function)'. If it needs to set a pointer
for NewExtensionFunction, it does 'SET_NewExtensionFunction(ctx, exec,
my_NewExtensionFunction_function)'. Furthermore, if at some point in
the future a static offset is assigned for NewExtensionFunction, only
the macros need to change (instead of every single place that accesses a
table for that function).

This code differs slightly from the originally posted patches in that the
CALL, GET, and SET marcos no longer take a context pointer as a parameter.
Brian Paul had suggested that the remap table could be stored as a global
since it would be set at CreateScreen time and would be constant for all
contexts. This change reflects that feedback.

http://marc.theaimsgroup.com/?t=112087194700001&r=1&w=2
adeon_vtxfmt.c
adeon_vtxfmt_c.c
b0489d4f822211f50c99a789ce797e9e10bf4a6c 15-Jul-2005 Brian Paul <brian.paul@tungstengraphics.com> remove duplicate "User disable" string
adeon_tcl.c
c62c24c72f42bebce576c4e34d100acaaa5e674e 15-Jul-2005 Brian Paul <brian.paul@tungstengraphics.com> added a few more fallbackStrings (Andreas Stenglein)
adeon_tcl.c
758f334717eaf6700defcde126cb9194155a2264 01-Jul-2005 Roland Scheidegger <rscheidegger@gmx.ch> convert sis and radeon driver to use spantmp2 instead of spantmp template. Remove old (pre-renderbuffer) span code instead of converting that too. Remove this old code from mach64 (the dead code was not fully converted to spantmp2 previously) too.
adeon_span.c
cf5b2f7419b28cdd533c60e205d5a90d96e85c8e 01-Jul-2005 Roland Scheidegger <rscheidegger@gmx.ch> remove common macros used in the span functions of most drivers from the individual drivers and put them in common code. It is still possible for a driver to define its own macros if it has special needs. This affects CLIPPIXEL, CLIPSPAN, HW_CLIPLOOP, HW_ENDCLIPLOOP, and for drivers using the spantmp2 template also GET_SRC_PTR and GET_DST_PTR.
adeon_span.c
c212abf99af494f024b0b981a83350f7ac9821ef 30-Jun-2005 Ian Romanick <idr@us.ibm.com> Replace add_newer_entrypoints (src/mesa/main/context.c) with
device-specific code. A new Python script
(src/mesa/glapi/extension_helper.py) generates a list of all
entry-points for all known extensions. Each driver the selects only
the extensions that it needs and enables the via either
driInitExtensions or driInitSingleExtension.

This code has been compile-tested on a drivers, but has only been
run-tested on mga and i915 (on i830 hardware).

These changes were discussed at length on the mesa3d-dev mailing list.

http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2
adeon_context.c
3f9839a52b6152d349b5c6279cd7a3d3106b3999 26-Jun-2005 Eric Anholt <anholt@FreeBSD.org> Fix crashes during rasterization fallback by avoiding _tnl_need_projected_coords
during fallbacks. In one case, _swsetup_Wakeup had just been called, covering
the need there, and in the other case, we can simply exit the entire
radeonChooseVertexState function, knowing that it will be called again once we
leave the fallback.

Bugzilla #: 2516
Submitted by: sroland
adeon_swtcl.c
32b898126eeba38245ed1dac7d7332c3f923a012 26-Jun-2005 Eric Anholt <anholt@FreeBSD.org> Explain the reason for TCL fallback when GL_SPHERE_MAP happens with
RADEON_DEBUG=fall.
adeon_texstate.c
b79c47e90ce421426e4608c85461148f3962f9a0 31-May-2005 Eric Anholt <anholt@FreeBSD.org> Remove unused CTX_ARG2 define.
adeon_swtcl.c
8a1df968627de01d04f3d692fd81108ba6492c18 31-May-2005 Eric Anholt <anholt@FreeBSD.org> Bugzilla #2195: Convert the radeon driver to the t_vertex interface. This cuts
about 200 lines from the code and 25k from the binary, while matching other
drivers more closely. In the worst case (tcl_mode=0) it appears to have
a performance cost of 4.4% +/- 0.3% on quake3 (800x600 demofours, 1ghz p3,
rv200). Tested on ut2004, ut, q3, projtex.

Submitted by: Andreas Stenglein <a.stenglein@gmx.net>
adeon_context.c
adeon_context.h
adeon_swtcl.c
0b73889d54add35aadbf5e623ac5441d70439e6f 29-May-2005 Eric Anholt <anholt@FreeBSD.org> Put some fallback debugging output under DEBUG_FALLBACKS.
adeon_texstate.c
2962f88189c46e0bfe3fc33a1d46be9409cb9c10 29-May-2005 Eric Anholt <anholt@FreeBSD.org> Add a missing EnsureCmdBufSpace, matching r200.
adeon_swtcl.c
4cf20d923627aa5f8fdce129b4259eef97f230c7 16-May-2005 Keith Whitwell <keith@tungstengraphics.com> Apply r200 tcl fix to radeon - compiles but untested.
adeon_tcl.c
e7769cb34898ca20adb5b0e329161e6321403fc9 05-May-2005 Adam Jackson <ajax@freedesktop.org> Refactor COMMON_SOURCES up to Makefile.template
akefile
e4b2356c07d31fbeeabb13b2fb47db703b473080 04-May-2005 Brian Paul <brian.paul@tungstengraphics.com> Major check-in of changes for GL_EXT_framebuffer_object extension.
Main driver impacts:
- new code for creating the Mesa GLframebuffer
- new span/pixel read/write code
Some drivers not yet updated/tested.
akefile
adeon_context.c
adeon_ioctl.c
adeon_lock.c
adeon_screen.c
adeon_screen.h
adeon_span.c
adeon_span.h
adeon_state.c
bf87f864934e174b3493592d5d107f012aac0842 23-Apr-2005 Keith Whitwell <keith@tungstengraphics.com> First pass at updating these drivers with pipeline_stage struct changes.
adeon_swtcl.c
adeon_tcl.c
db382c5b1d3357cc9add8a55306ce702a5df0e5e 09-Apr-2005 Ian Romanick <idr@us.ibm.com> Remove all the radeon_subset files. They were completely unused. Keith
Whitwell says, "[T]he radeon subset code can probably be archived now."
This "fixes" bug #1623.
adeon_subset.h
adeon_subset_bitmap.c
adeon_subset_readpix.c
adeon_subset_select.c
adeon_subset_tex.c
adeon_subset_vtx.c
e7c7a0f3536ad23fa0a5b8bba973da8fef9d72ce 19-Mar-2005 Michel Dänzer <michel@daenzer.net> Add support for production version of ATI RN50/ES1000. (ATI Technologies
Inc.)
adeon_screen.c
fbe5296d1463e1052590b744f3d62ebb9e5d5dd4 15-Mar-2005 Roland Scheidegger <rscheidegger@gmx.ch> add support for user-configurable brilinear filtering on r200
adeon_sanity.c
07561c6b32d55128222283a7450c65c95d21df59 05-Mar-2005 Dave Airlie <airliedfreedesktop.org> Fixing memset on ia64 & other archs
From: Stephane Marchesin
erver/radeon_dri.c
87030f6618cce065f8f552471648344de2f1d920 05-Mar-2005 Roland Scheidegger <rscheidegger@gmx.ch> remove one of the two _tnl_isolate_materials function calls
adeon_context.c
4932ba28adc2694161ec3fa7964cd76e3742182a 26-Feb-2005 Dave Airlie <airliedfreedesktop.org> Add a dri config option to enable the max texture level hack
make ycbcr depend on a CHIPSET define .. needs to be filled in though
adeon_context.c
adeon_screen.c
9605806d81bc8a378dc70e9a89199bce11f419e2 18-Feb-2005 Michel Dänzer <michel@daenzer.net> fd.o bug #2576: Add support for ATI RN50/ES1000. (ATI Technologies Inc.)
adeon_screen.c
2c28dd892cfb43445d7e54df8b6a8331192f4e99 16-Feb-2005 Brian Paul <brian.paul@tungstengraphics.com> s/0/NULL/ (Jeff Muizelaar)
adeon_context.c
adeon_ioctl.c
adeon_sanity.c
adeon_state.c
adeon_state_init.c
adeon_swtcl.c
adeon_tcl.c
adeon_vtxfmt.c
adeon_vtxfmt_c.c
adeon_vtxfmt_sse.c
adeon_vtxfmt_x86.c
233d93d47e12cd5084be7bed9ae78a05da02085f 15-Feb-2005 Dave Airlie <airliedfreedesktop.org> Add missing texture formats for completeness
erver/radeon_reg.h
e82cb7852b6d51325cbdbda2354f391bfea6d30b 14-Feb-2005 Roland Scheidegger <rscheidegger@gmx.ch> remove accidentally commited printf for tiling support
adeon_context.c
d5e008b84bc8cab491a1c9dd2b7577d1a9de19ba 13-Feb-2005 Michel Dänzer <michel@daenzer.net> Typo fix.
erver/radeon_macros.h
37cbb521d3ab8d96a8fcc0199424c0ddc70f0435 12-Feb-2005 Michel Dänzer <michel@daenzer.net> MMIO endianness fixes for Radeon drivers.
erver/radeon_macros.h
4837ea30208d002bc36a836d2117f826d40c8bfa 10-Feb-2005 Roland Scheidegger <rscheidegger@gmx.ch> add texture micro and macro tiling to radeon/r200 driver. This can improve performance up to 15% in texture-intensive applications. Convert the driver to use the correct blit format and blit width instead of fixed blit format and blit width when uploading textures to make it work.
adeon_context.c
adeon_context.h
adeon_texmem.c
adeon_texstate.c
26d31591257d575362776972439f614948366dd1 10-Feb-2005 Roland Scheidegger <rscheidegger@gmx.ch> add the new RADEON_CUBIC_OFFSET/FACES state packets/registers to radeon (and r200) sanity code
adeon_sanity.c
4754fc653f43903265dc878f27826ebcf26dfdcb 08-Feb-2005 Keith Whitwell <keith@tungstengraphics.com> SUBPIXEL fixes from Dieter
adeon_state.c
886280763c8dfa7202bdacdeacf84ced69609b98 01-Feb-2005 Adam Jackson <ajax@freedesktop.org> Bug #2428: #ifdef GLX_DIRECT_RENDERING in DRI drivers is pointless.
adeon_context.h
adeon_ioctl.h
adeon_lock.h
adeon_maos.h
adeon_screen.h
adeon_span.h
adeon_state.h
adeon_tcl.h
adeon_tex.h
adeon_vtxfmt.h
a205137423e42010a025c70b05af98a6c0564f28 26-Jan-2005 Roland Scheidegger <rscheidegger@gmx.ch> (Stephane Marchesin, me) Add support for color (framebuffer) tiling to the radeon and r200 driver
adeon_ioctl.c
adeon_lock.c
adeon_screen.c
adeon_screen.h
adeon_span.c
adeon_state.c
adeon_state_init.c
0cbc25480f3108a9a49277d57ba2b9e2332d3ccd 26-Jan-2005 Roland Scheidegger <rscheidegger@gmx.ch> replace magic number with macro constant RADEON_ZBLOCK16
adeon_state_init.c
erver/radeon_reg.h
72e3664996721263858f3096e4a618a406550402 23-Jan-2005 Dave Airlie <airliedfreedesktop.org> reapply Keiths workaround for zbs emit that got dropped during
state change patches....
adeon_ioctl.c
150ed2e43d5541556d282cae728cebeec692e07a 23-Jan-2005 Dave Airlie <airliedfreedesktop.org> add sync debugging to the radeon driver
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_texmem.c
d16aa9859c9f5a3a7bf74a13dbbdd20688d3ad84 16-Dec-2004 Adam Jackson <ajax@freedesktop.org> Also PUBLICize the config option table
adeon_screen.c
3d7aec70c983ed12beac0ad0aa528ac270b6b01a 16-Dec-2004 Adam Jackson <ajax@freedesktop.org> Mark __driCreateNewScreen PUBLIC
adeon_screen.c
38b317d508a2a3a4cc6d700ebca80c3b06c913e2 14-Dec-2004 Alan Hourihane <alanh@tungstengraphics.com> uint*t -> u_int*t changes
adeon_ioctl.c
adeon_screen.c
adeon_screen.h
adeon_state.c
adeon_swtcl.c
adeon_tcl.c
b2ad61fd40bd5a689ec6cd3ce21886f20decd30b 09-Dec-2004 Dave Airlie <airliedfreedesktop.org> fixup pci code for Jon's last checkin for changing page size
erver/radeon_dri.c
b31b7836d6e7abf80dd4feacce333d4b1fe6e4ab 08-Dec-2004 Roland Scheidegger <rscheidegger@gmx.ch> (Stephane Marchesin, me) add hyperz support to radeon and r200 drivers. Only fast z clear and z buffer compression are supported for now, hierarchical-z is not. Still problems with multiple apps and z/stencil readback, which is why hyperz is disabled per default. Also add the new point sprite packet drm 1.13 accepts to the sanity code.
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_sanity.c
adeon_screen.c
adeon_state_init.c
erver/radeon_reg.h
23b033ad28331e40287ab8b5c9150bc6be5c608f 08-Dec-2004 Dave Airlie <airliedfreedesktop.org> From: Stephane Marchesin <marchesin@icps.u-strasbg.fr>

Attached is a patch that adds pci init code for mesa solo on radeon. It's been
tested on an itanium 2 with a radeon 7000 and it works here.
The patch adds a new field in the miniglx.conf config file, to choose between
pci and agp.
erver/radeon.h
erver/radeon_dri.c
de7b071b5534fc423a056abd521de8bf9120f89e 03-Dec-2004 Roland Scheidegger <rscheidegger@gmx.ch> enable GL_EXT_stencil_wrap (patch from idr), including some hacks for original radeons which have some broken stencil ops.
adeon_context.c
adeon_screen.c
adeon_screen.h
adeon_state.c
erver/radeon_reg.h
025aa9efcd8213ce530818cfd8be1b6d9e945b2c 02-Dec-2004 Alan Hourihane <alanh@tungstengraphics.com> silence warnings
adeon_swtcl.c
adeon_tcl.c
65a66f5bc37383c00423c21baf8ba9d6771e0259 27-Nov-2004 Brian Paul <brian.paul@tungstengraphics.com> Remove _mesa_ResizeBuffersMESA() call from _mesa_set_viewport().
Now, the driver's Viewport routine should call _mesa_ResizeBuffersMESA()
if necessary.
Cleaned up code related to GLframebuffer width/height initialization.
Set initial viewport/scissor params in _mesa_make_current2(), instead of
in the drivers' MakeCurrent functions.
adeon_context.c
adeon_state.c
ce055c26f08556a46ee8b4b88e5fd15eb4d2acd1 12-Nov-2004 Roland Scheidegger <rscheidegger@gmx.ch> add LOCK_HARDWARE/UNLOCK_HARDWARE to radeonClear so state gets updated which hopefully fixes lockups (?) (from r200 driver)
adeon_ioctl.c
8e3926575264d31b3caacb9cbb606f8f2914f57d 12-Nov-2004 Roland Scheidegger <rscheidegger@gmx.ch> (from r200 driver) If an application cleared before any state had been emitted, that clear would
happen before any state had been set, causing a hang later on. Fix this by
calling radeonFlush instead of FIREVERTICES (which checks if any state has been
emitted but not flushed, before calling Flush) in radeonClear. While here, add
some more debugging info which was useful, and remove an unnecessary
save/restore in BackUpAndEmit.
adeon_ioctl.c
a2c2393d9185030bded93311880a770aa62f931d 12-Nov-2004 Adam Jackson <ajax@freedesktop.org> brown paper bag, r100 can't do hardware quads.
adeon_tcl.c
4d17d00bfc8ad5cb331e2fca235df60d84310b32 12-Nov-2004 Adam Jackson <ajax@freedesktop.org> make render_quads_verts call EMIT_PRIM with the arguments in the right order,
and enable hardware quads on r200 and radeon. samples/prim renders quads
correctly now.
adeon_tcl.c
60909388ab136d849d99eab49e782a53772a618f 10-Nov-2004 Brian Paul <brian.paul@tungstengraphics.com> GL_(UN)PACK_SKIP_IMAGES should only be applied to 3D texture pack/unpacking
and ignored for 1D and 2D images.
Need to pass in image dimensions (1,2,3) to the _mesa_image_address() function.
This change gets propogated to some other routines.
Also added new _mesa_image_address[123]d() convenience functions.
adeon_subset_bitmap.c
de08b0d7ed8af9d56bf8f82762095de3fe094c95 10-Nov-2004 Roland Scheidegger <rscheidegger@gmx.ch> add some chip ids
adeon_screen.c
d09209f5530e8bba78e4e0ec62b2027c588cc8f3 08-Oct-2004 Eric Anholt <anholt@FreeBSD.org> Add Roland Scheidegger's S3TC patch. This patch does not implement the
(patented) S3TC/DXTC algorithms, but adds an option to dlopen a library module
providing functions to do so. Because it uses dlopen, it is only enabled if
USE_EXTERNAL_DXTN_LIB=1 is defined (which is only in linux-dri config, so far).
It adds support for S3TC to several DRI drivers, and adds a DRI config option to
force enabling S3TC even if the software compression/decompression is
unavailable. This may allow people to use apps that require S3TC even though
they don't have a license to implement the patented material themselves, if
those apps use precompressed textures.

Ideally we would get permission from the current holder of the patents to
implement the algorithm in Mesa, at which point the dlopen mess could go away.
Until then, this allows some to run applications they couldn't otherwise, and
hopefully will provide us with more push to get the final step of getting that
permission done.
adeon_context.c
adeon_screen.c
adeon_tex.c
adeon_texmem.c
adeon_texstate.c
53f82c5aadbb15585754bfacf3237093eccdb2ce 02-Oct-2004 Brian Paul <brian.paul@tungstengraphics.com> added support for GL_ARB_draw_buffers
adeon_lock.c
adeon_state.c
7a086dc05e665a78f7e9d069aa4fc70e844b8988 30-Sep-2004 Eric Anholt <anholt@FreeBSD.org> OK, one more time. Simplify the state-backup system by just storing the full
state in a ready-to-emit cmdbuf, which avoids the issue Nicolai Haehnle reported
where the check() could return differently during backup-and-emit than it should
have if it were called at the right time. Move the lit emission before most of
the TCL state emission on r200, which fixes neverball issues.

Tested with: r100/r200 with neverball, tuxracer, chromium, quake3, ipers
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_ioctl.h
adeon_lock.h
adeon_state_init.c
5562fe653cf88454bbf2c50f77a8b56b0dafe01b 25-Sep-2004 Eric Anholt <anholt@FreeBSD.org> The previous code would emit a full set of state during the first EmitState on
a new cmdbuf, to ensure that state wasn't lost across UNLOCK/LOCK pairs (in the
case of context switching). This was rather inefficient. Instead, after
flushing a cmdbuf, mark the state as needing to be saved on unlock. Then, at
the beginning of flushing a cmdbuf, if we actually have lost the context, go
back and emit a new cmdbuf with the full set of state, before continuing with
the cmdbuf flush. Provides a 10-15% improvement in ipers performance in my
tests, along with other apps.

Tested with: ipers, glxgears, quake3
adeon_compat.c
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_ioctl.h
adeon_lock.c
adeon_lock.h
adeon_state_init.c
adeon_subset_tex.c
adeon_texmem.c
cddd5c99e526f0e8e550caffcbf87100957845b8 24-Sep-2004 Eric Anholt <anholt@FreeBSD.org> Clean up some warnings in the R100 driver with -O -Wall.
adeon_swtcl.c
adeon_tcl.c
adeon_vtxfmt_c.c
626f825bcc91a3068e2e1c68e7467b42826c51ea 17-Aug-2004 Eric Anholt <anholt@FreeBSD.org> Revert the move of lost_context setting to UNLOCK_HARDWARE that was done in the
last commit. I've been convinced by keithw that it's sufficient, and put a note
in the code about it.

Close another race for state in the Clear functions. I made the situation worse
in my last commit, but this should fix things. Might be a slight performance
hit, which could be regained by splitting the R*_FIREVERTICES calls in r*Clear
up so that the EmitState doesn't happen in a separate new cmdbuf.
adeon_ioctl.c
adeon_lock.h
6f3cc6a5226fd4b5d44cca91e2f76216ecaff831 17-Aug-2004 Eric Anholt <anholt@FreeBSD.org> Close some races with locking on R100 and R200 which could manifest as rendering
errors on r100 and rendering errors and hangs on r200 (same for R100 without
OLD_PACKETS).

If a command buffer filled after some state (EmitState or a VBPNTR write) was
emitted, the lock was grabbed, the buffer flushed, a new buffer prepared, and
the lock dropped. Another client could come in, set its own state as part of
rendering, and when the first client flushed the rendering commands depending
on the previous state, it got the 2nd client's state. This is fixed by checking
for enough space before beginning a set of state emits and rendering, and
flushing the buffer first if so. This guarantees that the buffer won't wrap.

Also, move the "lost_context = 1" from the end of cmdbuf flushing to
UNLOCK_HARDWARE for clarity (at a minimum) that any time the lock is dropped,
state may get overwritten. We don't have enough information at the point of the
LOCK_HARDWARE to reset our state to the last UNLOCK_HARDWARE point in the case
that we did lose our context, but saving the information to rebuild that state
may be a useful optimization (ipers data suggests up to 5%).
adeon_context.h
adeon_ioctl.c
adeon_ioctl.h
adeon_lock.h
adeon_state_init.c
adeon_swtcl.c
adeon_tcl.c
0de671f19a49fb55906803e112e4b1d2c2fc09f5 16-Aug-2004 Eric Anholt <anholt@FreeBSD.org> Remove unused HAVE_INDEX define.
adeon_swtcl.c
6b41bf3afc027ce2ca00ff659cd73e866fa91d48 24-Jul-2004 Brian Paul <brian.paul@tungstengraphics.com> use GL_CALL() macro (Andreas Stenglein)
adeon_vtxfmt.c
9a9614e4e90e7f22772afecde0665bdbba97bee0 10-Jul-2004 Jon Smirl <jonsmirl@gmail.com> Make solo radeon/r128 drivers track fix for DRI bug 849
erver/radeon_dri.c
550009441375e55bda3896eba7375b9228c7fdec 06-Jul-2004 Jon Smirl <jonsmirl@gmail.com> Convert miniglx to use Ian's fancy new driver config code.
This removes the miniglx driver function InitContextModes().
All of the server directories were edited to remove the implementations.
erver/radeon_dri.c
aaebfc88c08c79cd70f1e0d1d262a25e9ded47d1 04-Jul-2004 Jon Smirl <jonsmirl@gmail.com> Patch removes _SOLO definition needed for mesa-solo. mesa-solo
uses the NEW_INTERFACE now so _SOLO isn't necessary anymore.
Tested with the hardware that I own.
adeon_context.c
adeon_screen.c
3d38361b718d490e1e7fda64519952ec887cd149 01-Jul-2004 Keith Whitwell <keith@tungstengraphics.com> Rename the various function types in t_context.h to include a tnl_ prefix.
adeon_swtcl.c
c61c7cb8e4100476d5feb976c39a23b1ed7b564a 29-Jun-2004 Jon Smirl <jonsmirl@gmail.com> This should make most linux-solo drivers work again. Mainly a fix
for changing SAREA size form DRM_PAGE_SIZE to SAREA_MAX. fb driver
is still broken.
erver/radeon_dri.c
26755698c8b8981be8778527c4381d69f790e291 29-Jun-2004 Roland Scheidegger <rscheidegger@gmx.ch> add missing R200_RB3D_BLENDCOLOR to r200/radeon_sanity.c
adeon_sanity.c
d7ea75061c1678bfca422e8776bd35f6546066f5 23-Jun-2004 Roland Scheidegger <rscheidegger@gmx.ch> revert accidental change from rev. 1.10
adeon_texstate.c
f252f64430ccb957698fcf85e84c9d64008147eb 19-Jun-2004 Brian Paul <brian.paul@tungstengraphics.com> Big-endian texture fixes from Michel Dänzer.
adeon_tex.c
adeon_texstate.c
e3f926ad514d915a983a873540f201fc19d8d913 17-Jun-2004 Roland Scheidegger <rscheidegger@gmx.ch> use I8 internal format for GL_INTENSITY, GL_ALPHA and GL_LUMINANCE texture formats. Fix potential bug with tex env combine mode GL_DOT3_RGB/GL_DOT3_RGB_EXT and ALPHA_SCALE
adeon_tex.c
adeon_texstate.c
da1766f12f79ae512007ab3457bdd34ec65347ab 03-Jun-2004 Ian Romanick <idr@us.ibm.com> Remove fill_in_modes and use driFillInModes instead.
adeon_screen.c
8f980b0e748f7c5a49e75c00ef4fa0b077d78197 03-Jun-2004 Jon Smirl <jonsmirl@gmail.com> Open/Close FullScreen die. unichrome and savage implemented, code is ifdef'd out
adeon_screen.c
5b98ada88071a752b6000756949a1951183cdd0b 03-Jun-2004 Ian Romanick <idr@us.ibm.com> driCheckDriDdxDrmVersion uses a function that is not available to
drivers when DRI_NEW_INTERFACE_ONLY is defined. #ifndef it away in
that situation.

Add a new function, driCheckDriDdxDrmVersion2, that is passed in the
version information that is already supplied to __driCreateNewScreen.
Part of the reason that information is supplied to
__driCreateNewScreen is so that the driver doesn't have to make those
calls to get it!

Modify all drivers that support the new interface to use the new
function instead of the old. As soon as all drivers support the new
interface, driCheckDriDdxDrmVersion can be removed.
adeon_screen.c
2665a4e74ca0aa56f21ddc91eacc83ec2472cbda 02-Jun-2004 Roland Scheidegger <rscheidegger@gmx.ch> change GL_ARB_texture_env_crossbar implementation behaviour to OGL 1.4 core specification instead of extension specification (undefined behaviour instead of disabled blending if not enabled texture units are referenced). Fix minor signedness bug.
adeon_texstate.c
c06b25594e5effe34a90c067e1a3da0f61cf2b13 02-Jun-2004 Ian Romanick <idr@us.ibm.com> Replace drmHandle, drmContext, drmDrawable, drmMagic and related types with
drm_handle_t, drm_context_t, drm_drawable_t, drm_magic_t.
adeon_context.h
adeon_screen.h
erver/radeon.h
erver/radeon_dri.c
erver/radeon_dri.h
a4436a8f4476344f1ec81cacf35f5693d58dcc06 02-Jun-2004 Ian Romanick <idr@us.ibm.com> Fix dumb mistake from a previous commit. __driCreateScreen is now
properly block with '#ifndef DRI_NEW_INTERFACE_ONLY'.
adeon_screen.c
7a6eda7137b4b4a384022b7e0e7db7f9ef98fbbc 02-Jun-2004 Roland Scheidegger <rscheidegger@gmx.ch> add support for GL_ARB_texture_env_crossbar
adeon_context.c
adeon_texstate.c
60b0e12830310e7c05b4043857ed277b28b1c781 01-Jun-2004 Ian Romanick <idr@us.ibm.com> Convert 'Display *' to '__DRInativeDisplay *'. Only portions of the
interface that are not *strictly* part of the old interface were
changed. Replace GetDrawableInfo type (dri_util.h) with
PFNGLXGETDRAWABLEINFOPROC (dri_interface.h). Wrap __driCreateScreen
(in drivers that use the new interface) with '#ifndef
DRI_NEW_INTERFACE_ONLY'.
adeon_screen.c
1071162b366d733ff2f46f6234d66e1db5282f32 28-May-2004 Roland Scheidegger <rscheidegger@gmx.ch> update so it compiles again (untested driver path!). Basically ported changes from r200_maos_arrays.c cvs rev. 1.3-1.5.
adeon_maos_arrays.c
b3981ab6e6762b4205ca5302d93be129f648a9cf 28-May-2004 Ian Romanick <idr@us.ibm.com> Move dri_util.[ch] and glcontextmodes.[ch] from dri_client to common.
akefile
c1d455f5827e7044dcb316dadc755a6f91299906 27-May-2004 Ian Romanick <idr@us.ibm.com> Convert all calls using _glapi_Dispatch to use the new GL_CALL macro.
adeon_vtxfmt.c
751c9d096d7bca4cc7d2f8a8a4660d160d785134 12-May-2004 Brian Paul <brian.paul@tungstengraphics.com> obsolete in favor of regular Makefiles
akefile.solo
0a8b528bf5e2fc7f2af2f478fd2fdd36ee57245f 04-May-2004 Dave Airlie <airliedfreedesktop.org> switch to X86_SOURCES
akefile
47244a8181e1eedd390116a5787d79d17ed94c72 03-May-2004 Dave Airlie <airliedfreedesktop.org> add asm sources
akefile
74d563cdfbfb07cc666d60dc909e90ddb9949cbb 29-Apr-2004 Keith Whitwell <keith@tungstengraphics.com> Allow *_dri.so to build in Mesa tree with the 'linux-dri' target.
akefile
adeon_screen.c
adeon_screen.h
462183fe4cb6df6d90632d9e2cee881c8d26b1cb 26-Apr-2004 Alan Hourihane <alanh@tungstengraphics.com> bring over build fixes from stable branch
adeon_context.h
adeon_ioctl.c
adeon_screen.c
adeon_tex.c
adeon_texmem.c
adeon_texstate.c
adeon_vtxfmt.c
adeon_vtxtmp_x86.S
85dc9fe5436e9eadb8cae09915e7ec9ba1fb7684 15-Apr-2004 Dave Airlie <airliedfreedesktop.org> get the libraries the right way round..
akefile
a7abda582082ca345bf1b883cc3c125b3918d5b8 15-Apr-2004 Dave Airlie <airliedfreedesktop.org> set default page flipping to zero can be changed in header file
erver/radeon.h
erver/radeon_dri.c
erver/radeon_dri.h
f833df0781d8b32009f6b52a4eff97750968041b 14-Apr-2004 Dave Airlie <airliedfreedesktop.org> get agpmode from config file
erver/radeon_dri.c
4ba589bbf076f49bd899c7bca90fb186434f23da 13-Apr-2004 Dave Airlie <airliedfreedesktop.org> make this exactly like XFree86 .. allows 4x to work
erver/radeon_dri.c
c0b0b48e5be32a23ad347ab4e80e1c1406bd5b86 13-Apr-2004 Jon Smirl <jonsmirl@gmail.com> Add DRM_SOURCE_PATH to make system.
Needed for linux-solo to build
akefile
18e9b2e5f838ee18170f229c17974673f5af0024 09-Apr-2004 Brian Paul <brian.paul@tungstengraphics.com> lots of Makefile updates for new build system
akefile
b303217c1459134e242e6078088088a2428547b8 08-Apr-2004 Alan Hourihane <alanh@tungstengraphics.com> build fixes
adeon_maos_verts.c
adeon_tcl.c
de0ee3187c8fffb52327f9a5680a3eafea872276 26-Mar-2004 Brian Paul <brian.paul@tungstengraphics.com> New Makefile system
akefile
3623579e43b4c3a8d2eb7edb6efaa6f178279ec9 26-Mar-2004 Ian Romanick <idr@us.ibm.com> Make sure drivers don't dereference a NULL pointer if
__driUtilCreateNewScreen returns NULL.
adeon_screen.c
894844a8d956a0ee5f95836331dc318f49fdb845 21-Mar-2004 Brian Paul <brian.paul@tungstengraphics.com> Implemented support for software-based AUX color buffers.
Only available with Xlib driver for now.
Assorted clean-ups related to Draw/ReadBuffer().
Renamed FRONT_LEFT_BIT -> DD_FRONT_LEFT_BIT, etc.
adeon_ioctl.c
adeon_lock.c
adeon_span.c
adeon_state.c
6af3dca18a2315ea431b5ea868913093d2111491 18-Mar-2004 Ian Romanick <idr@us.ibm.com> Convert int(8|32)_t to uint(8|32)_t, like should have been done the first time.
adeon_ioctl.c
adeon_screen.c
adeon_screen.h
adeon_state.c
16c704e8f7cd9b7d7c5d6667cb38e016e3b608d1 17-Mar-2004 Ian Romanick <idr@us.ibm.com> Convert all uses of CARD32 and CARD8 to int32_t and int8_t.
adeon_ioctl.c
adeon_screen.c
adeon_screen.h
adeon_state.c
6ddfdff659196cf4eeb0e5fed70ddd1ced0d16fc 12-Mar-2004 Jon Smirl <jonsmirl@gmail.com> Adjust includes to help DRI build
adeon_context.h
5fb0763d2ea6eeb12000f40b96ce556c35fe115f 12-Mar-2004 Jon Smirl <jonsmirl@gmail.com> These files are redundant now. Definitions come from DRM files.
erver/radeon_common.h
erver/radeon_sarea.h
ae4a1cc0666860bf5cc37a5cb549afc9aa5448b0 11-Mar-2004 Jon Smirl <jonsmirl@gmail.com> Adjustments to make everything use IOCTL/sarea defines in DRM instead
of glx/mini. removes glx/mini/drm.h glx/mini/sarea.h
akefile.solo
adeon_compat.c
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_lock.c
adeon_sanity.c
adeon_sanity.h
adeon_screen.c
adeon_screen.h
adeon_state.c
adeon_state_init.c
adeon_texmem.c
erver/radeon_dri.c
erver/radeon_dri.h
8cff2ede6eec1dd480bb8a4835b6985955514d87 01-Mar-2004 Roland Scheidegger <rscheidegger@gmx.ch> Add support for the new DRI driver interfaces to the radeon driver (patch ported from the r200 driver, r200_screen.c rev. 1.8 - 1.12)
adeon_screen.c
e2df3d01afaa6919b82962a087056f517bb94193 28-Feb-2004 Michel Dänzer <michel@daenzer.net> Only print message about disabling HW TCL if the chip supports it in the
first place, and make the message a bit clearer.

+ Remove some extraneous whitespace.
adeon_context.c
04bcaac383cb6d3d5bceb7ecf65ff97c10aa7111 26-Feb-2004 Brian Paul <brian.paul@tungstengraphics.com> added _tnl_allow_vertex/pixel_fog() calls
adeon_context.c
bb1dcb4fadb86ba89eeb2ba5e0ade3ead219ef67 16-Feb-2004 Roland Scheidegger <rscheidegger@gmx.ch> texture env combine refactor (Andreas Stenglein), following the same principles as the refactored code already present in the R200 driver
adeon_texstate.c
f64f940281f0d716e0ddc641e7ef1728f143d67f 11-Feb-2004 Roland Scheidegger <rscheidegger@gmx.ch> change lighting to use MULT instead of PREMULT (i.e. move some lighting color calculations to the GPU)
adeon_state.c
adeon_state_init.c
07d6a983595b7ee52c8448fc579d952ce36472b8 06-Feb-2004 Ian Romanick <idr@us.ibm.com> Refactor "class" texture environments to be implemented in terms of
ARB_texture_env_combine state.
adeon_texstate.c
786e822cd4e4f5fb7a4177f7711683b14d2f2bc9 06-Feb-2004 Roland Scheidegger <rscheidegger@gmx.ch> fix potential problem overwriting dma region
adeon_texmem.c
531b59db3c466aad00bc07ec2863b7dfac57148d 06-Feb-2004 Roland Scheidegger <rscheidegger@gmx.ch> remove bogus check of texture target in RadeonTexParameter
adeon_tex.c
cc5d04574406a86d9a4d7991370359dc3c94f9a7 02-Feb-2004 Felix Kuehling <fxkuehl@gmx.de> Include context.h in radeon_state.c.
adeon_state.c
253428f06a45d59cc50c9ccc4c8d17cd8c02c25d 28-Jan-2004 Ian Romanick <idr@us.ibm.com> Fixed a cut-and-paste bug from the BlendFuncSeparate driver interface
change.
adeon_state.c
43b57728340e70827a114c384192ed319abdb5c6 28-Jan-2004 Keith Whitwell <keith@tungstengraphics.com> Use NEED_SECONDARY_COLOR() for checking specular state at all times
when ctx->_TriangleCaps might be inaccurate (ie while ctx->NewState might
be non-zero).
adeon_lighting.c
adeon_state.c
c93105eb9e2499efb237fd89dba0cebd48f18375 27-Jan-2004 Ian Romanick <idr@us.ibm.com> Added support for EXT_blend_equation_separate / ATI_blend_equation_separate.
The internal driver interface was also changed to use
BlendEquationSeparate instead of BlendEquation.
adeon_state.c
18fa367ac6e035341f5eb86ecc4231124b2921e3 27-Jan-2004 Keith Whitwell <keith@tungstengraphics.com> Consolidate texObj->Pos/Neg/X/Y/Z and texObj->Image into a single
array, texObj->Image[face][level].
adeon_subset_tex.c
adeon_swtcl.c
adeon_texmem.c
adeon_texstate.c
727d345b41c396af419a389808fdaec11aeafc3e 27-Jan-2004 Brian Paul <brian.paul@tungstengraphics.com> remove bogus assertion in DeleteTexture() function
adeon_tex.c
8135a445f3b0ae207ec5e4485b5936050d438320 27-Jan-2004 Felix Kuehling <fxkuehl@gmx.de> Make the drivers using the common texmem code work with NewTextureObject
in Mesa. This is analogous to changes idr made to the r200 driver. Patch
submitted by Andreas Stenglein.
adeon_context.c
adeon_tex.c
83e0cfb8a0bf3a14b6f495060749251cf94719d9 24-Jan-2004 Felix Kuehling <fxkuehl@gmx.de> Parse radeon, not r200 configuration in radeonCreateContext.
adeon_context.c
78bb0803cf722ad5273fc495791eb573bf8b4d21 24-Jan-2004 Michel Dänzer <michel@daenzer.net> Fix hardware ROP state handling (Roland Scheidegger)
adeon_state.c
a2c97eb2ffad0471aae34ab185461774318a57d6 23-Jan-2004 Michel Dänzer <michel@daenzer.net> Call UpdateMaterial() unconditionally on GL_COLOR_MATERIAL state change
(Roland Scheidegger), and update lighting state unconditionally there.
Fixes lighting oddities in the xscreensaver endgame hack, bzflag and
possibly elsewhere.
adeon_state.c
5d00e131d8a264498b8d050c3eded093ee5c42f2 23-Jan-2004 Michel Dänzer <michel@daenzer.net> Fix attenuation hardware state handling, inspired by the R200 DDK reference
driver (our r200 driver basically didn't do this at all, maybe got lost
along the way?)
adeon_context.h
adeon_state.c
adeon_state_init.c
afa446db83ecf5dcb38ce46648fb12911628de32 21-Jan-2004 Ian Romanick <idr@us.ibm.com> Silence some compiler warnings.
adeon_context.c
adeon_context.h
20a17e42d7fc9fe65aabe612fe1e513c3103d121 21-Jan-2004 Ian Romanick <idr@us.ibm.com> Remove dd_function_table::BlendFunc. All drivers now use
dd_function_table:BlendFuncSeparate. If a driver does not actually
support EXT_blend_func_separate, it can assume that the RGB and alpha
blend functions are the same.
adeon_state.c
4e713913fb88bc221eea1a18822cc782ca39af4d 20-Jan-2004 Brian Paul <brian.paul@tungstengraphics.com> Undo some bits from last check-in related to the ctx->Driver.NewTextureObject
functions. Don't allocate the driver-specific data during texture object
creation but do it later as needed (as code originally was).
adeon_tex.c
d3fd7ba8af15bead2f770d68a893449adeb11397 20-Jan-2004 Brian Paul <brian.paul@tungstengraphics.com> Before calling _mesa_create_context(), initialize a dd_function_table struct
by calling _mesa_init_driver_functions() and then plugging in the driver-
specific functions.
In particular, make sure ctx->Driver.NewTextureObject points to the
appropriate driver function so that _all_ texture objects are augmented
with the driver-specific data.
Put in a bunch of assertions in the texture-related driver functions that
texObj->DriverData is valid. Remove old dead code in near future.
akefile.solo
adeon_context.c
adeon_context.h
adeon_tex.c
adeon_tex.h
6bf808bc6c074028b51a98928b4883648c6dac05 19-Jan-2004 Brian Paul <brian.paul@tungstengraphics.com> replace -lm with $(GL_LIB_DEPS) to get -lexpat
akefile.solo
77d240858e83cdaae799ef95188f59b7f2eda464 18-Jan-2004 Brian Paul <brian.paul@tungstengraphics.com> minor changes to silence warnings
adeon_maos_verts.c
6a82d44d9cb25b8ef1e1697adfcfe91a964c221f 18-Jan-2004 Brian Paul <brian.paul@tungstengraphics.com> Change get_ust_nop()'s parameter from int64_t to uint64_t to silence warnings.
adeon_context.c
adeon_ioctl.c
8d83242c8c90846082d15cc3cfe204f4f8a4937d 17-Jan-2004 Michel Dänzer <michel@daenzer.net> Fix cosmetic GL_RENDERER string problem (Andreas Stenglein)
adeon_context.c
e54f2601707a54be8869fb3b0be26503d1c9916e 13-Jan-2004 Ian Romanick <idr@us.ibm.com> Added support for EXT_texture_mirror_clamp.
adeon_context.c
adeon_tex.c
553a8e0e7b0e8ec2f208a582c6e644cd340dba53 12-Jan-2004 Ian Romanick <idr@us.ibm.com> Removed redundant extension strings. The Mesa extension mechanism
automatically enables "duplicate" extensions without the driver
explicitly enabling them.
adeon_context.c
8bc3ce92a2fa1b8b4ae2b928d4102389f2298917 11-Jan-2004 Brian Paul <brian.paul@tungstengraphics.com> call _mesa_delete_texture_object() from in the driver's DeleteTexture function
adeon_tex.c
10095c9024efb1767fb3df0b59672299c090ad10 06-Jan-2004 Eric Anholt <anholt@FreeBSD.org> Add support for Radeon IGP chipsets, based off of mcgrof-radeon-igp-v3.diff

XFree86 bug: 314
adeon_screen.c
790734045b69c47b1525fbf9106a7ca5a8eb7416 05-Jan-2004 Keith Whitwell <keith@tungstengraphics.com> Re-commit t_vertex.[ch] changes to fd.o server.
adeon_swtcl.c
effc73931f86c7961b4eb296d2d4c5d91624a9e3 05-Jan-2004 Felix Kuehling <fxkuehl@gmx.de> Added def_max_anisotropy and no_neg_lod_bias options to radeon and r200.
The def_max_anisotropy option breaks driconf. :( I'm going to upload a
fixed version soon.
adeon_screen.c
adeon_tex.c
22d1acf2ee25280c3294c2cfded232e612ffac2e 04-Jan-2004 Felix Kuehling <fxkuehl@gmx.de> New, less expensive workaround for state-change lockups.
adeon_context.h
adeon_ioctl.c
9741dd6cf40d90cc10357ce06ad9c48dbc0c678c 04-Jan-2004 Felix Kuehling <fxkuehl@gmx.de> Reenable the vtxfmt code paths in the radeon and r200 drivers.
adeon_vtxfmt.c
27889274101df1c2dac05e9979d3b8002663bdc6 28-Dec-2003 Felix Kuehling <fxkuehl@gmx.de> Fix TCL_LIGHT_MODEL_CTL setting in radeonColorMaterial.
adeon_state.c
d450d0b0e228e5b16c04b2a1acb9ea549aa690f2 12-Dec-2003 Brian Paul <brian.paul@tungstengraphics.com> applied Felix's patch for configuration system
adeon_context.c
adeon_screen.c
b8cbca4807d6e477cccedaaf1a8ea0a9fe3a379d 12-Dec-2003 Brian Paul <brian.paul@tungstengraphics.com> new Makefiles
akefile.X11
akefile.solo
013056ac651383579b1395c18ad96bd0dca620dd 12-Dec-2003 Keith Whitwell <keith@tungstengraphics.com> set MaxTextureImageUnits, MaxTextureCoordUnits
adeon_context.c
2dc621f3fdb585f23013aa3e220f2148f9405538 11-Dec-2003 Keith Whitwell <keith@tungstengraphics.com> Updates to tnl_dd_dmatmp.h
- Allocate vertices explicitly, rather than trying to talk
about dma buffers.
- Clean up the various Flush() operations.
- Don't allow fallbacks any longer. Provide a support function
to detect them ahead o ftime
Updates to tnl_dd_vbtmp.h
- Get rid of power-of-two vertex strides. Pack all vertices tightly.
- Get texunit 2,3 emit working coorrectly.
Other stuff:
- Get rid of lingering Ubyte color support.
- Fix a few compiler warnings.
adeon_maos_arrays.c
adeon_maos_verts.c
adeon_swtcl.c
adeon_swtcl.h
2ed479784859e01441eeaffc67e916aa6b863def 10-Dec-2003 Alan Hourihane <alanh@tungstengraphics.com> fix from DRI trunk
adeon_sanity.c
43be8ee414369f2745de0cf936f9767ee31df991 10-Dec-2003 Alan Hourihane <alanh@tungstengraphics.com> fix typo
adeon_maos_verts.c
8592ba94b85b3f0f93ae875eece259b4626a6759 09-Dec-2003 Keith Whitwell <keith@tungstengraphics.com> Fix use of uninited value 'flags', removed unused vars.
adeon_swtcl.c
c4f7de5d785266237fd46ee420d4715771f67dfb 09-Dec-2003 Keith Whitwell <keith@tungstengraphics.com> Fix VERT_SET_RGBA, VERT_SET_SPEC macros to account for change to floating
point colors throughout mesa.
adeon_swtcl.c
e6abd5c415ed391d1d749514abb4135e4432a25e 09-Dec-2003 Keith Whitwell <keith@tungstengraphics.com> No need to call radeonUpdateMaterial() from RunPipeline().
adeon_state.c
73c3c397e4c07b48dcc845add9d80df025e1f0cd 08-Dec-2003 Alan Hourihane <alanh@tungstengraphics.com> fix bogus assertion that checked for an empty texture heap list before
deleting the textures. Essentially move the assertion after the destruction
of the heap.
adeon_context.c
173f9ae031b43ae15d4d1ff1563eefeb83647895 08-Dec-2003 Alan Hourihane <alanh@tungstengraphics.com> add SETPARAM ioctl
erver/radeon_common.h
99ef0a03292e7dc6aa2465aaaa620f394d2c286b 08-Dec-2003 Alan Hourihane <alanh@tungstengraphics.com> merge some more of the radeon DRI driver from the DRI trunk
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_lock.c
adeon_screen.c
adeon_screen.h
adeon_state.c
adeon_state_init.c
d907a75498360fb96ec2314bb0abb105be74d500 05-Dec-2003 Alan Hourihane <alanh@tungstengraphics.com> xmlconfig fixes
adeon_context.c
adeon_context.h
adeon_tex.c
0cbb006942560788b70a9706694f53f3f034e8ee 05-Dec-2003 Alan Hourihane <alanh@tungstengraphics.com> disable some DEBUG
adeon_maos_arrays.c
adeon_maos_verts.c
b97faf113d31b376c8a84d3cfa43b62d3be0dbeb 04-Dec-2003 Alan Hourihane <alanh@tungstengraphics.com> build fixes
adeon_vtxfmt_sse.c
7939ed0e8e36ddea89cbc4076a05dd2502499a2a 25-Nov-2003 Brian Paul <brian.paul@tungstengraphics.com> Otto Solares' patch to add radeon 9200
erver/radeon.h
erver/radeon_dri.c
57c9814b9e87924696df4c741861c29d4236d1eb 24-Nov-2003 Keith Whitwell <keith@tungstengraphics.com> Import vtx-0-2-branch
akefile.X11
adeon_context.c
adeon_context.h
adeon_maos_vbtmp.h
adeon_maos_verts.c
adeon_state.c
adeon_swtcl.c
adeon_tcl.c
adeon_vtxfmt.c
adeon_vtxfmt_c.c
bcc6eddd335e97d49ed2ef3a1440f94d58dce12d 21-Oct-2003 Jon Smirl <jonsmirl@gmail.com> Update DRI drivers to current DRI CVS and make them work.
akefile.X11
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_lock.c
adeon_maos.h
adeon_maos_arrays.c
adeon_maos_verts.c
adeon_sanity.c
adeon_screen.c
adeon_screen.h
adeon_state_init.c
adeon_swtcl.c
adeon_tcl.h
adeon_texmem.c
adeon_texstate.c
adeon_vtxfmt.c
adeon_vtxfmt.h
adeon_vtxfmt_c.c
adeon_vtxfmt_sse.c
adeon_vtxfmt_x86.c
erver/radeon.h
erver/radeon_common.h
erver/radeon_dri.c
erver/radeon_dri.h
erver/radeon_reg.h
erver/radeon_sarea.h
3e4a50f0d28f90791f1c2eec2ece660c53dd4845 20-Oct-2003 Jon Smirl <jonsmirl@gmail.com> Fix Makefiles to copy lib to $(TOP)/lib if missing
akefile.X11
a3a10e6dfc4eadcb8a11b884decdeee607dcf535 23-Aug-2003 Jon Smirl <jonsmirl@gmail.com> Add missing assembly file from radeon build
adeon_vtxtmp_x86.S
5df82c82bd53db90eb72c5aad4dd20cf6f1116b1 22-Aug-2003 Brian Paul <brian.paul@tungstengraphics.com> patch to import Jon Smirl's work from Bitkeeper
akefile.X11
adeon_compat.c
adeon_context.c
adeon_context.h
adeon_ioctl.c
adeon_ioctl.h
adeon_lighting.c
adeon_lock.c
adeon_lock.h
adeon_maos.c
adeon_maos.h
adeon_maos_arrays.c
adeon_maos_vbtmp.h
adeon_maos_verts.c
adeon_sanity.c
adeon_sanity.h
adeon_screen.c
adeon_screen.h
adeon_span.c
adeon_span.h
adeon_state.c
adeon_state.h
adeon_state_init.c
adeon_subset.h
adeon_subset_bitmap.c
adeon_subset_readpix.c
adeon_subset_select.c
adeon_subset_tex.c
adeon_subset_vtx.c
adeon_swtcl.c
adeon_swtcl.h
adeon_tcl.c
adeon_tcl.h
adeon_tex.c
adeon_tex.h
adeon_texmem.c
adeon_texstate.c
adeon_vtxfmt.c
adeon_vtxfmt.h
adeon_vtxfmt_c.c
adeon_vtxfmt_sse.c
adeon_vtxfmt_x86.c
erver/radeon_common.h
erver/radeon_dri.c
erver/radeon_reg.h
erver/radeon_sarea.h
b93652d67ed976562edc121b319b0594f79cc00a 06-Aug-2003 Keith Whitwell <keith@tungstengraphics.com> Shared radeon/r200 init code
erver/radeon.h
erver/radeon_common.h
erver/radeon_dri.c
erver/radeon_dri.h
erver/radeon_macros.h
erver/radeon_reg.h
erver/radeon_sarea.h