History log of /external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c760677c85a1019eef67b2ce0ce97e8218918f44 24-Jan-2013 Brian Paul <brianp@vmware.com> st/mesa: do proper error checking for u_upload_alloc() calls

We weren't properly checking the return value of these calls (and
calls to u_upload_data()) to detect OOM errors.

Note: This is a candidate for the 9.0 branch.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
(cherry picked from commit 8c3f9ea07392177b6de9d946d40f97128fa51632)
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
23c71839e994c9c0ca684e54630991e16b0530af 15-Oct-2012 Marek Olšák <maraeo@gmail.com> st/mesa: fix integer texture border color for some formats (v2)

And the clear color too, though that may be an issue only with GL_RGB if it's
actually RGBA in the driver.

NOTE: This is a candidate for the stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>

v2: The types of st_translate_color parameters were changed to gl_color_union
and pipe_color_union as per Brian's comment.
(cherry picked from commit 2bbd307fa638f6d256d020ddf1cff5fc7f735fd2)
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
e7689303a8e4790c38cc69ae7a197712f98e8f5b 24-Jul-2012 Marek Olšák <maraeo@gmail.com> gallium: set sample mask to ~0 for clear, blit and gen_mipmap

The sample mask affects single-sampled rendering too (it's orthogonal
to the color mask).

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
a8a478999c366cd08be2910ea83465d9b69181e8 13-Apr-2012 Marek Olšák <maraeo@gmail.com> st/mesa: write vertices directly into the buffer for glClear fallback
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
2b151bbb957284e7a1a272c1b5ec6c9307e6e623 13-Apr-2012 Marek Olšák <maraeo@gmail.com> st/mesa: use u_upload_mgr to upload vertices for glClear fallback
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
447071cfb01cf52e3e6591c71684a689f7e900fa 13-Feb-2012 Brian Paul <brianp@vmware.com> st/mesa: improve assertion/check for stencil format
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
dc4c821f0817a3db716f965692fb701079f66340 10-Jan-2012 Marek Olšák <maraeo@gmail.com> Squash-merge branch 'gallium-clip-state'

Conflicts:
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/mesa/state_tracker/st_atom_clip.c

commit d919791f2742e913173d6b335128e7d4c63c0840
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 17:59:22 2012 +0100

d3d1x: adapt to new clip state

commit cfec82bca3fefcdefafca3f4555285ec1d1ae421
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 14:16:51 2012 +0100

gallium/docs: update for clip state changes

commit c02bfeb81ad9f62041a2285ea6373bbbd602912a
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 14:21:43 2012 +0100

tgsi: add TGSI_PROPERTY_PROHIBIT_UCPS

commit d4e0a785a6a23ad2f6819fd72e236acb9750028d
Author: Brian Paul <brianp@vmware.com>
Date: Thu Jan 5 08:30:00 2012 -0700

tgsi: consolidate TGSI string arrays in new tgsi_strings.h

There was some duplication between the tgsi_dump.c and tgsi_text.c
files. Also use some static assertions to help catch errors when
adding new TGSI values.

v2: put strings in tgsi_strings.c file instead of the .h file.

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

commit c28584ce0d8c62bd92c8f140729d344f88a0b3cd
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 12:48:09 2012 +0100

gallium: extend user_clip_plane_enable to apply to clip distances

commit f1d5016c07f786229ed057effbe55fbfd160b019
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Jan 6 02:39:09 2012 +0100

nvfx: adapt to new clip state

commit 6f6fa1c26bd19f797c1996731708e3569c9bfe24
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Jan 6 01:41:39 2012 +0100

st/mesa: fix DrawPixels with GL_DEPTH_CLAMP

commit c86ad730aa1c017788ae88a55f54071bf222be12
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Tue Jan 3 23:51:30 2012 +0100

nv50: adapt to new clip state

commit 3a8ae6ac243bae5970729dc4057fe02d992543dc
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Tue Jan 3 23:32:36 2012 +0100

nvc0: adapt to new clip state

commit 6243a8246997f8d2fcc69ab741a2c2dea080ff11
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Dec 29 01:32:51 2011 +0100

draw: initalize pt.user.planes in draw_init

This fixes a crash in glean/fpexceptions.

commit e3056524b19b56d473f4faff84ffa0eb41497408
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Dec 26 06:26:55 2011 +0100

svga: adapt to new clip state

commit c5bfa8b37d6d489271df457229081d6bbb51b4b7
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 14:11:51 2011 +0100

r600g: adapt to new clip state

commit f11890905362f62627c4a28a8255b76eb7de7df2
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 14:10:26 2011 +0100

r300g: adapt to new clip state

commit e37465327c79a01112f15f6278d9accc5bf3103f
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 12:39:16 2011 +0100

draw: adapt to new clip state

This adds a regression in the LLVM clipping path. Can anybody see anything
wrong with the code? It works for every other case, just glean/fpexceptions
crashes when doing the "Infinite clip plane test".

commit b474d2b18c72d965eefae4e427c269cba5ce6ba2
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 13:14:59 2011 +0100

u_blitter: don't save/set/restore clip state

commit 9dd240ea91f523a677af45e8d0adb9e661e28602
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 13:11:56 2011 +0100

gallium: don't cso_save/set/restore clip state

The enable bits are in the rasterizer state.

commit a4f7031179f5f4ad524b34b394214b984ac950f6
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 12:58:55 2011 +0100

gallium: default depth_clip to 1

depth_clip = !depth_clamp

commit fe21147a00ab90e549d63fe12ee4625c9c2ffcc3
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Dec 26 06:14:19 2011 +0100

trace,util: update state logging to new clip state

Also dump the other missing flags.

commit 2a3b96e84ac872dcc5bc1de049fe76bb58d64b23
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 10:43:43 2011 +0100

st/mesa: adapt to new clip state

commit b7b656a42fca19d7c85267f42649a206a85a2c72
Author: Marek Olšák <maraeo@gmail.com>
Date: Sat Dec 17 15:45:19 2011 +0100

gallium: move state enable bits from clip_state to rasterizer_state
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
c05fafa4a0fd93d4264c46578e23a83ecf2b481e 09-Dec-2011 Marek Olšák <maraeo@gmail.com> st/mesa: implement EXT_transform_feedback and ARB_transform_feedback2
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
122c6768e3d4c1d1b57203eca70569f9301baab5 03-Dec-2011 Brian Paul <brianp@vmware.com> mesa: rewrite accum buffer support

Implemented in terms of renderbuffer mapping/unmapping and format
packing/unpacking functions.

The swrast and state tracker code for implementing accumulation are
unused and will be removed in the next commit.

v2: don't use memcpy() in _mesa_clear_accum_buffer()
v3: don't allocate MAX_WIDTH arrays, be more careful with mapping flags

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
0d05422c2001b5d0d50ea4f0d99a5cc1c301fccb 07-Nov-2011 Brian Paul <brianp@vmware.com> st/mesa: add some null pointer checking to better handle out of memory

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
d2633af696f2e4ff98f669061e4e222e8643312c 04-Nov-2011 Marek Olšák <maraeo@gmail.com> st/mesa: set geometry shader to NULL when doing internal drawing

The code expects the geometry shader to be NULL.
We don't have geometry shaders now, but it's good to be prepared.

v2: check for support in the cso context
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
6dd284f7c8fac22f64c13fdf9909094f5ec59086 16-Sep-2011 Dave Airlie <airlied@redhat.com> gallium: move clear paths from rgba to a pointer to a color union (v2)

This moves the gallium interface for clears from using a pointer to 4 floats to a pointer to a union of float/unsigned/int values.

Notes:
1. the value is opaque.
2. only when the value is used should it be interpretered according to
the surface format it is going to be used with.
3. float clears on integer buffers and vice-versa are undefined.

v2: fixed up vega and graw, dropped hunks that shouldn't have been in
patch.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.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>
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
adea7ea0bc2683c0ee544e20074062df9ae5a72b 01-Jun-2011 Marek Olšák <maraeo@gmail.com> st/mesa: initial ARB_depth_buffer_float support
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
47e3896dfd89a26abbe4ca2469c2480f3982b204 16-Feb-2011 Luca Barbieri <luca@luca-barbieri.com> gallium: implement clamping controls (ARB_color_buffer_float)

BTW this changes the gallium interface.
Some rather cosmetic changes by Marek.

Squashed commit of the following:

commit 513b37d484f0318311e84bb86ed4c93cdff71f13
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Thu Aug 26 18:17:54 2010 +0200

mesa/st: respect fragment clamping in st_DrawPixels

commit 546a31e42cad459d7a7a10ebf77fc5ffcf89e9b8
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Thu Aug 26 18:17:28 2010 +0200

mesa/st: support fragment and vertex color clamping

commit c406514a1fbee6891da4cf9ac3eebe4e4407ec13
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Tue Aug 24 21:56:37 2010 +0200

mesa/st: expose ARB_color_buffer_float if unclamping is supported

commit d0c5ea11b6f75f3da2f4ca989115f150ebc7cf8d
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Thu Aug 26 17:53:41 2010 +0200

mesa/st: use unclamped colors

This assumes that Gallium is to be interpreted as given drivers the
responsibility to clamp these colors if necessary.

commit aef5c3c6be6edd076e955e37c80905bc447f8a82
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Thu Aug 26 18:12:34 2010 +0200

mesa, mesa/st: handle read color clamping properly

We set IMAGE_CLAMP_BIT in the caller based on _ClampReadColor, where
the operation mandates it. (see the removed XXX comment. -Marek)

TODO: did I get the set of operations mandating it right?

commit 76bdfcfe3ff4145a1818e6cb6e227b730a5f12d8
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Thu Aug 26 18:18:25 2010 +0200

gallium: add color clamping to the interface
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
1a79064da12a8be71dca7656e5eebc4b85d2b35f 05-Mar-2011 Jakob Bornecrantz <wallbraker@gmail.com> gallium: Delay the creation of simple helper shaders
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
7942e6a5ae0113f1cbdf62b772849cf6cdd4eca1 20-Feb-2011 Marek Olšák <maraeo@gmail.com> st/mesa: fix crash when DrawBuffer->_ColorDrawBuffers[0] is NULL

This fixes the game Tiny and Big.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
e2d108ec828bdbebdc7e8f9df30c86f0b521aa8d 22-Feb-2011 Brian Paul <brianp@vmware.com> st/mesa: need to translate clear color according to surface's base format

When clearing a GL_LUMINANCE_ALPHA buffer, for example, we need to convert
the clear color (R,G,B,A) to (R,R,R,A). We were doing this for texture border
colors but not renderbuffers. Move the translation function to st_format.c
and share it.

This fixes the piglit fbo-clear-formats test.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
eafb7f234d11a290b00dcaf5492b9bdad1cf5148 13-Feb-2011 Marek Olšák <maraeo@gmail.com> gallium: add usage parameter to pipe_buffer_create

And set a reasonable buffer usage flag everywhere instead of
just PIPE_USAGE_DEFAULT.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
d5062fb3a315c46d77d5c954a3e3c14be1907d33 09-Jan-2011 Marek Olšák <maraeo@gmail.com> gallium: always save and restore vertex buffers using cso_cache
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
efbd33aff93d875af95d40db018b7911a3f87d02 03-Jan-2011 Brian Paul <brianp@vmware.com> st/mesa: fix renderbuffer pointer check in st_Clear()

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

NOTE: This is a candidate for the 7.9 and 7.10 branches.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
f717fd25cc44d7dda5a49dc05337c7ee7c8d2d2f 06-Aug-2010 Vinson Lee <vlee@vmware.com> st/mesa: Clean up header file inclusion in st_program.h.

st_program.h
Remove p_shader_tokens.h
Include st_context.h for st_context symbol.
Include p_state.h for PIPE_MAX_SHADER_INPUTS symbol.
Remove unnecessary forward declarations.

st_cb_bitmap.c
st_cb_clear.c
Include p_shader_tokens.h now that st_program.h doesn't include it.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
ec2b92f98c2e7f161521b447cc1d9a36bce3707c 11-Jun-2010 Brian Paul <brianp@vmware.com> mesa: rename src/mesa/shader/ to src/mesa/program/
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
c00065e5c2ba8a1bcaa543b079abc883af0844f3 05-Jun-2010 Roland Scheidegger <sroland@vmware.com> st/mesa: fix bug in depthstencil optimizing clear logic
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
783083c3b81c51bae541e0a86801f0492ca352cd 29-May-2010 Roland Scheidegger <sroland@vmware.com> st/mesa: use new ability to clear only depth or stencil
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
b0427bedde80e3189524651a327235bdfddbc613 11-May-2010 José Fonseca <jfonseca@vmware.com> mesa/st: Remove internal flushes from Mesa state tracker.

Now that transfers are context operations it is the driver's
responsibility to ensure that transfers happen in order with all other
context operations, so flushes and finishes inside Mesa should be no
longer necessary. The attached patch implements that.

This should proportionate significant improvements for hardware drivers
which are able to stream transfers in the command buffers.

You can use the softpipe/llvmpipe_flush_resource() as reference
implementation of the worst case scenario, where the driver is not able
to streamline transfers. But the expectation is that driver
implementators will want to avoid flushing as much as possible.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
76c7ad2e7d387feefe58dc2116b613fe11a8b273 23-Apr-2010 Brian Paul <brianp@vmware.com> st/mesa: clean-up: use st_context() everywhere
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
da8412ec19ad00627ae9139dc02f46f344bbb6ac 12-Apr-2010 Chia-I Wu <olv@lunarg.com> st/mesa: Drop st_public support.

There is no user of st_public now.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
287c94ea4987033f9c99a2f91c5750c9083504ca 10-Apr-2010 Keith Whitwell <keithw@vmware.com> Squashed commit of the following:

commit 0189cb2fde9f5d7326fd4bfbc2e52db4cce73b3e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Apr 10 12:48:43 2010 +0100

gallium: don't use generic get_transfer func for textures

It doesn't know and can't fill in the stride value.

commit 65bc6f88fd9ce8ff90175b250e580bef2739ea35
Author: Chia-I Wu <olv@lunarg.com>
Date: Sat Apr 10 13:49:34 2010 +0800

i915g: Initialize screen surface function.

commit eb56e64986790aa2fa35534ce652b78656b0c3c5
Merge: f8b0a7f e7f1e5c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Apr 10 00:38:43 2010 +0100

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/r300/r300_texture.c

commit f8b0a7f6a3a98fd36ce90a81073ec8c8f09b684c
Merge: a3c9980 f43c679
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Apr 10 00:35:09 2010 +0100

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/r300/r300_texture.c

commit a3c99807de37dc2c072f1d75ed3a11da333bc9a1
Author: unknown <michal@.(none)>
Date: Fri Apr 9 18:51:39 2010 +0200

scons: Add missing sources.

commit 927cec79cedb457efa9e6f335727cfcb8e4908e2
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 18:07:56 2010 +0200

gallium: fix another compile warning after merge. Hmpf.

commit 52953cd7b0e51deafecb812bdc40f9e45f9ac62a
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 18:02:11 2010 +0200

gallium: fix comment

commit 7c8763aa6cfc74adf1ea49c2bab25ca17b32575f
Author: unknown <michal@.(none)>
Date: Fri Apr 9 18:05:20 2010 +0200

util: Fix type cast.

commit 9d0086411a104b7cc9297aac0d1f82853118d7bf
Author: unknown <michal@.(none)>
Date: Fri Apr 9 18:04:33 2010 +0200

libgl-gdi: Use proper unwrap functions for resources.

commit 251a5cdd18ba31c690ef61f133dfc65cd4a45cf8
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:51:23 2010 +0200

gallium: more comments fixup

commit 8f3f9d5e1e9c0de98a3dfb19e81250d2c32ee4e9
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:48:18 2010 +0200

gallium: another fix after merge

commit 41f00a32ee5be91512c048bacb89ede0e04bc08d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:44:30 2010 +0200

gallium: more pipe_texture/resource fixes after merge

commit faf53328d1154c51d8a59513f2bfcae62272b0bf
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:44:24 2010 +0200

gallium: fix comments for changed USAGE flags

commit fdcb17bea4b0798d316b56deea69832f41142adf
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 16:40:07 2010 +0200

gallium/pb: pb uses PB_USAGE_ flags, not PIPE_TRANSFER_ (same value anyway)

commit c95f7278ecc6db417ec1053279f2a8172c47aee9
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:44:35 2010 +0100

llvmpipe: fix merge glitches

commit 28f8b8683175149a381be5eff263d4c20568bce7
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:41:39 2010 +0100

r300g: update after merge for pipe_resources

commit 248c93cbc066ba6e3fadd94c5fcf3bdbb373d8fd
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:41:20 2010 +0100

st/mesa: fix old pipe_texture usages

commit a563b1c5c2cb57b3ef28a3654d9b477460d13ced
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:40:56 2010 +0100

r300g: remove unused variable

commit 734500131d828c9dfd68c5fa26b3e6b07e086d2d
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:40:36 2010 +0100

nv50: fix compiler warning

commit efd402e13037e5c3e29759fa5b1c754c6d65d0e2
Merge: fec8a1d 5452615
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:33:57 2010 +0100

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/cell/ppu/cell_screen.c
src/gallium/drivers/cell/ppu/cell_texture.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_transfer.c
src/gallium/state_trackers/egl/common/egl_g3d.h
src/gallium/state_trackers/egl/kms/native_kms.c
src/gallium/state_trackers/egl/x11/native_dri2.c
src/gallium/state_trackers/egl/x11/native_ximage.c

commit fec8a1db13fac04ef56f6ece799d1f20aa3011db
Author: Marek Olšák <maraeo@gmail.com>
Date: Sat Apr 3 07:58:34 2010 +0200

util: fix assertion failures in pipe_buffer_flush_mapped_range

commit 1ff3984c2edce9927744f3cce3e7b07778990170
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 8 17:44:54 2010 +0200

docs: fix transfer_map description

commit 20bf14be8ac6438cb1afa38212e306fc06a5ed40
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Apr 8 14:39:13 2010 +0100

util: fix up several uses of pipe_map_buffer_range

This function used to return a pointer to where the start of the
actual buffer would have been, even though only the requested range is
being mapped.

In the resources change, the function was modified to use a transfer
internally, and started returning the pointer to the beginning of the
transfer, ie the mapped range.

Some users of the function were changed to reflect this new behaviour,
some were not. Since then the function has reverted to its original
behaviour, matching master.

This change restores some of the users of the map_buffer_range helper
to expect the old/original behaviour.

commit 33179a86058b68b518f40971030db337dc26fe6e
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Apr 8 14:38:54 2010 +0100

mesa/st: fix up several uses of pipe_map_buffer_range

This function used to return a pointer to where the start of the
actual buffer would have been, even though only the requested range is
being mapped.

In the resources change, the function was modified to use a transfer
internally, and started returning the pointer to the beginning of the
transfer, ie the mapped range.

Some users of the function were changed to reflect this new behaviour,
some were not. Since then the function has reverted to its original
behaviour, matching master.

This change restores some of the users of the map_buffer_range helper
to expect the old/original behaviour.

commit 3f5363d4dc9d7ad48467ae82d58d5f3d9bd10698
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Apr 7 17:26:52 2010 +0100

util: map_range and flush_range have offsets relative to start of buffer

commit 7eb1bfb97a790c73188d6b616d54fb3849e69b1e
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Apr 7 17:26:08 2010 +0100

nv50: fix compiler warning

commit d040daff0642dd791ac38e9b353dc251b03fc873
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Apr 7 17:25:58 2010 +0100

nvfx: fix compiler warning

commit 49ec01dffb8e99ab3ff8f856287db7b4df3efed6
Author: Chia-I Wu <olv@lunarg.com>
Date: Mon Apr 5 11:58:53 2010 +0800

mesa/es: Fixes for gallium-resources.

commit 47c87ada452be45766928a01b6d69da63e3a5f5e
Author: Marek Olšák <maraeo@gmail.com>
Date: Sat Apr 3 05:19:20 2010 +0200

r300g: fix transfers for textures created from winsys handles

commit 5f2701fddaef9c18d85c049311c2819c49cc1ae0
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Sat Apr 3 03:52:38 2010 +0200

nouveau: don't use the staging usage

Maybe it could make sense, but for now dynamic is enough.

None of these avoid uncached reads from GART on AGP cards.

commit 0db20fa49e008f35911007fa7ed9be1d678a2161
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Sat Apr 3 03:27:19 2010 +0200

i965: add brw_resource.c to Makefile

commit b94f3e7389cbd1b6465de3c04e8059ce73f1ea1f
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Sat Apr 3 01:48:33 2010 +0200

nouveau: fix for gallium-resources

commit a01ff99a19986e6beb7903431e60a074945b09bc
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 19:26:35 2010 +0200

gallium: fix missing includes

commit 26aeded562ce947a6deeb867fe22bf8daf7b1a1a
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 19:19:18 2010 +0200

gallium: remove video interface and related stuff

These interfaces weren't quite was needed, and building disabled for a while.
Some code actually build since some branch merge, and were now not fully
converted to gallium-resources.
See http://www.mail-archive.com/mesa3d-dev@lists.sourceforge.net/msg09619.html
for a discussion of this. Video related work is done in origin/pipe-video
branch.

commit c64285aea45997a276fb141d7badc8a04f617c7c
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 18:45:54 2010 +0200

python: fixes for resource changes

doesn't look quite ok yet, but sort of compiles.

commit 03d4d5a41f5cf158a358fd705c695e1c987a328f
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 18:34:46 2010 +0200

gallium: s/u_box_orgin_2d/u_box_origin_2d

commit 2444f023142bcaf7bd310b44794580f273254408
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Apr 1 03:26:50 2010 +0200

r300g: fix segfault when the transfers functions are used

Still broken.

commit 6f09bf4066ab651b323c131bb07978e700519805
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 00:05:12 2010 +0200

r300g: compile fixes

commit 76711ff40d2092f9ef03d452de7458c4e76d9246
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 00:04:47 2010 +0200

nvfx: more compile fixes

commit c5d2e90c9cc119447a447dc04a4bce4ab91fc671
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 23:18:50 2010 +0200

gallium: more mostly merge fallout fixes...

commit fbc3722696790857f4adc936190406e74dffd969
Merge: 86d9225 d97f696
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 22:09:35 2010 +0200

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/cell/ppu/cell_screen.c
src/gallium/drivers/i915/i915_buffer.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i915/i915_resource_texture.c
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/drivers/i965/brw_resource_texture.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/nvfx/nv30_fragtex.c
src/gallium/drivers/nvfx/nv40_fragtex.c
src/gallium/drivers/nvfx/nvfx_miptree.c
src/gallium/drivers/nvfx/nvfx_screen.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/svga/svga_screen_texture.c
src/gallium/state_trackers/dri/common/dri_drawable.c
src/gallium/state_trackers/dri/common/dri_screen.c
src/gallium/state_trackers/dri/common/dri_st_api.h
src/gallium/state_trackers/dri/drm/dri1.c
src/gallium/state_trackers/dri/drm/dri1.h
src/gallium/state_trackers/dri/drm/dri2.c
src/gallium/state_trackers/python/st_device.c
src/gallium/state_trackers/python/st_sample.c
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_extensions.c

commit 86d9225d19d194eebbbe95b059695697c3307d15
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 19:06:06 2010 +0200

gallium: more fixes for bind changes

commit a215ef0606347e34669a580ec8df93ede7e46399
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 18:48:36 2010 +0200

gallium/docs: some updates for bind changes

commit c6c7e6746cbc7af59f7972719ed76f43e8ac16fc
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 20:24:26 2010 +0200

gallium: more bind change compile fixes

commit a83fa1504b78180524a5eb454ae186741a27cdf8
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 17:37:13 2010 +0200

compile fixes

commit 30dc8afcd243d6a160571bac5f06d773e54a4196
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 16:56:28 2010 +0200

fix some merge issues

commit 30aa617fee11fe50c0a9c2f33fcd120a474f5e34
Merge: 1dde609 3a830bc
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 16:09:45 2010 +0200

Merge commit 'origin/gallium-buffer-usage-cleanup' into gallium-resources

Conflicts:
src/gallium/drivers/nouveau/nouveau_screen.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/winsys/drm/radeon/core/radeon_drm_buffer.c

commit 1dde609ad6c9d2dfa0a5f7167f3c5bcf023b7c4d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 24 02:35:00 2010 +0100

docs: some updates for pipe_resource

commit f236f9660d31b936f54b64ae07e569f8637067bd
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Wed Mar 24 01:31:28 2010 +0100

nvfx: fix for gallium-resources

It seems to work with basic applications but almost surely needs more work.

In particular, it probably shouldn't use PIPE_BUFFER_USAGE_* flags
and should use PIPE_TRANSFER_* in several places.

Also, we probably don't want the vtable indirect calls and that ought
to be replaced with something better instead.

commit 5a136ad7b63768cb9a753eff8686c44592e62325
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Wed Mar 24 01:31:19 2010 +0100

nv50: fix build in gallium-resources

Not actually tested.

Also needs next patch tee to actually build, this is just the nv50 part
split from the rest.

commit 3a830bc4a3f0f60c925b9434845a6bcad9a913c5
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 14:00:52 2010 -0700

st/egl: fix up for binding flags

commit c6a80dc32ef17bc972d4137ce7444ebed4d28ebb
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 13:52:15 2010 -0700

r300: restore 4k alignment for oqbo buffers

commit e75a8d5ea9e0ffcf67bc858e08937e10b4fc74ba
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 13:00:07 2010 -0700

gallium: bind flags

commit 1f5b509543a7f399835fd9edf27c18e1643fab7d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 19:32:21 2010 +0100

i965g: scons compile fixes

commit 2c385f8f905ec794d9119c05c6293e0b1b9b565a
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 19:20:33 2010 +0100

nouveau: drm compile fix

commit b285086ebd5132b47c340897c4622cc9fbd286cb
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 18:36:19 2010 +0100

r300g: pipe_resource compile fixes

bring back mistakenly deleted radeon_buffer.h
plus some more

commit 7810606f423ef2f51f0a14b919640c2fd2c931aa
Author: Michal Krol <michal@vmware.com>
Date: Tue Mar 23 16:21:03 2010 +0100

softpipe: Map GS constants, too.

commit 366f1176fb89d2b1978da6cfe60000b76bbc7338
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 15:51:52 2010 +0100

failover: update for pipe_resources

commit 615f44d70d293704ed821bc0b21fcfe6e363895d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 15:51:02 2010 +0100

identity: remove double is_resource_reference assignment

commit 7008586020395905ddfff333d02b3893de369796
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 15:50:32 2010 +0100

trace: compile fix

commit 058c5697bda4c9cf7b49d26ee27a34586544efaa
Merge: dd7ba13 b33fd3c
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 06:40:39 2010 -0700

Merge commit 'origin/gallium-resources' into gallium-buffer-usage-cleanup

Conflicts:
src/gallium/state_trackers/vega/api_filters.c
src/mesa/state_tracker/st_cb_drawpixels.c

commit b33fd3ce3daf2921a895367d0ed3fd9c718a8575
Author: Michal Krol <michal@vmware.com>
Date: Mon Mar 22 21:03:26 2010 +0100

gallium: Usage parameter of get_transfer/transfer_inline_write is a bitfield.

commit 9c1162d9d656062a490a529997def3f674cc61fc
Author: Michal Krol <michal@vmware.com>
Date: Mon Mar 22 20:50:49 2010 +0100

scons: Update file lists after gallium-resources changes.

commit af9793ab9e5386b150d6b25c0d1978fdc67172e4
Author: Michal Krol <michal@vmware.com>
Date: Mon Mar 22 20:04:39 2010 +0100

gallium: Do not use `template` for formal parameter names.

commit dc2e12d714c444af9ff1acdd5a7e91408b116c99
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:41:34 2010 +0000

ws/nouveau: remove pipe_texture reference

commit b94c72329f1be85887d40d49b0586979da469d77
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:40:41 2010 +0000

ws/xlib: remove pipe_buffer reference in comment

commit 0a2af3eeae7de1d1cb433f0a2c35136b115f9920
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:39:34 2010 +0000

st/vega: clean up reference to pipe_texture

commit 437ce98daae46be5d532fbb04c7cbf4a503c1623
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:39:02 2010 +0000

st/python: begin conversion to pipe_resources, much more to do

commit 1b02e1ee3e5e87774f0c9e5f0e1898b7f8de1b16
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:29:34 2010 +0000

st/xorg: update for pipe_resources

commit eb39977fe7a1d9f0c3f4f2d4303a93c2c613cc3b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:23:51 2010 +0000

st/dri: update for pipe_resources

commit e447aeff597a4d8c0f5de25854c14c99f2cc138c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:23:36 2010 +0000

st/egl: update for pipe_resources

commit e4cc48da8fdbd7d521257a6d7cd10e6fc5aa1a65
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:08:44 2010 +0000

r300: drop use of R300 DONT SYNC flag

commit 129a83ab4d32e44ded5faea3f86ae5e1e62cddb6
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:08:17 2010 +0000

pipebuffer: use transfer flag

commit 575b35ee6b683d77095ef21c573c1de207107e79
Merge: f29ac73 9fc6c8b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:03:25 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/winsys/drm/radeon/core/radeon_buffer.h

commit f29ac73f3f626d5779a627b7fa6fecdb60a35aab
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 18:37:25 2010 +0000

cell: attempt to convert to pipe_resources

Can't even compile test this driver.

commit 484b1947f4af81bab60b41f21c3c23ea6f67488c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 17:25:50 2010 +0000

nvfx: restore usage of pipe_winsys

The interface that cannot be killed...

commit ac76ac6eb30f4f9aa9f5733d60358b357925953a
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 17:25:10 2010 +0000

nv50: fix warning

commit 9683f4423449fa5acf6c019c571223650473bd82
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 17:14:31 2010 +0000

util: restore u_simple_screen, nouveau still relies on it

commit 961cbcb62232689c959965384c6aa9b8eca697c1
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 16:51:54 2010 +0000

nouveau: convert nvfx and nv50 to pipe_resources

Compile tested only.

This was a deeper change than I was hoping for, due to the
layering of the pipe_texture implementation in each driver on
top of a shared pipe_buffer implementation in the shared code.

Have modified the shared code to act as a set of convenience
routines operating on nouveau_bo objects.

Each driver now uses the u_resource_vtbl technique to split the
implementation of pipe_resources between the existing miptree code
for textures and a new, minimal buffer implementation in each
driver.

Eventually these should be combined, not least because APIs are now
allowing things like binding buffer resources as textures and render
targets.

commit 18ba74016db13b23282f5033ee37b628a12ee566
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 10:02:54 2010 +0000

r300: fix compilation after merge

Also build r300 by default.

commit eb9c0175c8e4baca3fcb0b8364f83ceba9d74e0d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 09:59:49 2010 +0000

st/vega: fix up after merge

commit ea8dd1d4ae7b58c9315c3491046ef3852ddd3377
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 09:59:44 2010 +0000

aux: remove unused piperesource helpers

commit be7af29d3ad1a10409b0ea689d882cf30a4e1d62
Merge: d22c2c6 12deb9e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 09:54:53 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/cso_cache/cso_context.h
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/state_trackers/vega/api_filters.c
src/gallium/state_trackers/vega/image.c
src/gallium/state_trackers/vega/image.h
src/gallium/state_trackers/vega/mask.c
src/gallium/state_trackers/vega/mask.h
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/paint.h
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/renderer.h
src/gallium/state_trackers/vega/shader.c
src/gallium/state_trackers/vega/vg_context.h
src/gallium/state_trackers/vega/vg_tracker.c
src/mesa/state_tracker/st_manager.c

commit d22c2c6cb23a063e3334a165d0c5c3d73f05d234
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 20 11:48:54 2010 +0000

drm/r300: update for r300g pipe_resources conversion

Remove old files that related to pipe_buffers but weren't being
built. Hopefully this is correct.

commit f07b2c836958bee5796899123eca4ed05ac6242b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 20 11:47:03 2010 +0000

r300: convert to pipe_resources

Do a very shallow conversion - basically keeping the existing
buffer and texture code intact and using a vtbl struct
inside our resource struct to select between the two implementations.

The buffer and texture treatments could be further merged without
much effort, but try to keep the existing code working at this point.

commit feca9c3ca62daaf0d8745370106d4e3b22340c49
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 06:00:34 2010 +0000

gallium: update new merges to pipe_resource

commit 1cad983eac77a0c5333e6a3ce92b90ac87407714
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 06:00:19 2010 +0000

drm/sw: update new merges to pipe_resource

commit 191d39490ed792c569f98d42cf05891b264f71f8
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 06:00:01 2010 +0000

vg: update new merges to pipe_resource

commit b727c59bc44812ad503d9390505c92b738a5b8b0
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:59:38 2010 +0000

llvmpipe: update new merges to pipe_resource

commit 5f4b64b37fdcd70162c382b2ebbd494bef751dbd
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:59:23 2010 +0000

brw: pipe_resource fixes

commit d4aca209f531f1b65bf706ce1e5fc0375b587eb6
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:59:06 2010 +0000

util: update new merges to pipe_resource

commit cf6bef0afee10763c78509a3d17e9a6e49bcd3c8
Merge: 1997231 6de8e56
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:38:50 2010 +0000

Merge commit 'origin/master' into gallium-resources

commit 1997231916144485c3c4a36f53eda39fce460272
Merge: ad88ac7 e1ee3ea
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Mar 17 08:46:38 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_blit.h
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/auxiliary/util/u_gen_mipmap.h
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_gen_mipmap.c

commit ad88ac79034a91670940276e722bdd398d5c9023
Merge: 77bc770 8cdfd12
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 16 09:13:07 2010 +0000

Merge branch 'gallium-sampler-view' into gallium-resources

Conflicts:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/softpipe/sp_texture.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_framebuffer.c
src/mesa/state_tracker/st_texture.c

commit 77bc770c991ea025c82eaa4e0e2390efd825d96d
Author: Keith Whitwell <keithw@vmware.com>
Date: Mon Mar 15 22:21:48 2010 +0000

util: missing file

commit f83c91db8ae63a3c3a34ff21492427a5663fb760
Merge: c1d4774 42910eb
Author: Keith Whitwell <keithw@vmware.com>
Date: Mon Mar 15 09:48:58 2010 +0000

Merge commit 'origin/gallium-sampler-view' into gallium-resources

Conflicts:
src/gallium/drivers/nv40/nv40_transfer.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/drivers/trace/tr_drm.c

commit dd7ba1378fc50710667724d30d6d4cf1125ad61e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 23:54:36 2010 +0000

gallium: start a cleanup of buffer_usage

Remove fairly meaningless CPU/GPU READ/WRITE flags and
replace with proper usages.

commit c1d4774187189f4af8ff421b210824f3d53ceefb
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 23:05:45 2010 +0000

llvmpipe: don't FREE userbuffer data

commit 9bfa07afe179f8060e7beefb754a29c4d9c6e349
Merge: 65757a1 08cddfe
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:54:51 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_scene.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/llvmpipe/lp_texture.h
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/svga/svga_screen_texture.c

commit 65757a143f8e3fcd7afbc1ff92db44a823edf46c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:41:17 2010 +0000

svga: build fixes

commit 2f5435220501d4b3050cab2bb1dce6174cd13ff6
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:39:25 2010 +0000

gallivm: build fix

commit 42642ec0984107d82b740711f2debbf38457a06e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:38:33 2010 +0000

llvmpipe: convert to pipe_resources

commit 7bbcb21e20cb545ef8dd5fc61d67ed931c69e813
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:19:30 2010 +0000

gallivm: convert to pipe_resources

commit 88ae0d04610ca52649b42e32141a52af6d5a739b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 21:01:22 2010 +0000

configs: build svga

commit 0e112bc69828e65085ebfaef895ecd78fe53f1c4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 21:01:17 2010 +0000

gallium: restore PIPE_BUFFER_USAGE_CUSTOM

commit 102aca688b95c976b7178b84092fba7d041ff9d2
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 21:00:41 2010 +0000

util: more transfer helpers

commit a79f6a4a0836fc64c07f9aeec21d914474fe3649
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 20:59:36 2010 +0000

svga: convert to use pipe_resrource

As with others so far, a fairly shallow conversion.

commit 087fb54492fa5e3baf040c5efbf7dacd98a8849b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:38:08 2010 +0000

brw: fix function name

commit cfc9dd707d16e06fd23b6926da3a6e2269f31dc8
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:19:06 2010 +0000

gallium: enable brw compile

commit 8a5b86d76bdd3c7de63322423f59940a4dc2ee25
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:18:50 2010 +0000

brw: compiles with pipe_resource

commit 563ca458b548c41ca4dca559354c16ca1a80d009
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:18:42 2010 +0000

i915: hook up userbuffer create

commit b5095b48247b6020e36cc942ac145c3fccbe9a19
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:20:51 2010 +0000

i915: use helpers for is_resource_referenced

commit d5392bdc6d70002acf9c5bac0fde14ba405c4d84
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:20:38 2010 +0000

util: helpers for is_resource_referenced

commit 2f3492a5aefbb2e745f6700d8e910ebb5cbb98cf
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:08:50 2010 +0000

i915: remove buffer.c again

commit 1373a35b65fcc25ec6cdfea2703bbb3417de2c6d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:08:34 2010 +0000

i915: add new files to scons

commit 0251612d70e57fe38e10e75915b394631d224f2c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 16:38:29 2010 +0000

i915: compiling with pipe_resources

commit 9a0235864252929a8eedd44dbd2fe30fe54c531d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 13:51:16 2010 +0000

gallium: remove inline_read transfer

commit a6ba315e25793e0c228d3a4ae2f8201634dc9ff0
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 13:50:32 2010 +0000

trace: get running

Some dumping will be incorrect or disabled, but it runs without
crashing

commit 2133f1d90aa919662a8420a0cf3b4557e6ec1afd
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 13:49:42 2010 +0000

gallium: remove the inline_read transfer

There aren't enough users of this to justify it.

commit bccaf1fa30881f6b4fb189a9b74fc7af79c3b481
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:30:37 2010 +0000

identity: hook up inline transfer operations

commit e4c152a344f2f53c842b810724a2ae7cb4554f58
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:21:54 2010 +0000

gallium: build trace and identity

commit 0b5a311db78852fa9fd021e17b5968a1e0436b49
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:21:36 2010 +0000

gallium: add more of the transfer state to pipe_transfer

Not really sure if recording all the arguments to the
create_{transfer,texture,surface,etc} functions in the result of those
calls is a great idea, but it seems we're fairly dependent on it
throughout the code.

commit a23985c26eafe76b0a7dacc892e50cb589f211fe
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:19:46 2010 +0000

identity: compiles with pipe_resources

commit d0d630944304c208f6dade6ef8836763ee2bc7b4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:13:02 2010 +0000

trace: compiles with pipe_resources

commit a4451ea459cc8bfc915fe6aed2891b90854b6c9d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:39:50 2010 +0000

softpipe: give userbuffers a format other than NONE

Most mesa demos working

commit 32bb1bd4ba29884a4ecfa11c8441d33dfceabcef
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:39:21 2010 +0000

util: correct argument order in pipe_buffer_map

commit 7e2696c06445282feb781047277b260308760a33
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:32:55 2010 +0000

softpipe: transfer flush

commit a0543b13c042e3c1142522d9d136f16fd4cabf78
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:32:13 2010 +0000

util: noop implementation of transfer_flush_region

commit ce418533be752dbeb164e7ff82a99483048e482b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:26:07 2010 +0000

gallium: softpipe runs gears with pipe_resources

commit bfda4f2eb34498e4b7f3c608d30fccff6bb9651b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:25:48 2010 +0000

util: get clip_tile working again

commit f5ef219c3bed62b6a0da842e675fae16268e0fbe
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:43:20 2010 +0000

softpipe: use u_transfer helpers

commit 072957aab25affecf0702e925310e46c694a5ee4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:42:46 2010 +0000

util: helpers for inline transfers

commit 9c45561fb0d7a52400093bcb2ce5f727fafd7777
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:42:25 2010 +0000

util: fix typo calculating transfer box

commit f3e98fd47f36804d019a684d49ff230df3ab0cf5
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:25:46 2010 +0000

st/vega: convert to pipe_resource

commit d1b7b00afc944f6499c83d676c7642115d62a62c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 08:37:56 2010 +0000

gallium: begin converting drivers to pipe_resource

Work in progress...

commit 51c25117f5d6da1926a2be5ecc66677952a8abf0
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 20:16:27 2010 +0000

gallium: work in progress on layering resources on top of old textures

Helper code in an aux module to avoid rewriting all the drivers.

commit fb6764d3ce95c55aa78af2f1c8cbb17b79ce1ba2
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 19:19:09 2010 +0000

heaps of wip

commit ee6b3bc730fcdaf8da3646d62f04578ec06d36a1
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 16:38:02 2010 +0000

wip2

commit 1830880212445189fe267d615075239ed17c7cc0
Merge: 90b4045 47bfbd4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 15:14:03 2010 +0000

Merge branch 'gallium-sampler-view' into gallium-resources

Conflicts:
src/gallium/include/pipe/p_context.h
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_texture.h

commit 90b4045fbc0a093fcd04efba7e045ec259c490b8
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 14:52:43 2010 +0000

wip
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
ab93f8d0679d1f2a116b98831fc4967a2b707b3a 24-Mar-2010 Brian Paul <brianp@vmware.com> st/mesa: code clean-ups, formatting fixes, comments, etc
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
3374b26f52313f629b69876bbca30845fb78b371 24-Mar-2010 Brian Paul <brianp@vmware.com> st/mesa: rename st_clear() to st_Clear()

To be consistent with other Mesa driver functions.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
f66d70b930e2a5026b0d6d7bdb047a2a78a10d7a 24-Mar-2010 Brian Paul <brianp@vmware.com> st/mesa: return GL_TRUE/GL_FALSE if return type is GLboolean

Just to be consistent.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
685340a53e1dcb2a888e634ee71ba24356befe69 09-Mar-2010 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-vertexelementcso'

Conflicts:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i965/brw_draw_upload.c
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state_derived.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_clear.c
ae7b7bf1edcf6c492b4dcc162bca28a0090f601e 09-Mar-2010 Roland Scheidegger <sroland@vmware.com> st/mesa: fix clear/drawpixels/bitmap for new cso vertex elements interface

somehow those got lost...
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
a9aa811af01273cef8a73118abdc87313f365ad3 24-Feb-2010 Michal Krol <michal@vmware.com> st/mesa: Reset clip state when clearing with quads.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
63cb6f59eac91ba34cf80ff3736568e40b094fe1 22-Feb-2010 Michal Krol <michal@vmware.com> gallium: Remove bypass_vs_clip_and_viewport from rasteriser state.

Needs testing.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
263406addb90ca7599ddfb210944ab0dd63b973c 11-Feb-2010 Roland Scheidegger <sroland@vmware.com> gallium: give pipe_stencil_ref its own cso_save/restore functions

seems cleaner, and other dynamic state like viewport is handled that way too
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
b75adabc89e34083ac302ac9bafc8d80b62ac14c 11-Feb-2010 Roland Scheidegger <sroland@vmware.com> gallium: also save/restore stencil_ref in cso_save/restore_depth_stencil_alpha

makes life of state trackers easier
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
dfc02e3784e521c07a22ff2ffc4bf02f022e9898 10-Feb-2010 Roland Scheidegger <sroland@vmware.com> st/mesa: more fixes for stencil ref change.

compiles. Might need to do something to make it possible to save/restore
stencil ref.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
28486880ca3ec39419ccee0cb1a3bedc9ef7117c 02-Feb-2010 José Fonseca <jfonseca@vmware.com> gallium: pipe/p_inlines.h -> util/u_inlines.h
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
9b346f83a7b672e913a7bb6a089d5dbd7fbdce06 28-Jan-2010 Roland Scheidegger <sroland@vmware.com> Merge commit 'origin/perrtblend'

Conflicts:
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/include/pipe/p_defines.h
cd8614b0287dc5a69725ec4ee0208fad61f7789e 22-Jan-2010 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/pipebuffer/Makefile
src/gallium/auxiliary/pipebuffer/SConscript
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/drivers/i915/i915_surface.c
src/gallium/drivers/i915/i915_texture.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/softpipe/sp_prim_vbuf.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/winsys/drm/intel/gem/intel_drm_api.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
src/gallium/winsys/drm/radeon/core/radeon_drm.c
src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
src/mesa/state_tracker/st_cb_clear.c
8410f7cde30cc1170ae266cf3a0eb7e0e37c454a 21-Jan-2010 José Fonseca <jfonseca@vmware.com> mesa: Use pipe_buffer_write_nooverlap where appropriate.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
bef610f693266c338b99511b4d1eea5d5b97644e 20-Jan-2010 Roland Scheidegger <sroland@vmware.com> gallium: prepare for per-rendertarget blend enables, writemasks, blend funcs

GL 3.0 (EXT_draw_buffers2) and other APIs allow independent blend enables and
write masks per render target, ARB_draw_buffers_blend (and other APIs) also
allow independent blend functions. Things like dithering, logic ops however
are not extended to be per rendertarget, that might be conceptually possible
however it doesn't look like any API wants to expose this.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
6906bf08cc0ca43cd4fd1a2c6f841ad87c232ece 16-Jan-2010 Vinson Lee <vlee@vmware.com> st/mesa: Remove unnecessary headers from st_cb_clear.c.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.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().
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
0bed834be4a174d20b31a6cbcf066774bf749929 03-Dec-2009 Michal Krol <michal@vmware.com> Move pf_is_depth_and_stencil() to u_format auxiliary module.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.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
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/state_tracker/st_cb_clear.c
918199fb0f5d84121e0ac5821168cd0e886b22e9 02-Oct-2009 Keith Whitwell <keithw@vmware.com> mesa/st: don't reuse vertex buffers for bitmap, clear quads

Currently using max_slots > 1 will cause synchronous rendering
if the driver flushes its command buffers between one bitmap and the
next.

Need to improve buffer_write to allow NO_WAIT (as well as no_flush)
updates to buffers where we know there is no conflict with previous
data.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
2420b283b783751d4def3a3a2a0ed8bf7bb7b6a8 28-Jul-2009 Keith Whitwell <keithw@vmware.com> mesa/st: recognize no-op scissor state when checking clear_with_quads

Some apps enable scissor but set the rectangle to the dimensions of
the window. Don't let this force us onto a slower clear path.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
de413b1ba9f30771bceacdbc160192d964a1ca63 11-Jun-2009 José Fonseca <jfonseca@vmware.com> mesa: Use new pf_is_depth_and_stencil inline.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
e50dd26ca6d0eb0d0f97c2780020ea16e3d4a687 17-Apr-2009 Thomas Hellstrom <thellstrom-at-vmware-dot-com> gallium: Create OGL state tracker wrappers for various CPU access operations.

There are two usage types of buffer CPU accesses:
One where we try to use the buffer contents for multiple draw commands in
a batch. (batch := sequence of commands that are flushed together),
like incrementally adding bitmaps to a bitmap texture that is reallocated
on flush.
And one where we assume we can safely overwrite the old buffer contexts, like
glTexSubImage. In this case we need to make sure all old drawing commands
referencing the buffer are flushed before we map the buffer.
This is easily forgotten.

Add wrappers for the most common of these operations. The first type is
prefixed with "st_no_flush" and the second type is prefixed with
"st_cond_flush", where "cond" indicates that we attmpt to only flush
if there is indeed unflushed draw commands referencing the buffer.

Prefixed functions are
screen::get_tex_transfer
pipe_buffer_write
pipe_buffer_read
pipe_buffer_map

Please use the wrappers whenever possible.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
eb168e26aa63f11a47d70c4555cae30691a2cd57 04-Apr-2009 Michel Dänzer <daenzer@vmware.com> gallium: Clean up driver clear() interface.

Only allows clearing currently bound buffers, but colour and depth/stencil in
a single call.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
ba14b043bc1ab87e8e5e46e6e909a8def9535028 04-Apr-2009 Michel Dänzer <daenzer@vmware.com> gallium: Add utility helper for packing combined depth/stencil values.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
d332f8b4efae39f09454593374ff939a08af7619 26-Mar-2009 Michel Dänzer <daenzer@vmware.com> gallium: Remove some little-used fields from struct pipe_surface.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
683e7091a953204c9aee1410ac44be3b69bae9fc 13-Mar-2009 Keith Whitwell <keithw@vmware.com> gallium: consolidate bypass_vs and bypass_clipping flags

The draw module provides a similar interface to the driver which
is retained as various bits of hardware may be able to take on
incremental parts of the vertex pipeline. However, there's no
need to advertise all this complexity to the state tracker.

There are basically two modes now - normal and passthrough/screen-coords.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
fa0f48504a32642d688d4b81f62eea54c693b23f 13-Mar-2009 Keith Whitwell <keithw@vmware.com> gallium: no need to keep a copy of shader tokens in state tracker

Any driver who needs a copy of the shader tokens must organize to
do so itself. This has been the case for a long time, but there
was still defensive code in the state tracker, which is now removed.

Any bugs resulting from this need to be fixed in the offending driver...
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
5e27cd46c04a9e7b5904cc014bffd0f4daae31fe 04-Mar-2009 Michel Dänzer <daenzer@vmware.com> gallium: Unify reference counting.

The core reference counting code is centralized in p_refcnt.h.

This has some consequences related to struct pipe_buffer:

* The screen member of struct pipe_buffer must be initialized, or
pipe_buffer_reference() will crash trying to destroy a buffer with reference
count 0. u_simple_screen takes care of this, but I may have missed some of
the drivers not using it.
* Except for rare exceptions deep in winsys code, buffers must always be
allocated via pipe_buffer_create() or via screen->*buffer_create() rather
than via winsys->*buffer_create().
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
693fac8ae2e5812265222b1335695bd33b90bd8a 24-Feb-2009 José Fonseca <jfonseca@vmware.com> gallium: Add pipe_buffer_write/read inlines.

Saves code, and will simplify future interface changes.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
85b0c171c04c00b4ca9e11a1c79872f5e0cbaf9c 19-Feb-2009 José Fonseca <jfonseca@vmware.com> mesa: Free the util shaders with the gallium's FREE.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
1a2f4dd8768703fbc1b2a0d5be342345644805b4 12-Feb-2009 Brian Paul <brianp@vmware.com> mesa: consistantly use mesa memory-functions in gallium state tracker

Use _mesa_malloc(), _mesa_free(), etc everywhere, not malloc(), free(), etc.
Still using CALLOC_STRUCT() at this point.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
a7e72231e3c76a9410d192441da309002ea6422d 26-Jan-2009 Zack Rusin <zackr@vmware.com> gallium: standardize naming of masks
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
8abc860bd46a6cd584f9a64cb4613be76f82db06 15-Dec-2008 Alan Hourihane <alanh@tungstengraphics.com> Merge commit 'origin/gallium-0.1' into gallium-0.2

Conflicts:

src/gallium/winsys/gdi/SConscript
d2c2e9316d043ab584794a3524f22776deb4c777 12-Dec-2008 Keith Whitwell <keith@tungstengraphics.com> gallium: avoid mapping same vertex buffer in subsequent frames

Quite a few util modules were maintaining a single vertex buffer over multiple
frames, and potentially reusing it in subsequent frames. Unfortunately that
would force us into syncrhonous rendering as the buffer manager would be
forced to wait for the previous rendering to complete prior to allowing the
map.

This resolves that issue, but requires the state tracker to issue a few new
flush() calls at the end of each frame.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
80a718a63bf2fa817e346f0f5731ee9ef2e0e68b 05-Nov-2008 Brian Paul <brian.paul@tungstengraphics.com> Merge commit 'origin/gallium-0.1' into gallium-0.2

Conflicts:

src/gallium/auxiliary/rtasm/rtasm_execmem.c
src/mesa/shader/slang/slang_emit.c
src/mesa/shader/slang/slang_log.c
src/mesa/state_tracker/st_atom_framebuffer.c
1c6fe6564be28ac3e72fa8e6b1616ae0e22a7bc7 30-Oct-2008 José Fonseca <jrfonseca@tungstengraphics.com> softpipe: Don't call pipe_buffer_destroy directly.

Use pipe_buffer_reference instead.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
6c6c2f1d23b02491c60e0cbce6815b468ff14c08 18-Oct-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: add some checks for null surface pointers in state tracker

Fixes some segfaults in low memory situations.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
79200c908790238374c6059b9f781c9873584d95 05-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: document that clear color is intentionally always PIPE_FORMAT_A8R8G8B8_UNORM
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
f637a96e85a51a66f2c53b91118a6815bb61d6e6 03-Sep-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.

We want to use the pipe_buffer_* inlines everywhere, but a pipe context
is not always available nor is it needed.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
6c534b830c6f5427c391c5225c34561141c201ba 15-Jul-2008 Michal Krol <michal@tungstengraphics.com> st: Silence compiler warnings on Windows.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
4b4ac9ed3497d0cbf58311b83ed4a08a98bb854c 20-May-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: fix mem leaks
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
54507125e735ffa595e252282eaabf38095c21e1 02-May-2008 Alan Hourihane <alanh@tungstengraphics.com> Some changed for non-C99 compilers
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
99fba5466bfd14c4e052041c0571821be529e762 30-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: use new buffer wrapper functions in p_inlines.h

This allows us to remove most of the direct references to winsys in the state tracker.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
a770d40c3d4977e2c134661b5d8facaea446b6ea 24-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: use cso_destroy_vertex/fragment_shader() functions

Also, rearrange the st_destroy_context() code a bit to prevent some
invalid/NULL ptr derefs during tear-down.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
01dfa6cde157321f565bab949f23f367ed20fa0e 21-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> use cso fs/vs handle functions
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
65efe807b9067aa07b382e3c4d9cea6222c5fc6b 21-Apr-2008 Michel Dänzer <michel@tungstengraphics.com> gallium: Use CSO cache for shaders.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
073d9a28c2dc955956c940be6fcc4b3ab354cc6c 18-Apr-2008 Michel Dänzer <michel@tungstengraphics.com> gallium: Always pass colour clear value to driver as A8R8G8B8.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
124e1345c9ba4abe17bb04b8781ec0fe803eda7b 03-Apr-2008 Brian <brian.paul@tungstengraphics.com> gallium: set rasterizer.gl_rasterization_rules = 1 in a few more places
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
ce5c867cbb17b2444ebc3db5c6a03cee5e2edb8a 03-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: streamline viewport/raster/shader state for clearing with quads

Move init of these items to new st_init_clear().
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
c4f8c8b304a47b2490fe5b1d133e314b045854df 03-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: remove the temporary/test TEST_DRAW_PASSTHROUGH code
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
4f67a3f7d3bdeaa8d16d877ce9b277c97bd2f6b4 03-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: use identity viewport fix broken clear_with_quad() path

Since bypass_clipping is set and we're specifying quad vertexes in window
coords, setup identity viewport.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
6f8286163c79a8187c2912a9b673a6f11f4f60c6 27-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: Update calls to the simple shader functions
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
c2044eaca96abfae153651ec609b5af2fd0b6fb0 20-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: in clear_with_quad() check fb orientation, invert Y if needed
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
e1406c8d2366dccac0037e5329217d1c8c265eaf 20-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: create one vertex buffer and re-use, also enable bypass_clipping

Quad clears should be a little more efficient now.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
85e4ec6d118e340eaccd176aa622221642a2e754 20-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: use the utility pasthrough shaders

This avoids the Mesa->TGSI translation step.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
7d95efde0a0e13e13c59444703bc47eb13926385 19-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: implement CSO save/restore functions for use by meta operations (blit, gen-mipmaps, quad-clear, etc)

Also, additional cso_set_*() functions for viewport, framebuffer, blend color,
etc. state.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
bab9209e12ec16ef3b33d46be8e6154f8c8f182d 18-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: restore additional state after clearing with quad
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
f1cfb1e3676fc9e1fea6698ed5e8e79d2b094dae 18-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: use new color packing utility functions
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
5bae5871f03c96eb173cb55d7e8a846a2c4bd4a0 14-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: for TEST_DRAW_PASSTHROUGH, pass inClipCoords=FALSE to st_draw_vertices()

When pass-through mode is fully supported we'll clean this up more.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
3e625ce18e35b2b0343962f93480abf4bf9b188a 13-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: add some temporary code for testing draw module vertex passthrough

Set TEST_DRAW_PASSTHROUGH=1, run progs/trivial/clear-scissor
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
d91e62e9c6ff81c91b83af883281c1e205c6bf35 13-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: in clear_stencil_buffer() check surface format to determine stencil clear value

... as we do for the Z and Z+stencil cases
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
339e7ec6805e6de8794514c0a935081b5d36d38f 12-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: rework CSO-related code in state tracker

Use the code in cso_context.c rather than st_cache.c.
Basically, binding of state objects now goes through the CSO module.
But Vertex/fragment shaders go through pipe->bind_fs/vs_state() since they're
not cached by the CSO module at this time.

Also, update softpipe driver to handle NULL state objects in various places.
This happens during context destruction. May need to update other drivers...
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
10d83df3a9cb76a3db76ec9970d7108cf9255d77 28-Feb-2008 Keith Whitwell <keith@tungstengraphics.com> gallium: State tracker cleanups wrt clears.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
cf5ef20f436ac1d3efde2b7bff698decccb029e3 14-Feb-2008 Keith Whitwell <keith@tungstengraphics.com> gallium: Cleanups related to clears.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
9677336845511be4852520d2e50f91f1df362f58 13-Feb-2008 Brian <brian.paul@tungstengraphics.com> gallium: rename st_fragment_program's fs field to cso to match st_vertex_program
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
0b64ee6960f9e099bc1a6ca6fa10720fee875b3a 08-Feb-2008 Brian <brian.paul@tungstengraphics.com> gallium: added inClipCoords param to st_draw_vertices() to indicate coord system of vertices

Also, export st_make_passthrough_vertex_shader() from st_cb_drawpixels.c
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
16ed55c6412d2bdc5bff78e99114490223fb4afe 28-Jan-2008 Brian <brian.paul@tungstengraphics.com> gallium: check if surface has defined status in check_clear_depth_with_quad()

This was part of Keith's patch from Friday.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
ac95fee4fffee77bb7bd798d094ed2e3a7c4019b 15-Jan-2008 Brian <brian.paul@tungstengraphics.com> Fix problems with vertex shaders and the private draw module.

The CSO returned by pipe->create_vs_state() can't be passed to the
private draw module. That was causing glRasterPos to blow up.
Add a 'draw_shader' field to st_vertex_program for use with the private
draw module.
Change st_context->state.vs type from cso_vertex_shader to st_vertex_program.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
bfe79babf99e6b9435195178d1ea64687c60d161 17-Dec-2007 Keith Whitwell <keith@tungstengraphics.com> gallium: incorporate alpha state into depth_stencil state object.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
54fc80ab31f89520d3119196bfa9c6332b35fe2f 08-Dec-2007 Brian <brian.paul@tungstengraphics.com> Define PIPE_FORMAT_ tokens as an enum set, rather than #defines.

This makes debugging a _lot_ easier.
In gdb, "print format" used to display 613570600, now you see PIPE_FORMAT_A8R8G8B8_UNORM.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
d3e05111c8c8f87db7f577eb7096d65479a7e481 08-Dec-2007 Brian <brian.paul@tungstengraphics.com> Replace "duplicate" formats
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
146483d5412e14d6be63a9b9116ff683956ee294 05-Dec-2007 Brian <brian.paul@tungstengraphics.com> added PIPE_FORMAT_U_B8_G8_R8_A8 case in color_value()
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
0191570f024ba787799ca2bccd46549a8af74aa9 20-Nov-2007 Brian <brian.paul@tungstengraphics.com> initial support for PIPE_FORMAT_Z24_S8
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
c0b27149458c1c70b8664cdedb2be842229f4359 08-Nov-2007 Brian <brian.paul@tungstengraphics.com> simplify depth_value(), return proper value for Z16 format
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
187b631b6b3c504fa334e33f4b1af433b6232bac 07-Nov-2007 Brian <brian.paul@tungstengraphics.com> Float->uint conversion for PIPE_FORMAT_U_Z32 resulted in overflow in depth_value(). Special-case it.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
ef6940f17220f1149dce6daf548bd0103d91a281 27-Oct-2007 Brian <brian.paul@tungstengraphics.com> Move mesa_to_tgsi.[ch] to state_tracker
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
616112ea2e0eefea356be228bff8754ee955d8b3 26-Oct-2007 Brian <brian.paul@tungstengraphics.com> silence warning
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
f953c223df26293f955f7d0621a6f917e9cc9768 18-Oct-2007 Brian <brian.paul@tungstengraphics.com> remove #include vf.h
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
2dd27cfdd981b3b2c973066082b1168c4cb6f42c 17-Oct-2007 Brian <brian.paul@tungstengraphics.com> Fix viewport Z scale/bias to get the right Z values from drawing the quad.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
45700ac280ddd5e23c57763129257d7fba171d9d 17-Oct-2007 Brian <brian.paul@tungstengraphics.com> use new st_clear_accum_buffer() function
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
e9df20c2fa7df8458a9f0781f31de51c4944d41f 03-Oct-2007 Michel Dänzer <michel@tungstengraphics.com> Some minor cleanups.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
636480cc9c7836daf879cb45644900922cf31f47 28-Sep-2007 Brian <brian.paul@tungstengraphics.com> Instead of linked program pairs, keep a list of vertex programs translated for each fragment program.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
0dfa5506a318b202ac955a59cc7c9b22b5ff3867 26-Sep-2007 Brian <brian.paul@tungstengraphics.com> st_draw_vertices() no longer needs attribs[] array parameter
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
40c543eb71368c646259afb87d5c76551f6b45b7 25-Sep-2007 Brian <brian.paul@tungstengraphics.com> Translate mesa vertex/fragment programs to TGSI programs at same time to do proper linking.

Previously, programs were translated independently during validation.
The problem is the translation to TGSI format, which packs shader
input/outputs into continuous slots, depends on which vertex program is
being paired with which fragment shader. Now, we look at the outputs
of the vertex program in conjunction with the inputs of the fragment shader
to be sure the attributes match up correctly.

The new 'linked_program_pair' class keeps track of the associations
between vertex and fragment shaders. It's also the place where the TGSI
tokens are kept since they're no longer per-program state but per-linkage.

Still a few loose ends, like implementing some kind of hash/lookup table
for linked_program_pairs.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
46f606e9715145218331a04f0d1f66fb9f8531d6 21-Sep-2007 Brian <brian.paul@tungstengraphics.com> reenable some clear code that was temporarily disabled
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
6cb87cf26f904b891faa42268f373864fa33541d 21-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Make the alpha test state a cso.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
086734502a614e7778533018846ee66a66df9821 20-Sep-2007 Brian <brian.paul@tungstengraphics.com> Checkpoint: vertex attribute clean-up.

Remove/disable the attrib/slot mapping arrays in a few places.
Work in progress...
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
a6c0c5532f7bfa50ae54c36cf4d74ad4b9f926f8 20-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Convert depth_stencil state to the new semantics.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
daf5b0f41baa50951e7c2f9ea5cd90b119085a7f 20-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Switch fragment/vertex shaders to the new caching semantics.

Allow driver custom allocation within cached objects. The shaders
are currently twiced (by cso layer and by the program itself).
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
37cf13ed9a429c755f121daa1776b1b30a985ab3 20-Sep-2007 Brian <brian.paul@tungstengraphics.com> Checkpoint: replacement of TGSI_ATTRIB_x tokens with input/output semantics.

TGSI_ATTRIB_x tokens still present and used in a few places.
Expanded set of TGSI_SEMANTIC_x tokens for describing the meaning
of inputs/outputs. These tokens are in a crude state ATM.
Lots of #if 0 / disabled code to be removed yet, etc...
Softpipe and i915 drivers should be in working condition but not heavily tested.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
fe555c39bb7fd530298b5be4a8f06bff41726c86 19-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Convert the rasterizer cso to the new semantics.

Basically make cso hold the driver specific struct, while
managing the template.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
c0bf7322088715bb411068c3d631b0c4be8cdff5 19-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Redo the cso cache to map driver data in a lot more pleasing way.

Drivers can now create whatever they want from the state template. We
use cso_state object to store the template (necessary during lookups),
and the driver data. Convert blend state to the new semantics.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
f22e920f478d8732695913ec0d1f7244b451a8f5 19-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Finish up conversions of shaders to immutable objects.

Create/Delete calls should be split since in create we'll be
compiling them so we want to know which one it is (vertex/fragment).
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
bb611c5f1f6aec7ac51d4fa3301422b47f6de795 19-Sep-2007 Brian <brian.paul@tungstengraphics.com> Checkpoint: rework shader input/output register mapping.

This is a step toward removing TGSI_ATTRIB_ tokens.
Basically, when translating Mesa programs to TGSI programs, pass in input and
output register re-maps, plus interpolation info.
There's some known breakage (cubemap.c) so more to be done...
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
ccd63b54cfbb6bb241d55f7ac95afcd14819f469 18-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Convert shader to an immutable state object.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
294401814d1d89cc731de1c22c25333aa5d59374 17-Sep-2007 Zack Rusin <zack@tungstengraphics.com> converting the setup state to immutable object and renaming it to rasterizer state
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
d6ac959833a8e40a27907940969c622692f749b1 17-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Combing depth and stencil objects and making them immutable.

Converting depth and stencil objects into a single state object
(d3d10 like) and making it immutable.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
e16c045b83f5c5b4f4064df67623bb76b46b6619 17-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Implementing a better hash, removing state_tracker dependency from the cache.

Replacing mesa's main hash with one that handles collisions, moving state_tracker
related caching to the state tracker to keep cso cache independent of it. Cleanups.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
9780327c5d95586a88fce94d7b47342355ead118 14-Sep-2007 Zack Rusin <zack@tungstengraphics.com> First stab at immutable state objects (create/bind/delete)

We want our state objects to be immutable, handled via the
create/bind/delete calls instead of struct propagation.
Only implementing the blend state to see how it would look like
and work.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
def8bb784cf403474eea3b4d25a3262155dc38f2 25-Aug-2007 Brian <brian.paul@tungstengraphics.com> code re-org, minor improvements
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
d8b16d416de95daa4f0ede9b839bdbf0fa6bf1b1 24-Aug-2007 Brian <brian.paul@tungstengraphics.com> Checkpoint: new vertex/fragment attribute naming

Replace VF_ATTRIB_x with TGSI_ATTRIB_x
When converting mesa programs to TGSI programs, also convert the InputsRead
and OutputsWritten to a mask of TGSI_ATTRIB_ bits.
Still need to do conversion for vertex programs...
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
c0bb4ba9e665e40a325d82aa2ee48d7b8abd603b 22-Aug-2007 Brian <brian.paul@tungstengraphics.com> Rework of shader constant buffers.

They're now totally independent of the actual shaders.
Also, implemented in terms of pipe_buffer_handles/objects.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
d640198b2d52c104c707522e79d53a36f708ccd0 20-Aug-2007 Brian <brian.paul@tungstengraphics.com> Set viewport state so viewport matches window dims.

trivial/readpixels.c works again.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
d054331c4788b0a5f13f4d7a9b497d274d267acb 21-Aug-2007 Brian <brian.paul@tungstengraphics.com> Update glClear and glDrawPixels code.

Since they're implemented by drawing quadrilaterals (and go through vertex
transformation and viewport mapping) we don't have to invert Y coords.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
51da8ee85eccf0df3721cbd863cd174382d1ddfd 21-Aug-2007 Brian <brian.paul@tungstengraphics.com> Start to remove the temporary draw_vb() and draw_vertices() code.

new st_draw_vertices() utility used by glClear and glDrawPixels
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
5b59e6116db5241dc9a08b98e5eb8f0c770c05ea 17-Aug-2007 Brian <brian.paul@tungstengraphics.com> Use simple st->pipe->clear() in more cases for depth/stencil clears.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
04f2078860d0649b016e9281f86725cb42e15b42 17-Aug-2007 Brian <brian.paul@tungstengraphics.com> added assertions, disable debug output
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
78d6d5e8fe7281f67b7ce8d9911e4f280435b1f5 17-Aug-2007 Brian <brian.paul@tungstengraphics.com> make pass-through vertex shader
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
de653b4c9bddcec46f3ddf411ec082dd178d7b38 16-Aug-2007 Brian <brian.paul@tungstengraphics.com> Begin added vertex shader state/support.

Renamed pipe_fs_state to pipe_shader_state since it can be used for both
vertex and fragment shader info.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
94a4910c9a1ef48470f45c01c379254cb033119f 16-Aug-2007 Brian <brian.paul@tungstengraphics.com> added PIPE_PRIM_x tokens (matching GL), use in a few places
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
8571c4babf82b2fe78dba06458070eb4010cfc18 14-Aug-2007 Brian <brian.paul@tungstengraphics.com> added an assertion
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
1c8bcc733d695732ca704565b3a10ac5f4172ea3 11-Aug-2007 Brian <brian.paul@tungstengraphics.com> Y invert, clean-up
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
be57c1aac46e6af2f1dd8ce1f10334d034ac7464 10-Aug-2007 Brian <brian.paul@tungstengraphics.com> comments
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
f5713c7d2e7ba8e1170fd9b1dd95379662ab6117 09-Aug-2007 Brian <brian@i915.localnet.net> Checkpoint intel_renderbuffer removal.

Remove surface ptr from gl_renderbuffer.
Use st_renderbuffer in most places.
More clean-up.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
7faa3542f062dfa32e1596f5ce2b531cb8b4eeef 09-Aug-2007 Brian <brian@i915.localnet.net> setup frag shader state: color pass-through program
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
6da9234fd437f97267e7831f034c78b31156d939 06-Aug-2007 Brian <brian.paul@tungstengraphics.com> New st_init_*_functions() to initialize the driver functions table.

We need to do these initializations before initializing the Mesa context
because context init involves creating texture/program/etc objects.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
fc9ff31298952f0a7e4cdfae95059144a5be6e1b 03-Aug-2007 Brian <brian@i915.localnet.net> trim #includes
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
47fdaf0ed9ef2f89cdaa97d0d48b1f1194d710c6 03-Aug-2007 Brian <brian@i915.localnet.net> pipe->clear() now takes a surface, rather than color/depth/stencil flags.

pipe->clear() only used to clear whole buffers (no scissor) w/out masking.
Draw a colored quadrilateral in all other cases.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
406da44da31f71afd98fc45e2bbfbf41deff1d12 02-Aug-2007 Brian <brian@i915.localnet.net> setup more state for clear_with_quad()
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
55314f8f311bff065f609ff17c8421a8d5216b84 02-Aug-2007 Brian <brian@i915.localnet.net> Implement new draw_vertices() path for simple vertex array drawing, use it for glClear.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
0e067f1fb20094417e84e1b18f2302251cece2ca 02-Aug-2007 Keith Whitwell <keith@tungstengraphics.com> Remove references to accum buffers in softpipe.

Also some minor clear fixes.
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
e415dced44bd716185e63df0c8c17f57de2b29e2 02-Aug-2007 Brian <brian@i915.localnet.net> sketch out clearing with quads
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c
4f442d9ef5db42867c99a7288b4114a0340f73e6 02-Aug-2007 Keith Whitwell <keith@tungstengraphics.com> Reroute some clear functionality.

Still require the intelClear() call to flush batchbuffers. That will be
removed later...
/external/mesa3d/src/mesa/state_tracker/st_cb_clear.c