History log of /external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2a2dc416b6816ac8914c5f45ac80545d2c09246f 24-Aug-2016 Brian Paul <brianp@vmware.com> swrast: fix incorrectly positioned putImage() in swrast driver

Some front buffer rendering was in the wrong position. This included
scissored clears, glDrawPixels and glCopyPixels. The problem was the
y coordinate passed to putImage() didn't match the y coordinate passed
to getImage().

We fix this by setting xrb->map_y to the inverted coordinate in
swrast_map_renderbuffer() which is used later by the putImage() call.
Also pass xrb->map_y to getImage() to be symmetric.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97426
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
528390021fdda0d8b39a50762003af743a22ff9f 20-Aug-2016 Ilia Mirkin <imirkin@alum.mit.edu> dri: add a way to request that modes have matching color/zs depths

Some GPUs, notably nv3x/nv4x can't render to mismatched color/zs
framebuffer depths. Fallbacks can be done by the driver, with shadow
surfaces, but no reason to encourage applications to select non-matching
glx visuals.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
31cd2d75dc3844e40143f649fe383de17c152a13 16-May-2015 Alan Coopersmith <alan.coopersmith@oracle.com> swrast: Build fix for Solaris

Fixes regression from commit 5b2d3480f57168d50ad24cf0b8c9244414bd3701

Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
13fa84e1bcf1e07c69bb678508f8cdb0912b57c5 01-May-2015 Axel Davy <axel.davy@ens.fr> egl/swrast: Enable config extension for swrast

Enables to use dri config for swrast, like vblank_mode.

Reviewed-by: Dave Airlie <airlied@redhat.com>

Signed-off-by: Axel Davy <axel.davy@ens.fr>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
5b2d3480f57168d50ad24cf0b8c9244414bd3701 02-Jan-2015 Jeremy Huddleston Sequoia <jeremyhu@apple.com> swrast: Build fix for darwin

Fixes regression from commit 64b1dc44495890cbc2c7c5509cb830264020998c

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90147
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
CC: Emil Velikov <emil.l.velikov@gmail.com>
CC: jon.turney@dronecode.org.uk
CC: ionic@macports.org
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
d02942cc779f97b499c80879db60aa469f651b49 07-Apr-2015 Marius Predut <marius.predut@intel.com> swrast: replace __FUNCTION__ with __func__

Consistently just use C99's __func__ everywhere.
The patch was verified with Microsoft Visual studio 2013
redistributable package(RTM version number: 18.0.21005.1)
Next MSVC versions intends to support __func__.
No functional changes.

Acked-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Marius Predut <marius.predut@intel.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
2655afc7e68a0c7dacbd7cf653f11105790b50a6 05-Mar-2015 Brian Paul <brianp@vmware.com> swrast: include stdio.h where needed

Acked-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
0dc6b7245534ebe44470133945cbb747b92cf073 26-Feb-2015 Brian Paul <brianp@vmware.com> swrast: replace INLINE with inline

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
bfcdb843830bba0190e00e35e3c5c18c4bdb5de1 21-Feb-2015 Matt Turner <mattst88@gmail.com> mesa: Use assert() instead of ASSERT wrapper.

Acked-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
d7528fce5abed95668ff97c46e68c94a08bbe30c 04-Dec-2014 Laura Ekstrand <laura@jlekstrand.net> main: Moved _mesa_lock_texture and _mesa_unlock_texture to texobj.h from teximage.h.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
61711316f50294959e48156229f1383002e1cdb8 02-Jan-2015 Jeremy Huddleston Sequoia <jeremyhu@apple.com> swrast: Fix -Wduplicate-decl-specifier warning

swrast.c:67:12: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const char const *swrast_vendor_string = "Mesa Project";
^
swrast.c:68:12: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const char const *swrast_renderer_string = "Software Rasterizer";
^

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
26ee6f23a9aec6b1f392baa0e3f1f2c62c038a57 15-Sep-2014 Kenneth Graunke <kenneth@whitecape.org> mesa: Delete VAO _MaxElement code and index buffer bounds checking.

Fredrik's implementation of ARB_vertex_attrib_binding introduced new
gl_vertex_attrib_array and gl_vertex_buffer_binding structures, and
converted Mesa's older gl_client_array to be derived state. Ultimately,
we'd like to drop gl_client_array and use those structures directly.

One hitch is that gl_client_array::_MaxElement doesn't correspond to
either structure (unlike every other field), so we'd have to figure out
where to store it. The _MaxElement computation uses values from both
structures, so it doesn't really belong in either place. We could put
it in the VAO, but we'd have to pass it around everywhere.

It turns out that it's only used when ctx->Const.CheckArrayBounds is
set, which is only set by the (rarely used) classic swrast driver.
It appears that drivers/x11 used to set it as well, which was intended
to avoid segmentation faults on out-of-bounds memory access in the X
server (probably for indirect GLX clients). However, ajax deleted that
code in 2010 (commit 1ccef926be46dce3b6b5c76e812e2fae4e205ce7).

The bounds checking apparently doesn't actually work, either. Non-VBO
attributes arbitrarily set _MaxElement to 2 * 1000 * 1000 * 1000.
vbo_save_draw and vbo_exec_draw remark /* ??? */ when setting it, and
the i965 code contains a comment noting that _MaxElement is often bogus.

Given that the code is complex, rarely used, and dubiously functional,
it doesn't seem worth maintaining going forward. This patch drops it.

This will probably mean the classic swrast driver may begin crashing on
out of bounds vertex buffer access in some cases, but I believe that is
allowed by OpenGL (and probably happened for non-VBO accesses anyway).
There do not appear to be any Piglit regressions, either.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Roland Scheidegger <sroland@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
64b1dc44495890cbc2c7c5509cb830264020998c 15-Feb-2014 Emil Velikov <emil.l.velikov@gmail.com> dri/swrast: add GLX_MESA_query_renderer support

v2:
- Drop __DRI2_RENDERER_PREFERRED_PROFILE case.
- Cleanup return statements.

Cc: Brian Paul <brianp@vmware.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
38f20f79da4212c86d0869951f533d66a5ef907e 12-Feb-2014 Emil Velikov <emil.l.velikov@gmail.com> drivers/dri: cleanup dri extension instantiation

Uniformly use the typecasted extension name, constify extension instances
and use designated initialisers. Set the implemented version of the
extension, over the one defined in dri_infertace.h. Patch covers the
following extensions:

__DRItexBufferExtension
__DRIimageExtension
__DRIrobustnessExtension
__DRI2rendererQueryExtension
__DRIdri2LoaderExtension

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
d5df28381efe758ceebe6a6bb226763e5d527ec3 27-Jan-2014 Brian Paul <brianp@vmware.com> swrast: use _mesa_get_current_tex_object() in swrastSetTexBuffer2()

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
eeed49f5f290793870c60b5b635b977a732a1eb4 27-Jan-2014 Mark Mueller <MarkKMueller@gmail.com> mesa: Change many Type P MESA_FORMATs to meet naming spec

Conversion of Type P formats as follows (w/related comment fixes):
s/MESA_FORMAT_RGB565\b/MESA_FORMAT_B5G6R5_UNORM/g
s/MESA_FORMAT_RGB565_REV\b/MESA_FORMAT_R5G6B5_UNORM/g
s/MESA_FORMAT_ARGB4444\b/MESA_FORMAT_B4G4R4A4_UNORM/g
s/MESA_FORMAT_ARGB4444_REV\b/MESA_FORMAT_A4R4G4B4_UNORM/g
s/MESA_FORMAT_RGBA5551\b/MESA_FORMAT_A1B5G5R5_UNORM/g
s/MESA_FORMAT_XBGR8888_SNORM\b/MESA_FORMAT_R8G8B8X8_SNORM/g
s/MESA_FORMAT_XBGR8888_SRGB\b/MESA_FORMAT_R8G8B8X8_SRGB/g
s/MESA_FORMAT_ARGB1555\b/MESA_FORMAT_B5G5R5A1_UNORM/g
s/MESA_FORMAT_ARGB1555_REV\b/MESA_FORMAT_A1R5G5B5_UNORM/g
s/MESA_FORMAT_AL44\b/MESA_FORMAT_L4A4_UNORM/g
s/MESA_FORMAT_RGB332\b/MESA_FORMAT_B2G3R3_UNORM/g
s/MESA_FORMAT_ARGB2101010\b/MESA_FORMAT_B10G10R10A2_UNORM/g
s/MESA_FORMAT_Z24_S8\b/MESA_FORMAT_S8_UINT_Z24_UNORM/g
s/MESA_FORMAT_S8_Z24\b/MESA_FORMAT_Z24_UNORM_S8_UINT/g
s/MESA_FORMAT_X8_Z24\b/MESA_FORMAT_Z24_UNORM_X8_UINT/g
s/MESA_FORMAT_Z24_X8\b/MESA_FORMAT_X8Z24_UNORM/g
s/MESA_FORMAT_RGB9_E5_FLOAT\b/MESA_FORMAT_R9G9B9E5_FLOAT/g
s/MESA_FORMAT_R11_G11_B10_FLOAT\b/MESA_FORMAT_R11G11B10_FLOAT/g
s/MESA_FORMAT_Z32_FLOAT_X24S8\b/MESA_FORMAT_Z32_FLOAT_S8X24_UINT/g
s/MESA_FORMAT_ABGR2101010_UINT\b/MESA_FORMAT_R10G10B10A2_UINT/g
s/MESA_FORMAT_XRGB4444_UNORM\b/MESA_FORMAT_B4G4R4X4_UNORM/g
s/MESA_FORMAT_XRGB1555_UNORM\b/MESA_FORMAT_B5G5R5X1_UNORM/g
s/MESA_FORMAT_XRGB2101010_UNORM\b/MESA_FORMAT_B10G10R10X2_UNORM/g
s/MESA_FORMAT_AL88\b/MESA_FORMAT_L8A8_UNORM/g
s/MESA_FORMAT_AL88_REV\b/MESA_FORMAT_A8L8_UNORM/g
s/MESA_FORMAT_AL1616\b/MESA_FORMAT_L16A16_UNORM/g
s/MESA_FORMAT_AL1616_REV\b/MESA_FORMAT_A16L16_UNORM/g
s/MESA_FORMAT_RG88\b/MESA_FORMAT_G8R8_UNORM/g
s/MESA_FORMAT_GR88\b/MESA_FORMAT_R8G8_UNORM/g
s/MESA_FORMAT_GR1616\b/MESA_FORMAT_R16G16_UNORM/g
s/MESA_FORMAT_RG1616\b/MESA_FORMAT_G16R16_UNORM/g
s/MESA_FORMAT_SRGBA8\b/MESA_FORMAT_A8B8G8R8_SRGB/g
s/MESA_FORMAT_SARGB8\b/MESA_FORMAT_B8G8R8A8_SRGB/g
s/MESA_FORMAT_SLA8\b/MESA_FORMAT_L8A8_SRGB/g

Conflicts:
src/mesa/drivers/dri/i965/brw_surface_formats.c
src/mesa/main/format_pack.c
src/mesa/main/format_unpack.c
src/mesa/main/formats.c
src/mesa/main/texformat.c
src/mesa/main/texstore.c
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
ef145ba4ded6aafb28e3bda02fb348e6b8bff12a 20-Jan-2014 Mark Mueller <MarkKMueller@gmail.com> mesa: Rename 4 color component unsigned byte MESA_FORMATs

Change all 4 color component unsigned byte formats to meet spec for P
Type formats:
s/MESA_FORMAT_RGBA8888\b/MESA_FORMAT_A8B8G8R8_UNORM/g
s/MESA_FORMAT_RGBA8888_REV\b/MESA_FORMAT_R8G8B8A8_UNORM/g
s/MESA_FORMAT_ARGB8888\b/MESA_FORMAT_B8G8R8A8_UNORM/g
s/MESA_FORMAT_ARGB8888_REV\b/MESA_FORMAT_A8R8G8B8_UNORM/g
s/MESA_FORMAT_RGBX8888\b/MESA_FORMAT_X8B8G8R8_UNORM/g
s/MESA_FORMAT_RGBX8888_REV\b/MESA_FORMAT_R8G8B8X8_UNORM/g
s/MESA_FORMAT_XRGB8888\b/MESA_FORMAT_B8G8R8X8_UNORM/g
s/MESA_FORMAT_XRGB8888_REV\b/MESA_FORMAT_X8R8G8B8_UNORM/g
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
71fe9437169cfdafda8814aa814bb85429fb6cfc 04-Jan-2014 Mark Mueller <MarkKMueller@gmail.com> mesa: change gl_format to mesa_format

s/\bgl_format\b/mesa_format/g. Use better name for Mesa Formats enum
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
065bd6ffc23c9cfef9b10418fb06233a912d6471 05-Nov-2013 Ian Romanick <ian.d.romanick@intel.com> mesa: Eliminate parameters to dd_function_table::Viewport

No driver uses them. They will just be annoying in future patches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
188630dc13b52ce9c64166da9a9df6a644b1599c 14-Dec-2013 Brian Paul <brianp@vmware.com> swrast: silence driContextSetFlags() parameter type warning
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
38366c0c6e715314367b15680702e382d5c46a4a 08-Dec-2013 Kristian Høgsberg <krh@bitplanet.net> dri_util: Don't assume __DRIcontext->driverPrivate is a gl_context

The driverPrivate pointer is opaque to the driver and we can't assume
it's a struct gl_context in dri_util.c. Instead provide a helper function
to set the struct gl_context flags from the incoming DRI context flags.

v2 (idr): Modify the other classic drivers to also use
driContextSetFlags. I ran all the piglit GLX_ARB_create_context tests
with i965 and classic swrast without regressions.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> [v1]
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Ilia Mirkin <imirkin@alum.mit.edu> [v1 on Gallium nouveau]
Cc: "10.0" <mesa-stable@lists.freedesktop.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
ba00f2f6f54cbc5ffdb0f0b94bcd672d147cdc36 28-Nov-2013 Dave Airlie <airlied@gmail.com> swrast* (gallium, classic): add MESA_copy_sub_buffer support (v3)

This patches add MESA_copy_sub_buffer support to the dri sw loader and
then to gallium state tracker, llvmpipe, softpipe and other bits.

It reuses the dri1 driver extension interface, and it updates the swrast
loader interface for a new putimage which can take a stride.

I've tested this with gnome-shell with a cogl hacked to reenable sub copies
for llvmpipe and the one piglit test.

I could probably split this patch up as well.

v2: pass a pipe_box, to reduce the entrypoints, as per Jose's review,
add to p_screen doc comments.

v3: finish off winsys interfaces, add swrast classic support as well.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

swrast: add support for copy_sub_buffer
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
0b16042377a6981ff9bba92387889524a3547b3f 05-Dec-2013 Dave Airlie <airlied@redhat.com> swrast: fix readback regression since inversion fix

This readback from the frontbuffer with swrast was broken, that bug
just made it more obviously broken, this fixes it by inverting the
sub image gets. Also fixes a few other piglits.

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

(for 9.2 the patches this depends on were asked to be backported separately
in an email).
Cc: "9.2" "10.0" mesa-stable@lists.fedoraproject.org
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
a43b49dfb13dc7e6d2d6d7ceee892077038d7102 12-Nov-2013 Dave Airlie <airlied@redhat.com> mesa/swrast: fix inverted front buffer rendering with old-school swrast

I've no idea when this broke, but we have some people who wanted it fixed,
so here's my attempt.

reproducer, run readpix with swrast hit f, or run trival tri -sb things are
upside down, after this patch they aren't.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=62142
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66213

Cc: <mesa-stable@lists.freedesktop.org>"
Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
f41c01c68847a2d3df8f3c8786ef803428a0be13 08-Nov-2013 Brian Paul <brianp@vmware.com> swrast: add missing notify_reset parameter to dri_create_context()

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
bdcee13ca374e4dd72c46951cb137b4f60a6303f 28-Sep-2013 Eric Anholt <eric@anholt.net> swrast: Build the driver into the shared mesa_dri_drivers.so.

v2: drop dridir now that it's unused.
v3: Fix linking after rebase when building just swrast from classic but a
drm-using gallium driver.
v4: Consistently put spaces around += in the updated Makefile.am block.
v5: Set a global driverAPI variable so loaders don't have to update to
createNewScreen2() (though they may want to for thread safety).

Reviewed-by: Matt Turner <mattst88@gmail.com> (v3)
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
083f66fdd6451648fe355b64b02b29a6a4389f0d 26-Sep-2013 Eric Anholt <eric@anholt.net> dri: Move API version validation into dri/common.

i965, i915, radeon, r200, swrast, and nouveau were mostly trying to do the
same logic, except where they failed to. Notably, swrast had code that
appeared to try to enable GLES1/2 but forgot to set api_mask (thus
preventing any gles context from being created), and the non-intel drivers
didn't support MESA_GL_VERSION_OVERRIDE.

nouveau still relies on _mesa_compute_version(), because I don't know what
its limits actually are, and gallium drivers don't declare limits up front
at all. I think I've heard talk about doing so, though.

v2: Compat max version should be 30 (noted by Ken)
Drop r100's custom max version check, too (noted by Emil Velikov)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
45099ec1755f1420b134612edfea2df4297d683f 28-Jun-2013 Ian Romanick <ian.d.romanick@intel.com> swrast: Don't call _mesa_enable_._._extensions and _mesa_enable_sw_extensions

_mesa_enable_sw_extensions enables all the extensions (and more) that
the others enable.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
bab755ad1b8cc5560c7d92e21b1fb1c3bebd43ae 20-Jun-2013 Eric Anholt <eric@anholt.net> mesa: Remove Driver.GetBufferSize and its callers.

Only the GDI driver set it to non-NULL any more, and that driver has a
Viewport hook that should keep it limping along as well as it ever has.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
3d8d5b298a268b119d840bc9bae0ee9e0c9244a9 21-Apr-2013 Kenneth Graunke <kenneth@whitecape.org> mesa: Restore 78-column wrapping of license text in C-style comments.

The previous commit introduced extra words, breaking the formatting.

This text transformation was done automatically via the following shell
command:
$ git grep 'THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY' | sed 's/:.*$//' | xargs -I {} sh -c 'vim -e -s {} < vimscript

where 'vimscript' is a file containing:
/THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY/;/\*\// !fmt -w 78 -p ' * '
:wq

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
96ff2edc73ccf11d4d198ba3665507f73ae4a9f7 21-Apr-2013 Kenneth Graunke <kenneth@whitecape.org> mesa: Add "OR COPYRIGHT HOLDERS" to license text disclaiming liability.

This brings the license text in line with the MIT License as published
on the Open Source Initiative website:

http://opensource.org/licenses/mit-license.php

Generated automatically be the following shell command:
$ git grep 'THE AUTHORS BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \
sed -i 's/THE AUTHORS/THE AUTHORS OR COPYRIGHT HOLDERS/' {}

This introduces some wrapping issues, to be fixed in the next commit.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
dd404bc94f78a1766527becee03f8ef6ae3a799b 21-Apr-2013 Kenneth Graunke <kenneth@whitecape.org> mesa: Change "BRIAN PAUL" to "THE AUTHORS" in license text.

Generated automatically be the following shell command:
$ git grep 'BRIAN PAUL BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \
sed -i 's/BRIAN PAUL/THE AUTHORS/' {}

The intention here is to protect all authors, not just Brian Paul. I
believe that was already the sensible interpretation, but spelling it
out is probably better.

More practically, it also prevents people from accidentally copy &
pasting the license into a new file which says Brian is not liable when
he isn't even one of the authors.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
985e710c0d1f4f3bbd18448f04e611bd57ae9100 01-Feb-2013 Vinson Lee <vlee@freedesktop.org> swrast: Fix memory leak.

Fixes resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
be4b1664fbc98b0b1d66bb91850ecada52b36b91 18-Jan-2013 Eric Anholt <eric@anholt.net> mesa: Make the drivers call a non-code-generated dispatch table setup.

I want to drive the Save dispatch table setup from this same function.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
4bea4cb9fd55cdb267003a6e6e16f7e903e00940 16-Nov-2012 Jordan Justen <jordan.l.justen@intel.com> drivers: compute version and then initialize exec table

This change forces the context version to be computed before
initilizing the exec dispatch tables.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
c73245882c7ff1277b190b97f093f7b423a22f10 30-Nov-2012 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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
dbd6135bc1ba285128ab991c03c4df6fbd6fefe8 27-Nov-2012 Paul Berry <stereotype441@gmail.com> mesa: Rename API_OPENGL to API_OPENGL_COMPAT.

This should help avoid confusion now that we're using the gl_api enum
to distinguishing between core and compatibility API's. The
corresponding enum value for core API's is API_OPENGL_CORE.

Acked-by: Eric Anholt <eric@anholt.net>
Acked-by: Matt Turner <mattst88@gmail.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
3ec3201f31f6f26029aca66d1967512c8c159245 30-Oct-2012 Ian Romanick <ian.d.romanick@intel.com> swrast: swrastFillInModes doesn't do 8-bit modes, so don't try

Support for 8-bit modes was removed in commits 0398a26 and bda208a4.
However, I didn't notice code in dri_init_screen that explicitly tries
to create this modes. This is structurally different from other drivers
(that only create modes that match the display color depth).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56555
Cc: Vinson Lee <vlee@freedesktop.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
f5543d6eb29bbd9aadf37055a20992d11f0263e2 28-Oct-2012 Marek Olšák <maraeo@gmail.com> mesa: remove IBM_multimode_draw_arrays extension enable flag

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
cf9acc3833ef3848c5d37a1e9b06285eec8a9dd6 28-Oct-2012 Marek Olšák <maraeo@gmail.com> mesa: remove EXT_compiled_vertex_array extension enable flag

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
1301f91b31b4df7124eaee24fc65501da1dcb5d2 28-Oct-2012 Marek Olšák <maraeo@gmail.com> mesa: remove ARB_window_pos extension enable flag

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
d012e6d8fe2f4f1139af9e47a684960e8cde103e 28-Oct-2012 Marek Olšák <maraeo@gmail.com> mesa: remove ARB_transpose_matrix extension enable flag

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
1f6e10f67b0fce811eb91abfbdb3e9c6ed0035a3 12-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> dri: Convert driCreateConfigs to use a gl_format enum

This is instead of the pair of GLenums for format and type that were
previously used. This is necessary for the Intel drivers to expose sRGB
framebuffer formats.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
0398a26097993bbbcc2f418363da00edad5ab5cf 12-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> swrast: Remove the 2_3_3_REV framebuffer format

There is no gl_format in Mesa that corresponds to this arrangement, so I
have a very hard time believing that this works.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
cff1b1df4b7046359b9bf1c4072a241e8ecf1947 10-Oct-2012 Eric Anholt <eric@anholt.net> swrast: Remove support for GL_NV_vertex_program.

It's not supported in any hardware drivers, and doesn't appear to be useful on
Linux.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
733dba2a08765dddc478a015439ea2a684d5f2a0 29-Sep-2012 Brian Paul <brianp@vmware.com> mesa: remove the driverCtx parameter to _mesa_create/initialize_context()

No longer used.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
fe72a069d1fcce943f315907b4744b63158938b1 01-Sep-2012 Brian Paul <brianp@vmware.com> mesa: s/FREE/free/

v2: replace instances in dri/common/ dirs

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
8472bb4508515cf0f717344ef5cc863b6e97e56a 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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
ecac178aa2591afc36e5d34d11a773ff07cb71b1 08-Aug-2012 Brian Paul <brianp@vmware.com> swrast: add missing switch case for API_OPENGL_CORE

To silence compiler warning.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
df22829b9c984a826a0b2e39dd6badac2029996d 20-Feb-2012 Brian Paul <brianp@vmware.com> dri/swrast: use SWRAST_MAX_WIDTH/HEIGHT
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
becbb643135ddccac5054bf138ca0cc7cc3fff15 16-Jan-2012 Brian Paul <brianp@vmware.com> dri/swrast: use swrast_renderbuffer type
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
1048d55d5fa60d17dd99ac7394ff0572500625f9 16-Jan-2012 Brian Paul <brianp@vmware.com> dri/swrast: rename swrast_renderbuffer to dri_swrast_renderbuffer

To prevent name collision with future swrast_renderbuffer in the swrast
module.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
7a36345f70a0b8ac2d480bb52eb2c74c2be5a978 16-Jan-2012 Brian Paul <brianp@vmware.com> mesa: rename gl_renderbuffer::Data to Buffer

To better indicate that this pointer to the malloc'd memory.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
f9874feef4d8952df5054bd8e8f4e0deda4ef44f 16-Jan-2012 Brian Paul <brianp@vmware.com> mesa: remove gl_renderbuffer::DataType
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
1e1b5cb01a10e39d01923e3c7e989c44210950cd 16-Jan-2012 Brian Paul <brianp@vmware.com> mesa: remove gl_renderbuffer:RowStride field
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
cb5fa9ea624574909bf57f9e1ad190a440d59dc2 16-Jan-2012 Brian Paul <brianp@vmware.com> dri/swrast: remove obsolete GetRow/PutRow code
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
d0dc75c000d5af92648c7de901756400672b8447 06-Dec-2011 Brian Paul <brianp@vmware.com> mesa/drivers: use new swrast renderbuffer functions

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
a4c952f36f0c6b55f1410bc678b21f75de253a74 01-Dec-2011 Mathias Fröhlich <Mathias.Froehlich@web.de> swrast: Fix signed/unsigned problems with negative strides.

In swrast_map_renderbuffer negative strides lead to
render buffer map pointers that are off by 2^32.
Make sure that intermediate negative values are not
converted to an unsigned.

Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
76d1275474d7b5ac2f0edf5856ae1c5fc234f0d9 13-Oct-2011 Eric Anholt <eric@anholt.net> Add MapRenderbuffer implementations for software drivers.

Mesa core's is generic for things like osmesa.

For swrast_dri.so, we have to do Y flipping. The front-buffer path
isn't actually tested, though, because both before and after it fails
with a BadMatch in XGetImage.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
763b00f2c596e167299e81684763b52422956dfc 03-Oct-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove ARB_draw_buffers extension enable flag

All drivers in Mesa have supported this extension for eons. This
extension is an optional features in desktop OpenGL (via
GL_ARB_draw_buffers) and OpenGL ES 2.x (via GL_NV_draw_buffers).

The extension is not usable in OpenGL ES 1.x. There is no
glDrawBuffers* entry point in OpenGL ES 1.x contexts, and glGet*v
generate errors when MAX_DRAW_BUFFERS or DRAW_BUFFERi is queried.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
34eae1c72a9b3a8eb0634cda52fca0208cd2f40d 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove many extension enable flags

The following extensions are always enabled, and drivers do not have
to option to disable them:

GL_ARB_multisample
GL_ARB_texture_compression
GL_ARB_vertex_buffer_object / GL_OES_mapbuffer
GL_EXT_copy_texture
GL_EXT_multi_draw_arrays / GL_SUN_multi_draw_arrays
GL_EXT_polygon_offset
GL_EXT_subtexture
GL_EXT_texture_edge_clamp / GL_SGIS_texture_edge_clamp
GL_EXT_vertex_array
GL_SGIS_generate_mipmap

This set was picked because the are all either required or optional
features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. The
existing support for some is already partially broken in Mesa (e.g.,
proxy texture targets in OpenGL ES). This patch does not change the
situation in any way.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
5a175127f38aa02d2b8169b1b6d08a2d4be3d36f 23-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> dri: Remove all extension enabling utility functions

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
67d906349261d4491fb9b5267404456369c72c0f 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> swrast-dri: Remove call to driInitExtensions

The only purpose this call served in the DRI swrast driver was to
initialize the remap table. 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.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
2d4b8e296f7f60e704bfcdec79c86cc1c013d7b9 26-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> swrast-dri: Silence several "warning: unused parameter"
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
42e7a13e7bc9def0bcdede2d3a34dad1718e105c 25-Jun-2011 Brian Paul <brianp@vmware.com> Revert "Fix 24bpp software rendering"

This reverts commit c0c0bb6cb140825f5bab3c40c0c9c0ec575fbc76.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
c0c0bb6cb140825f5bab3c40c0c9c0ec575fbc76 24-Jun-2011 Marc Pignat <marc@pignat.org> Fix 24bpp software rendering

This patch add the support for 24bpp in the dri/swrast implementation.

Signed-off-by: Marc Pignat <marc@pignat.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
5e4ca1ccc9029fd75bb7676dc128e33d12da9665 09-Feb-2011 Brian Paul <brianp@vmware.com> mesa: remove _mesa_initialize_context_for_api()

Just add the gl_api parameter to _mesa_initialize_context().
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
b43a147128a1144a5fe4afcda412ccaba0c0793b 30-Jan-2011 Haitao Feng <haitao.feng@intel.com> swrast: add an interface createNewContextForAPI

This new interface could set up context for OpenGL,
OpenGL ES1 and OpenGL ES2. It will be used by egl_dri2
driver.

Signed-off-by: Haitao Feng <haitao.feng@intel.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
b59f3dd8ca012a9427d13a051eef8cfd76af1467 21-Nov-2010 Vinson Lee <vlee@vmware.com> swrast: Remove unnecessary header.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
31aca27c08d6a385c595d34fe4ee06390bf5b0e8 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLframebuffer typedef and just use struct gl_framebuffer
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
d3491e775fb07f891463b2185d74bbad62f3ed24 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Rename GLvisual and __GLcontextModes to struct gl_config
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
88008dfaa4838de893af9844863bad8da96ce9c8 03-Jun-2010 Vinson Lee <vlee@vmware.com> dri/swrast: Remove unnecessary header.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
8d789be03430b80e0ba2fef19d56dd0b8e699ea2 23-May-2010 Dave Airlie <airlied@redhat.com> swrast: add TFP support to swrast.

This adds TFP support to the swrast driver, with this I can run gnome-shell inside Xephyr slowly. I've no idea why I did it, and g-s has other rendering issues under swrast, but it might be useful to hook up llvmpipe later. I've no idea if I even want to commit it at this point.

An enhanced version might just pass the pointer in the indirect rendering case
and avoid the memcpy.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
9ab3df4ebbcb5fe7a65e6cf05b3a6671392ba929 03-May-2010 Kristian Høgsberg <krh@bitplanet.net> driswrast: Fix more context creation breakage

Pointed out by Colin Harrison.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
8c456775887e192dd7464b94295f4410045c7c07 16-Apr-2010 Vinson Lee <vlee@vmware.com> drisw: Move pointer dereferences to after NULL checks.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
3bfa23317c6b1b52ec637a03a0b623228ffc95ef 27-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drisw: add comment to libGL about stride
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
f4e561ce127cf484d7c76c29b8cd026c9ad5cebc 27-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drisw: make stride issue profound
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
e60693efda7826bf26ffb9993c6dfba3b8c8a812 14-Mar-2010 George Sapountzis <gsapountzis@gmail.com> dri/swrast: update copyright email
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
c1bde793598bcb5d5f8744c290a66ea6586eb29f 14-Mar-2010 George Sapountzis <gsapountzis@gmail.com> dri/swrast: port to dri_sw (drawable)
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
cf8a1caa231b748d3ba7c776ab076ad3de99e963 14-Mar-2010 George Sapountzis <gsapountzis@gmail.com> dri/swrast: port to dri_sw (context)
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
6e376485c10896229f7bfaf5b0cce9c8b67f61b1 14-Mar-2010 George Sapountzis <gsapountzis@gmail.com> dri/swrast: port to dri_sw
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
718ff7e87bf9b86517e88270cc984e364ace9506 25-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> DRI/swrast: Remove color-index support from DRI swrast driver

It appears that color-index rendering wasn't actually supported
anyway. swrastFillInModes did not previously create an color-index
configs, so it doesn't seem like there would be any way to get a
color-index visual.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
32f2fd1c5d6088692551c80352b7d6fa35b0cd09 19-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versions
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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
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>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
8130375e775bd5ba6a47412b0ea8ec9f23dc5972 26-Sep-2009 Ian Romanick <ian.d.romanick@intel.com> Merge branch 'asm-shader-rework-2'

Conflicts:
src/mesa/shader/program_parse.tab.c
4a4914e4146b78e99277ab494226136a4e68cdb4 21-Sep-2009 Brian Paul <brianp@vmware.com> dri/swrast: call _mesa_meta_init/free()
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
b8e1e8d2d8ae6ffbf8f271b46ee89788a926b3b0 11-Sep-2009 Ian Romanick <ian.d.romanick@intel.com> Merge branch 'master' into asm-shader-rework-2

Conflicts:
src/mesa/shader/lex.yy.c
src/mesa/shader/program_parse.tab.c
src/mesa/shader/program_parse.tab.h
92d7ed8a20d4a018ce5324e6537ae7b478b9e5bf 27-Aug-2009 Eric Anholt <eric@anholt.net> mesa: Add support for ARB_draw_elements_base_vertex.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
b11a8ea863612827fe04b636f1c2eae9e1536fbd 08-Sep-2009 Eric Anholt <eric@anholt.net> mesa: Expose NV_depth_clamp if ARB_depth_clamp is supported.

The wording of these two is exactly the same, except for the issue
"Can fragments with wc<=0 be generated when this extension is supported?",
which idr thinks is a non-issue for us.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
b4922b533155cc139ebafb111502bb55d2ad2ccf 26-Aug-2009 Eric Anholt <eric@anholt.net> mesa: Add support for ARB_depth_clamp.

This currently doesn't include fixing up the cliptests in the assembly
paths to support ARB_depth_clamp, so enabling depth_clamp forces the C path.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
5db8ebb8f534907614247afaf1dd8621b2d0462e 03-Sep-2009 Ian Romanick <ian.d.romanick@intel.com> Enable GL_NV_fragment_program_option for software rendering

At this point the extension is not fully implemented.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
aee282faa74ea862064b91d847ddc279d2191b01 01-Sep-2009 Ian Romanick <ian.d.romanick@intel.com> ARB sync / swrast: Use GL_ARB_sync_functions instead of GL_ARB_sync. Oops.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
f37070bab6af350caec905ea7658e9241042b6cc 29-Aug-2009 Ian Romanick <ian.d.romanick@intel.com> ARB sync: Add support for GL_ARB_sync to swrast

This isn't quite right yet. The delete behavior and the context
clean-up needs some work.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
88ebf514a41ae460dad08a4585a61541864a4432 28-Jul-2009 Eric Anholt <eric@anholt.net> swrast: enable ARB_vertex_array_object.

It was getting enabled anyway but without the entrypoints installed. Whoops.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
0f04a1d3f8989b0a391e6dad80abf06ce151d1f1 07-Mar-2009 Brian Paul <brianp@vmware.com> mesa: remove last of _mesa_unreference_framebuffer() calls
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
5d5ae371eaeca7e33e638af3aee1ae8e162db0a7 10-Feb-2009 Eric Anholt <eric@anholt.net> intel: Add x8r8g8b8 visuals to DRI1 fbconfigs alongside a8r8gb8.

This involved fixing driConcatConfigs to not return const (which had made a
mess of a previous patch too).
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.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.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
529d1d720e1422bad1880ef33fae1c9423112d2e 04-Feb-2009 Eric Anholt <eric@anholt.net> swrast: Add support for x8r8g8b8 fbconfig.

This lets swrast produce an fbconfig suitable for the root visual now that
the server's not allowing mismatched fbconfigs.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
3ee21f30cda27e0ee1357f930163526622ba9434 29-Jan-2009 Eric Anholt <eric@anholt.net> intel: Expose more FBconfigs in the 3D driver.

We can support any combination of (a8r8g8b8, x8r8g8b8, r5g6b5) x (z0,z24,z24s8)
on either class of chipsets. The only restriction is no mixing bpp when also
mixing tiling. This shouldn't be occurring currently.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
474cda6fa912a766821d20b5b21d6eeba6ea9225 28-Jan-2009 Ian Romanick <idr@freedesktop.org> Make GL_{EXT,SUN}_multi_draw_arrays and GL_IBM_multimode_draw_arrays mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
b5fbdef7ec3deb823ad1db8a7b7a731800082f75 10-Jan-2009 Ian Romanick <idr@freedesktop.org> swrast: Enable GL_EXT_stencil_two_side
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
9939a306f7dc109d301e7b2d6abf4f2ab019bde0 09-Jan-2009 Ian Romanick <ian.d.romanick@intel.com> swrast: Fix GL_ATI_separate_stencil

GL_ATI_separate_stencil is enabled by default for software
rasterizers, but the extension functions weren't hooked up to the
dispatch table.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
5a46e176715b0eae7b8a715e8aec42f5a27214fc 20-Sep-2008 Keith Whitwell <keith@tungstengraphics.com> mesa: standardize on C99's uint*_t instead of u_int*_t
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
8d41e4536dfde34b55228cab6ddb081ad6252184 19-Sep-2008 Chris Rankin <rankincj@yahoo.com> mesa: fix asst path/include mistakes in prev commits
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
ecadb51bbcb972a79f3ed79e65a7986b9396e757 18-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: added "main/" prefix to includes, remove some -I paths from Makefile.template
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
7ffb1230b3287a72d9ac59c5d830f7a4155cbdf9 13-Jun-2008 George Sapountzis <gsap7@yahoo.gr> dri/swrast: make unbind a noop

This is for loading swrast_dri.so from libGL.

MakeContextCurrent() seems to unbind the context right after binding it and
DRI drivers also have a noop DriverAPI.UnbindContext ...
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
341987f68842d662168aa6386723ef9ac8080a93 13-Jun-2008 George Sapountzis <gsap7@yahoo.gr> dri/swrast: add OpenGL 2.1 functions
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
4c7e02298f68b84d929cd1d3af8b3120281c2e32 09-Jun-2008 George Sapountzis <gsap7@yahoo.gr> dri/swrast: minor cosmetic
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
95eb6422c718d3d4ef34ec35bffa83307025793d 23-May-2008 George Sapountzis <gsap7@yahoo.gr> dri/swrast: cosmetic, mainly generic vs. xorg terminology
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
c1d4644f487a3ff4dcb3ef32995fed30cd72eeba 23-May-2008 George Sapountzis <gsap7@yahoo.gr> dri/swrast: add support for r3g3b2
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
44e05f08702d650bd66b816af429a856ff542311 23-May-2008 George Sapountzis <gsap7@yahoo.gr> dri/swrast: drop TODO list
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
53784e786da69296020914c508905a9cf14b490d 21-May-2008 George Sapountzis <gsap7@yahoo.gr> dri/swrast: fb configs tweaks

@32: provide configs with depth=0, stencil=8
@16: provide configs with depth=0, stencil=8 and depth=16, stencil=8
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
d0c7ef43585e96f523ad85c55cdc219e9c8bac95 21-May-2008 George Sapountzis <gsap7@yahoo.gr> dri/swrast: re-indent FillInModes
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c
280bf89bd4a6bb7977abb00b88d59234d2c80844 11-May-2008 George Sapountzis <gsap7@yahoo.gr> Add DRI driver that uses the mesa swrast module.
/external/mesa3d/src/mesa/drivers/dri/swrast/swrast.c