History log of /external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
322a2938f320f8a39cb6d86f249a339625a8772a 27-Jul-2012 Brian Paul <brianp@vmware.com> st/mesa: use STATIC_ASSERT in a few places
/external/mesa3d/src/mesa/state_tracker/st_draw.c
c4c8c7a8f9757f8670ec9cde514cee11ed33c4cb 18-Jun-2012 Fredrik Höglund <fredrik@kde.org> st/mesa: Add support for GL_ARB_base_instance

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
b4753dafcce4fc771ec3d7e3d5781bd4cae20326 12-May-2012 Marek Olšák <maraeo@gmail.com> st/mesa: atomize vertex array state

This moves the state validation to where all the other states are validated.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
c3991e1c57d3e09fd17f0bd868b73b35cca96d6f 18-May-2012 Brian Paul <brianp@vmware.com> st/mesa: remove unused pipe variable
/external/mesa3d/src/mesa/state_tracker/st_draw.c
eef193560e5d59b1e38e01e2387e4b1897e05216 08-May-2012 Jordan Justen <jordan.l.justen@intel.com> state_tracker: remove software handling of primitive restart

The VBO module now can handle primitive restart in software
if required. Therefore this support is no londer required.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
bb4c5d72d7c7cb1d9e7016e2c07c36875f30011a 11-May-2012 Marek Olšák <maraeo@gmail.com> Merge branch 'gallium-userbuf'

Conflicts:
src/gallium/docs/source/screen.rst
src/gallium/drivers/nv50/nv50_state.c
src/gallium/include/pipe/p_defines.h
src/mesa/state_tracker/st_draw.c
c5e473fbe25b20cb27aac44ff6e269701abd33a8 16-Apr-2012 Marek Olšák <maraeo@gmail.com> mesa: add gl_context::NewDriverState and use it for vertex arrays

The vbo module recomputes its states if _NEW_ARRAY is set, so it shouldn't use
the same flag to notify the driver. Since we've run out of bits in NewState
and NewState is for core Mesa anyway, we need to find another way.

This patch is the first to start decoupling the state flags meant only
for core Mesa and those only for drivers.

The idea is to have two flag sets:
- gl_context::NewState - used by core Mesa only
- gl_context::NewDriverState - used by drivers only (the flags are defined
by the driver and opaque to core Mesa)

It makes perfect sense to use NewState|=_NEW_ARRAY to notify the vbo module
that the user changed vertex arrays, and the vbo module in turn sets
a driver-specific flag to notify the driver that it should update its vertex
array bindings.

The driver decides which bits of NewDriverState should be set and stores them
in gl_context::DriverFlags. Then, Core Mesa can do this:
ctx->NewDriverState |= ctx->DriverFlags.NewArray;

This patch implements this behavior and adapts st/mesa.
DriverFlags.NewArray is set to ST_NEW_VERTEX_ARRAYS.

Core Mesa only sets NewDriverState. It's the driver's responsibility to read
it whenever it wants and reset it to 0.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
50f7e75f9e945cfbb2ae868cc961a2205a0b6e73 23-Apr-2012 Marek Olšák <maraeo@gmail.com> mesa: move gl_client_array*[] from vbo_draw_func into gl_context

In the future we'd like to treat vertex arrays as a state and
not as a parameter to the draw function. This is the first step
towards that goal. Part of the goal is to avoid array re-validation
for every draw call.

This commit adds:
const struct gl_client_array **gl_context::Array::_DrawArrays.

The pointer is changed in:
* vbo_draw_method
* vbo_rebase_prims - unused by gallium
* vbo_split_prims - unused by gallium
* st_RasterPos

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
8c5ff5a41fa63634e2cc8037a0a601c60d233537 30-Apr-2012 Marek Olšák <maraeo@gmail.com> st/mesa: unmap upload buffer after uploading indices and constants
/external/mesa3d/src/mesa/state_tracker/st_draw.c
01bf5569c44389c1127bbb9e873c8a234ac92ff7 26-Apr-2012 Marek Olšák <maraeo@gmail.com> st/mesa: reorder code in draw_vbo
/external/mesa3d/src/mesa/state_tracker/st_draw.c
944b97990bbdf61b2be2e92c3641d3240e12fe58 26-Apr-2012 Marek Olšák <maraeo@gmail.com> st/mesa: remove more unnecessary code in draw_vbo

The variables set here are not used anywhere.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
bf469f4edc60bd1c5fd770cb231b8d5ab801427f 24-Apr-2012 Marek Olšák <maraeo@gmail.com> gallium: add void *user_buffer in pipe_index_buffer

Adapted drivers: i915, llvmpipe, r300, r600, radeonsi, softpipe.

User index buffers have been disabled in nv30, nv50, nvc0 and svga to keep
things working.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
4552fd50d959ab99546cfa994f8ba5bdf5d66bc7 24-Apr-2012 Marek Olšák <maraeo@gmail.com> gallium: add void *user_buffer in pipe_vertex_buffer

This reduces CPU overhead in st_draw_vbo and removes a lot of unnecessary code
in that function which was required only to comply with the gallium interface,
but wasn't any useful really.

Adapted drivers: i915, llvmpipe, r300, softpipe.
No changes required in: r600, radeonsi.

User vertex buffers have been disabled in nv30, nv50, nvc0 and svga to keep
things working.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
8c655f499cf61211146a3d38f77532541f88aa88 24-Apr-2012 Marek Olšák <maraeo@gmail.com> st/mesa: make user index buffers optional

v2: use a separate upload buffer for indices
/external/mesa3d/src/mesa/state_tracker/st_draw.c
989bdaab514cce808eea4b9d792656aaeee8603c 24-Apr-2012 Marek Olšák <maraeo@gmail.com> st/mesa: only set index buffer when drawing is indexed

and restructure the code a bit
/external/mesa3d/src/mesa/state_tracker/st_draw.c
76c4760e5d8522780d770f9a0a62d710806206a0 11-Apr-2012 Marek Olšák <maraeo@gmail.com> st/mesa: use cso_set_index_buffer and cso_draw_vbo

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
299c9052e832712654865af8dbd0ed4bf055d124 02-Apr-2012 Brian Paul <brianp@vmware.com> st/mesa: fix max_offset computation for base vertex

Add the maximum base vertex offset to max_index for computing the
buffer size. Fixes a failed assertion in the u_upload_mgr.c code with
the VMware svga driver.

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

v2: incorporate Marek's suggestions.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
0605c6d861d0e59baadf725f3530319b32b2a344 01-Mar-2012 Brian Paul <brianp@vmware.com> Revert "st/mesa: don't unreference user attribs up front."

This reverts commit 72931ca4b9fb1002f5b62b74f7f7f32e94e80fde.

This commit caused a few piglit regressions (quad-invariance, draw-batch,
etc) with the vmware svga driver.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
3b744cb61afe0ded6c44f2419e4e4e27600197ba 01-Mar-2012 Brian Paul <brianp@vmware.com> st/mesa: remove old assertion
/external/mesa3d/src/mesa/state_tracker/st_draw.c
72931ca4b9fb1002f5b62b74f7f7f32e94e80fde 09-Feb-2012 Dave Airlie <airlied@redhat.com> st/mesa: don't unreference user attribs up front.

postpone unreferences until end of function, as the ones in use will
get naturally dereferenced.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
42d4972bf0b147b0241c2be7e6579fd64cf2c216 31-Dec-2011 Yuanhan Liu <yuanhan.liu@linux.intel.com> vbo: introduce vbo_get_minmax_indices function

Introduce vbo_get_minmax_indices() function to handle the min/max index
computation for nr_prims(>= 1). The old code just compute the first
prim's min/max index; this would results an error rendering if user
called functions like glMultiDrawElements(). This patch servers as
fixing this issue.

As when nr_prims = 1, we can pass 1 to paramter nr_prims, thus I made
vbo_get_minmax_index() static.

v2: per Roland's suggestion, put the indices address compuation into
vbo_get_minmax_index() instead.

Also do comination if possible to reduce map/unmap count

v3: per Brian's suggestion, use a pointer for start_prim to avoid
structure copy per loop.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
214b87aa0469a12ea72d624cfaee0ca46179ec5f 01-Jan-2012 Marek Olšák <maraeo@gmail.com> gallium: fix behavior of pipe_buffer_map_range

To match what transfer_map returns. Really, subtracting the offset leads
to bugs if someone expects it to work exactly like transfer_map.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
7e291e922e53a70d84751538b15c6c16310cca7f 03-Jan-2012 Christoph Bumiller <e0425955@student.tuwien.ac.at> st/mesa: use SINT/UINT formats for VertexAttribIPointer

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

v2: added assertion that packed formats are not pure integer
/external/mesa3d/src/mesa/state_tracker/st_draw.c
efa1fac2158c9146b87f0d4340a864661721de21 28-Dec-2011 Yuanhan Liu <yuanhan.liu@linux.intel.com> vbo: introduce vbo_sizeof_ib_type() function

introduce vbo_sizeof_ib_type() function to return the index data type
size. I see some place use switch(ib->type) to get the index data type,
which is sort of duplicate.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
14bb957b996dcc5392b8fa589bd3ffa5c55cb6b4 09-Dec-2011 Marek Olšák <maraeo@gmail.com> mesa: implement DrawTransformFeedback from ARB_transform_feedback2

It's like DrawArrays, but the count is taken from a transform feedback
object.

This removes DrawTransformFeedback from dd_function_table and adds the same
function to GLvertexformat (with the function parameters matching GL).

The vbo_draw_func callback has a new parameter
"struct gl_transform_feedback_object *tfb_vertcount".

The rest of the code just validates states and forwards the transform
feedback object into vbo_draw_func.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
56b870e44106188f425df6eb45b7a394f0420e5e 23-Nov-2011 Brian Paul <brianp@vmware.com> mesa: check for null ptr in _mesa_is_bufferobj()

This simplifies a few callers. And it adds a bit of robustness.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
a43908fe62c39b84f014ddf2bee15cd07a77fc0d 18-Nov-2011 Brian Paul <brianp@vmware.com> st/mesa: rewrite the primitive restart fallback code

Previously we were mapping/unmapping the index buffer each time we
found the restart index in the buffer. This is bad when the restart
index is frequently used. Now just map the index buffer once, scan
it to produce a list of sub-primitives, unmap the buffer, then draw
the sub-primitives.

Also, clean up the logic of testing for indexed primitives and calling
handle_fallback_primitive_restart(). Don't call it for non-indexed
primitives.

v2: per Jose, only map the relevant part of the index buffer with
pipe_buffer_map_range()

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
d0836eda5e7d8e9093c1975ef545e3b3deb287a1 14-Nov-2011 Brian Paul <brianp@vmware.com> st/mesa: check for missing VBO in setup_interleaved_attribs()

This fixes a crash with the piglit vbo-too-small test.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
be4524aeed7fb67bdc45861d299d4c5ca99c4d6c 19-Oct-2011 Ian Romanick <ian.d.romanick@intel.com> Delete code made dead by previous uniform related patches

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
719909698c67c287a393d2380278e7b7495ae018 19-Oct-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Rewrite the way uniforms are tracked and handled

Switch all of the code in ir_to_mesa, st_glsl_to_tgsi, glUniform*,
glGetUniform, glGetUniformLocation, and glGetActiveUniforms to use the
gl_uniform_storage structures in the gl_shader_program.

A couple of notes:

* Like most rewrite-the-world patches, this should be reviewed by
applying the patch and examining the modified functions.

* This leaves a lot of dead code around in linker.cpp and
uniform_query.cpp. This will be deleted in the next patches.

v2: Update the comment block (previously a FINISHME) in _mesa_uniform
about generating GL_INVALID_VALUE when an out-of-range sampler index
is specified.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
6b72eded19398f9599d76ebd4cbaec52fc7a252d 21-Oct-2011 Brian Paul <brianp@vmware.com> st/mesa: fix a bug in and re-org setup_interleaved_attribs()

We were mis-computing the size of the user-space vertex buffer in
some circumstances. This led to a failed assertion at u_inlines.h:222
when using the VMware svga driver.

For example, if we had arrays such as:

array[0]: element_offset = 12, stride = 24
array[1]: element_offset = 0, stride = 24

We'd mistakenly compute 'bytes' to be 12 bytes too small.

I've reorganized the function too. By time it's called, we know that
we've got interleaved arrays either all in one VBO or all in user memory
and the stride is equal for all arrays.

Move the code that lived inside the attr==0 test after the loop.

In the loop we compute the true vertex size. That size factors into the
pipe->redefine_user_buffer() call later. Using the vertex size instead
of array[0]'s element_offset fixes the failed assertion.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
f664d6a2f3575167c4cf83815ea923c379b14fa5 21-Oct-2011 Vinson Lee <vlee@vmware.com> st/mesa: Initialize variable.

ptr is uninitialized if ib is NULL.

Fixes Coverity uninitialized pointer read defect.

Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
d89c6689df045bdd1760174bf33ea33190f6c43d 02-May-2011 Brian Paul <brianp@vmware.com> st/mesa: remove primitive restart assertion

Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
07c3e752f865b083b08d472f635b12ffbd1595d5 20-Apr-2011 Jakob Bornecrantz <jakob@vmware.com> st/mesa: Don't have indices buffers map when calling draw
/external/mesa3d/src/mesa/state_tracker/st_draw.c
72bd2b603bc400371a92d34ab59dbb2d2ef7a123 15-Apr-2011 Jakob Bornecrantz <jakob@vmware.com> st/mesa: Implement primitive restart in software
/external/mesa3d/src/mesa/state_tracker/st_draw.c
163761f128913825c617f6223dc141c7f942822f 25-Sep-2011 Marek Olšák <maraeo@gmail.com> st/mesa: don't compute index buffer bounds for per-instance data
/external/mesa3d/src/mesa/state_tracker/st_draw.c
f154ac9cc251c9c5f527a09819a7fb9c5595267f 19-Feb-2011 Dave Airlie <airlied@redhat.com> mesa/st: add support for 2101010 vertex format conversion.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
d91dc4a356e5509116572770b89d0a7520a55bfc 24-Jun-2011 Brian Paul <brianp@vmware.com> st/mesa: fix all_varyings_in_vbos() regression

Fixes regression from d631c19db47181129811080bfa772b210d762d4d.
See http://bugs.freedesktop.org/show_bug.cgi?id=38626
/external/mesa3d/src/mesa/state_tracker/st_draw.c
99feecc7d1d0a6efb2511859973d6029d9fed9fd 14-Jun-2011 Brian Paul <brianp@vmware.com> st/mesa: replace st->ctx with ctx
/external/mesa3d/src/mesa/state_tracker/st_draw.c
c1477f6ffe6a3d032dbcc76a5f506a7293e2fece 14-Jun-2011 Brian Paul <brianp@vmware.com> st/mesa: fix comments, whitespace
/external/mesa3d/src/mesa/state_tracker/st_draw.c
ee231b30a804438c89da7987d4546f14e0d9179a 14-Jun-2011 Brian Paul <brianp@vmware.com> st/mesa: improved is_interleaved_arrays() checking

Check that the difference in array pointers/offsets from the 0th
array are less than the stride, for both VBOs and user-space arrays.
Previously, we were only doing this for the later.

This tightens up the interleaved array test and fixes a problem with
the llvmpipe driver where we were creating way too many vertex fetch
variants only because the pipe_vertex_element::src_offset values were
changing frequently. This change results in a 5x speed-up for one of
the viewperf tests.

Also, clean up the function to make it easier to understand.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
317247390a3af61f2913e4446959975c9ab2478a 12-Jun-2011 Marek Olšák <maraeo@gmail.com> st/mesa: rebind vertex arrays if _NEW_BUFFER_OBJECT is dirty

This fixes piglit/vbo-bufferdata. It's a regression in 7.11.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
a25271fcb8d12298e64890cad25919938ae12018 08-Jun-2011 Brian Paul <brianp@vmware.com> st: use _mesa_is_bufferobj()
/external/mesa3d/src/mesa/state_tracker/st_draw.c
e031bed122a8902808b197549e7952cde10d310c 27-Apr-2011 Marek Olšák <maraeo@gmail.com> st/mesa: fix warning: ‘user_memory’ may be used uninitialized in this function

It's initialized later in a conditional the condition of which is always true
the first time it's evaluated.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
0c501bacef3738b55986292abca149dcfe76d72d 07-Apr-2011 José Fonseca <jfonseca@vmware.com> mesa/st: Fix user buffer size computation when stride is zero.

Although for GL a zero stride means tightly packed elements, Mesa
internally uses zero strides for constant arrays.

Therefore user buffers need to be defined from

buffer_offset + src_offset + min_index*stride

to

buffer_offset + src_offset + max_index*stride + elem_size

Simplifying the later with (max_index + 1)*stride will give zero
sized buffers.

This change also aggregates the st_context's info about user buffers
into a single array.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
5d92596c5619eee4bac0fdc7733bafcd578309de 05-Apr-2011 Brian Paul <brianp@vmware.com> st/mesa: minor assorted clean-ups and fixes
/external/mesa3d/src/mesa/state_tracker/st_draw.c
ed9396782e40a9a6106f0b3168e723de077c5587 05-Apr-2011 Brian Paul <brianp@vmware.com> st/mesa: use 'array' local var to simplify the code a bit
/external/mesa3d/src/mesa/state_tracker/st_draw.c
6cab07685fa48174b310e52b26151a8fb8a8e6dc 05-Apr-2011 Brian Paul <brianp@vmware.com> st/mesa: fix zero-sized user vertex buffer bug

Commit 4c4ab5668cd6df573db7b065f0493fb80ac70ab8 didn't properly
handle the stride==0 case.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=35961
/external/mesa3d/src/mesa/state_tracker/st_draw.c
12fa91b6753dccbd3aa12c570d1f1e55c7dc0582 07-Mar-2011 Thomas Hellstrom <thellstrom@vmware.com> st/mesa: Fix an incorrect user vertex buffer reference

st->user_vb[attr] was always pointing to the same user vb, regardless
of the value of attr. Together with reverting the temporary workaround
for bug 34378, and a fix in the svga driver, this fixes googleearth on svga.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
4c4ab5668cd6df573db7b065f0493fb80ac70ab8 01-Mar-2011 Christian König <deathsimple@vodafone.de> st/mesa: probably handle instanced drawing

Remove the previous workaround for instanced drawing and implement it correctly.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
bce4f9ac395986ee0acae2702ed73448333d81b8 28-Feb-2011 Christian König <deathsimple@vodafone.de> st/mesa & v_bug_mgr: two small instanced drawing fixes
/external/mesa3d/src/mesa/state_tracker/st_draw.c
b65e2195c4a3aeb6179e2ec227ba0a2414efc8af 23-Feb-2011 Wiktor Janas <wixorpeek@gmail.com> st/mesa: fix computing the lowest address for interleaved attribs

Ptr can be very well NULL, so when there are two arrays, with one having
offset 0 (and thus NULL Ptr), and the other having a non-zero offset,
the non-zero value is taken as minimum (because of !low_addr ? start ...).
On 32-bit systems, this somehow works. On 64-bit systems, it leads to crashes.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
695cdee67827ee2c11e1445eb2022d3a530f1b23 20-Feb-2011 Marek Olšák <maraeo@gmail.com> st/mesa: fix crash when using both user and vbo buffers with the same stride

If two buffers had the same stride where one buffer is a user one and
the other is a vbo, it was considered to be one interleaved buffer,
resulting in incorrect rendering and crashes.

This patch makes sure that the interleaved buffer is either user or vbo,
not both.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
bb46eeade3a3eb604aba5c084d1e21942c2fa2ac 17-Feb-2011 Marek Olšák <maraeo@gmail.com> st/mesa: fix geometry corruption by always re-binding vertex arrays

This is a temporary workaround. It fixes sauerbrauten with shaders enabled.

I guess we might be changing vertex attribs somewhere and not updating
the appropriate dirty flags, therefore we can't rely on them for now.
Or maybe we need to make this state dependent on some other flags too.

More info:
https://bugs.freedesktop.org/show_bug.cgi?id=34378
/external/mesa3d/src/mesa/state_tracker/st_draw.c
588fa884d212eba5ffbc69fda75db37d7c77214c 09-Feb-2011 Marek Olšák <maraeo@gmail.com> gallium: notify drivers about possible changes in user buffer contents

Also implement the redefine_user_buffer hook in the drivers.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
2a904fd6a0cb80eec6dec2bae07fd8778b04caf3 26-Dec-2010 Marek Olšák <maraeo@gmail.com> st/mesa: set vertex arrays state only when necessary

The vertex arrays state should be set only when (_NEW_ARRAY | _NEW_PROGRAM)
is dirty. This assumes user buffer content is mutable, which will be
sorted out in the next commit. The following usage case should be much faster
now:

for (i = 0; i < 1000; i++) {
glDrawElements(...);
}

Or even:

for (i = 0; i < 1000; i++) {
glSomeStateChangeOtherThanArraysOrProgram(...);
glDrawElements(...);
}

The performance increase from this may be significant in some apps and
negligible in others. It is especially noticable in the Torcs game (r300g):
Before: 15.4 fps
After: 20 fps

Also less looping over attribs in st_draw_vbo yields slight speed-up
in apps with lots of glDraw* calls.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
cdca3c58aa2d9549f5188910e2a77b438516714f 10-Jan-2011 Marek Olšák <maraeo@gmail.com> gallium: remove pipe_vertex_buffer::max_index

This is redundant to pipe_draw_info::max_index and doesn't really fit
in the optimizations I plan.
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
a6860f0913d5d4be0c73da963e84e97fc926225f 16-Jan-2011 Brian Paul <brianp@vmware.com> st/mesa: GL_ARB_instanced_arrays support
/external/mesa3d/src/mesa/state_tracker/st_draw.c
d1e284407cf67f9a83e147914ed5a67d8c55e87e 16-Jan-2011 Brian Paul <brianp@vmware.com> st/mesa: move/consolidate an assignment
/external/mesa3d/src/mesa/state_tracker/st_draw.c
edc09358f72cd48cb2315daf23c82e7646aeaea3 09-Jan-2011 Vinson Lee <vlee@vmware.com> st/mesa: Include mfeatures.h in files that perform feature tests.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
aa5ba96d294698809186cc4b59034abbd3076812 16-Dec-2010 Brian Paul <brianp@vmware.com> st/mesa: s/varient/variant
/external/mesa3d/src/mesa/state_tracker/st_draw.c
84eba3ef71dfa822e5ff0463032cdd2e3515b888 13-Oct-2010 Ian Romanick <ian.d.romanick@intel.com> Track separate programs for each stage

The assumption is that all stages are the same program or that
varyings are passed between stages using built-in varyings.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
053875a8b193481a7b1c209d9adf9d3d85788884 22-Oct-2010 Brian Paul <brianp@vmware.com> st/mesa: support for primitive restart
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
557a71c50631a232528f654fa8b8e4add0e565d2 02-Sep-2010 Dave Airlie <airlied@redhat.com> mesa/st: remove check for buffer/elements = 0

shown by the glsl-vs-point-size failing on r600g.

the test passes on softpipe and I get a full piglit test run completing on r600g.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
cd3ef7592cc9e2c83b175a8652c0153c578fb46b 15-Jul-2010 Chia-I Wu <olv@lunarg.com> gallium: Use unified pipe_context::draw_vbo.

Update u_draw_quad, st/vega, and st/mesa to use pipe_context::draw_vbo.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
5ed6627ceb82845a7b578419b3cd4168ad0106d3 05-Jun-2010 Marek Olšák <maraeo@gmail.com> st/mesa: implement and advertise GL_ARB_draw_elements_base_vertex

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
3fde89e4395d260821f4e76a0fe36c265c148a73 15-Jul-2010 Brian Paul <brianp@vmware.com> st/mesa: fix quad strip trimming bug

The translate_prim() function tries to convert quad strips into
tri strips. This is normally OK but we have to check for an odd
number of vertices so that we don't accidentally draw an extra
triangle. The mesa-demos/src/samples/prim.c demo exercises that.
With this fix the stray yellow triangle is no longer drawn.

Use the u_trim_pipe_prim() function to make sure that prims have
the right number of vertices and avoid calling gallium drawing
functions when the prim has a degenerate number of vertices.

Plus add comments, clean-up formatting, etc.

NOTE: This is a candidate for the 7.8 branch.
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
bcce57c2e9a1d9b203dba8fe13480889e6d19c89 30-Mar-2010 Chia-I Wu <olv@lunarg.com> st/mesa: Make FEATURE_feedback and FEATURE_rastpos more modular.

Make st_cb_feedback.h FEATURE_feedback aware and st_cb_rastpos.h
FEATURE_rastpos aware. Move creation of selection/feedback draw context
to st_init_draw.
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
17a43c1718605e4c95bcd7f554b0a5b8293d2578 19-Apr-2010 José Fonseca <jfonseca@vmware.com> mesa/st: Update for index bias interface change.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
d5dcd4ee35308272d6b7b3549f05365aa438d7d2 18-Jan-2010 Luca Barbieri <luca@luca-barbieri.com> st/mesa: half float vertex support (unexposed)

This was proposed by Marek Olšák and no one objected, so just
pushing it.

The extension is currently not exposed, because the mechanism to
discover if the driver actually supports this is missing.

We probably should change is_format_supported to handle this too.

This will allow to test Gallium drivers anyway in the meantime.

Based on work by Dave Airlie.

Changes by me:
1. Fix assertion in st
2. Change to use unpadded Gallium formats
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
528d100b80f0aaa5f4480c3e42004158763612e9 05-Apr-2010 Brian Paul <brianp@vmware.com> st/mesa: call pipe_context::draw_arrays/elements_instanced()
/external/mesa3d/src/mesa/state_tracker/st_draw.c
ecfcb1466a36b6f4389a97abcc76908e68feb4fe 13-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> Revert "st/mesa: Always recalculate invalid index bounds."

This reverts commit 50876ddaaff72a324ac45e255985e0f84e108594.

Per ML discussion.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
c16d04bd2939154c0360f1ac51fe61a86e5dd9e5 09-Mar-2010 Marek Olšák <maraeo@gmail.com> gallium: fix BGRA vertex color swizzles

The mapping for vertex_array_bgra:
(gl -> st -> translate)
GL_RGBA -> PIPE_FORMAT_R8G8B8A8 (RGBA) -> no swizzle (XYZW)
GL_BGRA -> PIPE_FORMAT_A8R8G8B8 (ARGB) -> ZYXW (BGRA again??)

Iẗ́'s pretty clear that PIPE_FORMAT_A8R8G8B8 here is wrong. This commit
fixes the pipe format and removes obvious workarounds in util/translate.

Tested with: softpipe, llvmpipe, r300g.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
50876ddaaff72a324ac45e255985e0f84e108594 12-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> st/mesa: Always recalculate invalid index bounds.

These should always be sanitized before heading towards the pipe driver,
and if the calling function explicitly marked them as invalid, we need
to regenerate them.

Allows r300g to properly pass a bit more of Wine's d3d9 testing without
dropping stuff on the floor.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
a48e17ccb065194d11fbe87f77af660bb7fadae9 12-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> st/mesa: Update debug infos.

Still commented out, of course.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
a673dee4553b6f1649d4cc31f7f7849058411c49 09-Mar-2010 Roland Scheidegger <sroland@vmware.com> mesa/st: initialize velements state properly

one variable is a bitfield where the rest is never written to, which caused
valgrind to complain. Might have caused cso to not recognize an already stored
state. Reported by Christoph Bumiller.
/external/mesa3d/src/mesa/state_tracker/st_draw.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
7d1a79a04eb1266649956f6924f25071d85e20fe 01-Mar-2010 José Fonseca <jfonseca@vmware.com> mesa: Rename pipe formats.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
18603a2f07b99bfdbaab35b38b292233fc3e7689 01-Mar-2010 Roland Scheidegger <sroland@vmware.com> st/mesa: fix mesa statetracker adaption to new vertex elements interface
/external/mesa3d/src/mesa/state_tracker/st_draw.c
464a72dd4154f314e08c9d0c4d07417e2bf255f0 17-Feb-2010 Roland Scheidegger <sroland@vmware.com> gallium: remove redundant nr_components field from pipe_vertex_element

This is a property of the associated src_format pipe format.
Hence use util_format_get_nr_components to query this when necessary instead.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
db18996d3da4009a7a031e3444b5cd688e12dc22 14-Feb-2010 José Fonseca <jfonseca@vmware.com> mesa: Add missing include.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
d468791cc8307f8aaed72ccec78b504d7922de42 14-Feb-2010 José Fonseca <jfonseca@vmware.com> mesa: Use util_format_name().
/external/mesa3d/src/mesa/state_tracker/st_draw.c
ff37205f93eaf888e12c6587b8c7cd17d890c4e0 12-Feb-2010 Brian Paul <brianp@vmware.com> st/mesa: improved draw_range_elements code

Don't use pipe->draw_range_elements() if min_index=max_index=~0 since
that doesn't provide any useful info.

Also, implement the loop around pipe->draw_range_elements() when
nr_prims > 1.
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
987dd63b90adc77b2ae580579a9baed4a3d56382 29-Jan-2010 Brian Paul <brianp@vmware.com> st/mesa: check that state is validated before drawing

(cherry picked from commit 4d1234e22242529c8d85f5ef0cf826af41a91570)

Conflicts:

src/mesa/state_tracker/st_draw.c
/external/mesa3d/src/mesa/state_tracker/st_draw.c
6664a6dd7fb701da26e04559bd8110703a61fd8f 15-Jan-2010 Michal Krol <michal@vmware.com> st/mesa: Initialise vertex element instance divisor to 0.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
fe0e627685664087e3cc8244b0212a7142b1b4ca 12-Jan-2010 Brian Paul <brianp@vmware.com> st/mesa: removed unused var
/external/mesa3d/src/mesa/state_tracker/st_draw.c
35e8283c69d80debb44b05ea79dc5f67303a7432 22-Dec-2009 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-edgeflags'

Conflicts:
src/mesa/state_tracker/st_draw.c
aa02683e45f1eaf61bba2ba7eeda7686efeed2ca 22-Dec-2009 Keith Whitwell <keithw@vmware.com> Merge branch 'i965g-restart'

Conflicts:
configure.ac
9eb7fc6661a1d46c06cec8584b898e3e690af6fa 22-Dec-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:
src/mesa/main/version.h
src/mesa/state_tracker/st_atom_shader.c
a5585cb533af3d4e5d5324d5f526447b98597402 21-Dec-2009 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/master' into i965g-restart

Conflicts:
SConstruct
configs/default
configs/linux-dri
420ff89067515a74c9625a103cadc267d5f64bd4 19-Dec-2009 Roland Scheidegger <sroland@vmware.com> gallium: don't use edgeflags if the app didn't supply them
/external/mesa3d/src/mesa/state_tracker/st_draw.c
50caff5675888c0063c73fa64b88129db7aa11dd 16-Dec-2009 Roland Scheidegger <sroland@vmware.com> gallium: edgeflags change fixes

use correct number of vertex inputs
fix not running pipeline in case of edgeflags
changes to mesa to tgsi translation still very broken
/external/mesa3d/src/mesa/state_tracker/st_draw.c
a08e348a84f57ed5e8bf5888f1ce13934d2ce8fa 09-Dec-2009 Keith Whitwell <keithw@vmware.com> gallium: first steps to treat edgeflags as regular vertex element

The idea here is to eliminate the set_edgeflags() call in pipe_context
by treating edgeflags as a regular vertex element.

Edgeflags provoke special treatment in hardware, which means we need to
label them in some way, in this case we'll be passing them through the
vertex shader and labelling the vertex shader output with a new TGSI
semantic (TGSI_SEMANTIC_EDGEFLAG).
/external/mesa3d/src/mesa/state_tracker/st_draw.c
759c094bf8fd0f104b738490d7f0b85f40fc2779 01-Dec-2009 Keith Whitwell <keithw@vmware.com> mesa/st: avoid quadstrips if its easy to do so

Tristrips are easier for many drivers to handle.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
4dcdf3b9c67f1481d46c1decba84c9c55698db4c 26-Nov-2009 Roland Scheidegger <sroland@vmware.com> Merge commit 'origin/st-shader-varients'

Conflicts:
src/mesa/state_tracker/st_atom_shader.c
src/mesa/state_tracker/st_program.c
afae49cc152d05e6795ccaba4d818df946248584 13-Nov-2009 Brian Paul <brianp@vmware.com> st/mesa: comments for st_draw.c
/external/mesa3d/src/mesa/state_tracker/st_draw.c
07fafc7c9346aa260829603bf3188596481e9e62 15-Nov-2009 Keith Whitwell <keithw@vmware.com> mesa/st: refactor vertex and fragment shader translation

Translate vertex shaders independently of fragment shaders.

Previously tried to make fragment shader semantic indexes always start
at zero and exclude holes. This was unnecessary but meant that vertex
shader translation had to be adjusted to take this into account.

Now use a fixed scheme for labelling special FS input semantics
(color, etc), and another fixed scheme for the generics.

With this, vertex shaders can be translated independently of the bound
fragment shader, assuming mesa has done its own job and ensured that
the vertex shader provides at least the inputs the fragment shader is
looking for. The state-tracker didn't attempt to do anything about
this previously, so it shouldn't be needed now.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
4dd2f6640b70e2313f8771f7588aa49a861153aa 25-Oct-2009 Keith Whitwell <keithw@vmware.com> i965g: more work on compiling, particularly the brw_draw files
/external/mesa3d/src/mesa/state_tracker/st_draw.c
7549a8397b310acf672f97a08c8e7d866cdf492c 24-Sep-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
be66ff51ec98cf583044b3e53a49c41edd803134 23-Sep-2009 Keith Whitwell <keithw@vmware.com> st/mesa: trim calculated userbuffer size

In get_array_bounds we were previously defining a user buffer sized as
(nr_vertices * stride). The trouble is that if the vertex data
occupies less than stride bytes, the extra tailing (stride - size)
bytes may extend outside the memory actually allocated by the app and
caused a segfault.

To fix this, define a the buffer bounds to be:

ptr .. ptr + (nr-1)*stride + element_size
/external/mesa3d/src/mesa/state_tracker/st_draw.c
2708ddfb06a36d8568e2aa130bf1f7d551fcd309 11-Aug-2009 Eric Anholt <eric@anholt.net> vbo: Avoid extra validation of DrawElements.

This saves mapping the index buffer to get a bounds on the indices that
drivers just drop on the floor in the VBO case (cache win), saves a bonus
walk of the indices in the CheckArrayBounds case, and other miscellaneous
validation. On intel it's a particularly a large win (50-100% in my app)
because even though we let the indices stay in both CPU and GPU caches, we
still end up waiting for the GPU to be done with the buffer before reading
from it.

Drivers that want the min/max_index fields must now check index_bounds_valid
and use vbo_get_minmax_index before using them.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
11522b74b318db9d099466ff226124c23595e8e2 15-Dec-2009 Ian Romanick <ian.d.romanick@intel.com> Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
src/gallium/drivers/softpipe/sp_quad_blend.c
aa44efb04504fb6f8a1a2ff9d99388d173f7181a 13-Dec-2009 Vinson Lee <vlee@vmware.com> st/mesa: Silence uninitialized variables warnings in st_draw.c.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
a31118c25a0e2b95008683ca4be2ca635f0dbfa4 23-Jun-2009 Brian Paul <brianp@vmware.com> st/mesa: fix setup_edgeflags() regression

stobj is now non-null for the default/null buffer object. Update the
test to check the buffer ID to see if it's a real buffer object.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
5b27b4ad37bd992d2d3a6fd9d407277113544f30 21-May-2009 Brian Paul <brianp@vmware.com> st: add support for GL_EXT_vertex_array_bgra
/external/mesa3d/src/mesa/state_tracker/st_draw.c
886ceb556e1f6ba1e51a33abd9b8c3d8214d2554 09-Mar-2009 Brian Paul <brianp@vmware.com> st: silence warning
/external/mesa3d/src/mesa/state_tracker/st_draw.c
44af5a953f4189978f698b6a26b5f7b1c6298929 09-Mar-2009 Brian Paul <brianp@vmware.com> st: use pointer_to_offset() cast wrapper to convert pointers to uint

Silences warnings with 64-bit builds. See comments for details.
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.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_draw.c
e97681c7f551a2a2a6bd5eff0f4192a870c816c0 09-Feb-2009 Brian Paul <brianp@vmware.com> mesa: merge gallium-0.2 into gallium-master-merge

Merge commit 'origin/gallium-0.2' into gallium-master-merge

Conflicts:

Makefile
docs/relnotes-7.4.html
docs/relnotes.html
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/main/imports.c
src/mesa/main/mtypes.h
src/mesa/main/texcompress.c
src/mesa/main/texenvprogram.c
src/mesa/main/version.h
src/mesa/vbo/vbo_exec_api.c
src/mesa/vbo/vbo_save_draw.c
a47965588fdaa75166c48d50974b38fcbfd2a749 03-Feb-2009 Alan Hourihane <alanh@vmware.com> mesa: fix offset problem with interleaved arrays
/external/mesa3d/src/mesa/state_tracker/st_draw.c
872b515e8f0bb1be5bad85fd9d01529c71f07ba2 26-Jan-2009 Zack Rusin <zack@tungstengraphics.com> gallium: standardize on stride instead of pitch in the interface
/external/mesa3d/src/mesa/state_tracker/st_draw.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
a725a8e27a16fc2b38741ad28e43982a55431e0e 12-Dec-2008 Alan Hourihane <alanh@tungstengraphics.com> mesa: move declaration
/external/mesa3d/src/mesa/state_tracker/st_draw.c
c828adc3f614f518ba2ce328cad477d31e292290 12-Dec-2008 Alan Hourihane <alanh@tungstengraphics.com> mesa: when we have interleaved arrays, check bounds for both
VBO's and user space objects
/external/mesa3d/src/mesa/state_tracker/st_draw.c
3a5d260cb1d2602b9fc32392f18538d0a6ff41c2 12-Dec-2008 Keith Whitwell <keith@tungstengraphics.com> gallium: fix refcount bug introduced in eb20e2984
/external/mesa3d/src/mesa/state_tracker/st_draw.c
eb20e2984e51e632ef1a51620db7aca3eb89dafa 10-Dec-2008 Keith Whitwell <keith@tungstengraphics.com> st: reduce unnecessary calls to pipe->set_vertex_buffers()
/external/mesa3d/src/mesa/state_tracker/st_draw.c
8627a14ec872c532ac7660abfaf1a2db9b8608bb 10-Dec-2008 Keith Whitwell <keith@tungstengraphics.com> st: move feedback draw function to new file
/external/mesa3d/src/mesa/state_tracker/st_draw.c
eb4dded5be60af4c7d45394aaa0aca24549ec3d8 09-Nov-2008 Pekka Paalanen <pq@iki.fi> Mesa: fix number of buffers in st_draw_vbo().

The clean-up call to pipe->set_vertex_buffers() should use the same
number of buffers as the first call.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
/external/mesa3d/src/mesa/state_tracker/st_draw.c
de14fdd63f26a2e6fc55fad92c08966f269601a6 05-Nov-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: added check for degenerate drawing calls
/external/mesa3d/src/mesa/state_tracker/st_draw.c
6282c38283ea81af1d950dbc1f82a6950e8350ae 05-Nov-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: if VERBOSE_GLSL flag is set, check for non-initialized uniforms at draw time

This will warn the user that the shader being run may be using uninitialized
uniform variables.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
4f1dafaa82985bf0f04a16ba2ba2d1e8ccf83724 07-Oct-2008 Stephane Marchesin <marchesin@icps.u-strasbg.fr> Mesa: fix the case where there are no vertex attributes.

This is a backport of 8e8208d6db8b764568539784a6473d545dec2265 to gallium-0.1
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
ee402e5ce2d9203558bf066642becb952399c3e9 27-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: better support for user-space interleaved arrays

Basically, set up one user-space wrapper for all arrays instead of
the individual arrays.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
ce40bc2ae088ce6defac6b2bf424dcfd0e141a75 27-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: in st_draw_vbo() try to detect interleaved arrays in a single VBO.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
52a6b7e6da8cabf7104c17becb81dea26c44db18 15-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: in st_draw_vbo() use ctx->Current.Attrib[] values when arrays are missing/null

fixes potential segfaults when vertex arrays are missing
/external/mesa3d/src/mesa/state_tracker/st_draw.c
1ffd6908d4153d647f8a3bf1ba9fe9d33c206185 07-Aug-2008 José Fonseca <jrfonseca@tungstengraphics.com> mesa: pf_sprint_name->pf_name.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
bae90edfdae0eac6c844ede21285453ef96a4f6e 10-Jul-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: check for FEATURE_feedback and FEATURE_drawpix when creating/using the aux draw module
/external/mesa3d/src/mesa/state_tracker/st_draw.c
1828b6d0315be805ec1eea1594fae5b28cfb4ca8 07-Jul-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: move assertion (though not really significant)
/external/mesa3d/src/mesa/state_tracker/st_draw.c
b7dfabcaab020e89644f47ec243b231c21fece63 07-Jul-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: simplify/fix buffer_offset, src_offset computation for VBO arrays

Things broke when vertex position wasn't the first attribute.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
18ec140ef27b6488bea9d54e21b08b0a3afbcafe 24-Jun-2008 José Fonseca <jrfonseca@tungstengraphics.com> mesa: Use appropriate unsigned/signed, float/integer types.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
89e9d6b6db933c870443714c3d7c9539d117cddf 24-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: added support for fixed-point formats, drawing
/external/mesa3d/src/mesa/state_tracker/st_draw.c
bb2e13b9e82b68ec3b9fc56a4c35e7ead8fd138f 29-May-2008 Keith Whitwell <keith@tungstengraphics.com> draw: make sure constant buffer data is aligned before passing to aos.c
/external/mesa3d/src/mesa/state_tracker/st_draw.c
82605d7bcd533d7c96cc619c45970efd7229dc3b 29-May-2008 Keith Whitwell <keith@tungstengraphics.com> draw: draw_range_elements trial
/external/mesa3d/src/mesa/state_tracker/st_draw.c
54507125e735ffa595e252282eaabf38095c21e1 02-May-2008 Alan Hourihane <alanh@tungstengraphics.com> Some changed for non-C99 compilers
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
b6d8b21cc8e36eb4f6fa72a067561f3fa8bd6ebf 25-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: remove unused st_draw_vertices()
/external/mesa3d/src/mesa/state_tracker/st_draw.c
b4c7a48d5c9ed2f9535a17d6c05cd55178c7880a 25-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: fix an edgeflags crash
/external/mesa3d/src/mesa/state_tracker/st_draw.c
ef683014dd72612e6eb245e89e754b033acb3a49 25-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: initial edgeflags code
/external/mesa3d/src/mesa/state_tracker/st_draw.c
7d72607e142c0412b88183b849fd701e698b8f79 19-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> draw: move incoming vertex state into draw->pt

This state is effectively private to the vertex processing part
of the draw module.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
a52c0416d1f2105960b4646e2e268aed26814689 29-Mar-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: Set vertex state/buffers en-mass.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
39038c11699bbc9baab744542e96d54e91cb452a 28-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: replace PIPE_ATTRIB_MAX with PIPE_MAX_ATTRIBS

The later follows the naming scheme of other limits.
Keep the old definition until all possible usage is updated.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
1213c7257335d577cf0217e34edafddf0451ba1b 19-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: remove old commented-out code
/external/mesa3d/src/mesa/state_tracker/st_draw.c
fa9e7e9a8debb68611909ac2ffab527c6c39a3e5 13-Mar-2008 Brian Paul <brianp@kemper.freedesktop.org> gallium: remove semantic info from pipe_shader_state

Brian's patch to clean up the shader interfaces.
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
6acd63a4980951727939c0dd545a0324965b3834 15-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Code reorganization: update build.

Update the Makefiles and includes for the new paths.

Note that there hasn't been no separation of the Makefiles yet, and make is
jumping all over the place. That will be taken care shortly. But for now, make
should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm
might require some minor tweaks.
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
c185c55aec8c6d0e47a2d7b84acf7d063acfce61 29-Jan-2008 Keith Whitwell <keith@tungstengraphics.com> gallium: don't rely on assert(0) for error handling - may be disabled
/external/mesa3d/src/mesa/state_tracker/st_draw.c
1e0d30a515e4cac891b6c590f12a33e0e8a8e295 25-Jan-2008 Keith Whitwell <keith@tungstengraphics.com> gallium: rename pipe_buffer_handle to pipe_buffer, rework pipebuffer/ code

Provide an actual definition of the pipe_buffer struct, containing
the parameters used to create the buffer, and its refcount.

Shift refcounting buffers out of the winsys interface, similar to
surfaces & textures.

Rework pipebuffer/ to reflect the fact these changes, and also Michel's
reworking of the buffer interface.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
756d52ec12c41ee90ee9598dc9028cc134806bd2 25-Jan-2008 Michel Dänzer <michel@tungstengraphics.com> gallium: Simplify winsys buffer interface.

The properties of a buffer represented by struct pipe_buffer_handle are now
basically constant over its lifetime. The state tracker gets to deal with any
more complex buffer semantics it may need to provide.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
cd3643698eafa0869a8317b002e5b066de0172e7 23-Jan-2008 Brian <brian.paul@tungstengraphics.com> gallium: overhaul usage of vertex_info in draw module.

Remove all dependencies on vertex_info, except for draw_vbuf.
Drawing stages now strictly operate on post-transformed vertices and don't
know anything about hw vertices.
Use vertex program output info for two-side/flat/etc stages.
Temporarily disable vbuf module in softpipe driver.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
b3f081999f8eb904370df7492e39184268c77c13 23-Jan-2008 Brian <brian.paul@tungstengraphics.com> gallium: s/INTERP_NONE/INTERP_LINEAR/ to fix assertion with progs/samples/select.c
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
678db26b9d2db0c76e7676b5499d8d55a5619a94 28-Dec-2007 Brian <brian.paul@tungstengraphics.com> unref buffer after drawing, fixes rastpos mem leak
/external/mesa3d/src/mesa/state_tracker/st_draw.c
f13a200c8367c58fc962bdad9bcb22263d385886 19-Dec-2007 Zack Rusin <zack@tungstengraphics.com> actually set the max_index. useful in the driver
/external/mesa3d/src/mesa/state_tracker/st_draw.c
c31416971e4eac148f8e82d6c4392bd6f9cbc05d 18-Dec-2007 Keith Whitwell <keith@tungstengraphics.com> gallium: rationalize vertex_element state packet

Remove dst_offset (not used)
Add nr_components, which could be calculated from format, but would be
too much effort.

Update i965 driver to cope.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
c9f9c5098042e4f200efc3d25447a5a8b7e69b36 11-Dec-2007 Brian <brian.paul@tungstengraphics.com> XXX comments about some hard-coded values that need to be fixed
/external/mesa3d/src/mesa/state_tracker/st_draw.c
f7195b32323d50e9541a5c5cb3143e83d05bd8d8 10-Dec-2007 Ben Skeggs <skeggsb@gmail.com> Correct user VBO size.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
73a05942766cee4e3cc200725e9760c5a9b67bb4 23-Nov-2007 Keith Whitwell <keith@tungstengraphics.com> gallium: support the full range of possible vertex types
/external/mesa3d/src/mesa/state_tracker/st_draw.c
cd1eefee8404ae69ea5b604971b8be78abf588e6 19-Nov-2007 keithw <keithw@keithw-laptop.(none)> add fence interfaces and buffer create flags to pipe_winsys
/external/mesa3d/src/mesa/state_tracker/st_draw.c
c885775cae8feabe5431ba7867fac99332f5ee8e 08-Dec-2007 Brian <brian.paul@tungstengraphics.com> New vbo_set_draw_func() to keep vbo context opaque to state tracker and tnl module.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
ce30f0550f02b28219c84851d71e0713aa315ee3 05-Dec-2007 Brian <brian.paul@tungstengraphics.com> silence warning
/external/mesa3d/src/mesa/state_tracker/st_draw.c
9f0b5bba707d6c36896b4b8afad4e6b459da5e99 22-Nov-2007 Brian <brian.paul@tungstengraphics.com> Replace draw_set_vertex_attributes() with simpler draw_set_vertex_info().

Just pass in the vertex_info object and make a copy of it.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
6a1154bab0d296b60f889bdc13254568f4051104 17-Nov-2007 Brian <brian.paul@tungstengraphics.com> adjustments so st_feedback_draw_vbo() can be used for glRasterPos
/external/mesa3d/src/mesa/state_tracker/st_draw.c
fa1a66d7fc4fd7854de7958a48e4992edd154489 05-Nov-2007 José Fonseca <jrfonseca@tungstengraphics.com> Supply buffer usage hints to winsys.

Winsys driver needs some hints in order to allocate the appropriate kind of
memory for the buffer.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
8d9afa76eb090ff58ca9a8a7a86a0b23ffc56857 31-Oct-2007 Brian <brian.paul@tungstengraphics.com> Use ffvertex_prog.c code instead of t_vp_build.c code.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
a70c5e37f1c2e43738469e4799ad2b9e7c604782 29-Oct-2007 Zack Rusin <zack@tungstengraphics.com> Remove typedefs from enums.

typedefs are rather evil, remove them and use the enum
keyword explicitely.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
7636aac54bb357ce907ae6cc2c41f32957faecf3 24-Oct-2007 Brian <brian.paul@tungstengraphics.com> Fix glDrawElements + VBO rendering when ptr/offset is not zero.

When an index VBO is bound, glDrawElement's indices pointer is really an
offset into the element buffer. Add that offset to the prims[i].start
value before calling pipe->draw_elements().
Fixes vbo.c conform test.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
40a0b053f78acd0a08f6876518b8e9301480431f 24-Oct-2007 Brian <brian.paul@tungstengraphics.com> Revert "Undo indexOffset change (I think, git???)"

This reverts commit 11ce6244a79106c592364b30434b6ddade3fd6bb.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
11ce6244a79106c592364b30434b6ddade3fd6bb 24-Oct-2007 Brian <brian.paul@tungstengraphics.com> Undo indexOffset change (I think, git???)
/external/mesa3d/src/mesa/state_tracker/st_draw.c
b2605d5f803f51f216fd815374b59dfc616f7e13 16-Oct-2007 Brian <brian.paul@tungstengraphics.com> GL_UNSIGNED_BYTE indexes
/external/mesa3d/src/mesa/state_tracker/st_draw.c
0585b4e746f35efbc8577311eab6679951217ac3 15-Oct-2007 Brian <brian.paul@tungstengraphics.com> Undo prev changes.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
520ad5f854723955c89584e4fa0bd172d0969e09 15-Oct-2007 Brian <brian.paul@tungstengraphics.com> GL_SELECT mode works now
/external/mesa3d/src/mesa/state_tracker/st_draw.c
8630e5edb36f00de30117d56c1691363d471c0cc 15-Oct-2007 Brian <brian.paul@tungstengraphics.com> call pipe->set_vertex_buffer() after drawing/unreferencing.

This fixes potential a stale reference to vertex buffers.
Fixes cubemap demo on i915.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
47fc06753ec4319a3ac6470060a4582975daceda 13-Oct-2007 Brian <brian.paul@tungstengraphics.com> added assertion to be sure we don't exceed bitfield size
/external/mesa3d/src/mesa/state_tracker/st_draw.c
afd6bd3cb0036089f7fe01eb140b5d9ee2654ce9 11-Oct-2007 Brian <brian.paul@tungstengraphics.com> rename some vars, updated comments
/external/mesa3d/src/mesa/state_tracker/st_draw.c
3ab326e1d7ef0ae9bd03dbce33e791449b865ba1 11-Oct-2007 Brian <brian.paul@tungstengraphics.com> remove unused tgsi_attrib_to_mesa_attrib()
/external/mesa3d/src/mesa/state_tracker/st_draw.c
55dd7d794719ebdbf62b58cc15e022ce1e430873 11-Oct-2007 Brian <brian.paul@tungstengraphics.com> update st_feedback_draw_vbo()
/external/mesa3d/src/mesa/state_tracker/st_draw.c
4d79f2c4a2ef87595558051b3bdaeb54b4bd0339 11-Oct-2007 Brian <brian.paul@tungstengraphics.com> streamline st_draw_vbo() a bit more, free user-space buffers at end
/external/mesa3d/src/mesa/state_tracker/st_draw.c
71efb6cf69724da2f1e783a13c3074d4e8645c64 11-Oct-2007 Brian <brian.paul@tungstengraphics.com> clean-up, streamline st_draw_vbo()
/external/mesa3d/src/mesa/state_tracker/st_draw.c
453ac4b1ebc70aeabb182f2b336c6abb3324323e 11-Oct-2007 Brian <brian.paul@tungstengraphics.com> Use winsys->user_buffer_create() to wrap user-space vertex arrays and element buffers.

Now client-side vertex arrays and glDrawElements work.
More testing/debug/clean-up to come...
/external/mesa3d/src/mesa/state_tracker/st_draw.c
a1a989f0be8dc34082b52bb3b3a6eacb36d9e75e 28-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Redoing the way we handle vertex shaders for the draw module.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
901577e07fcab0cf90a272fee900cb0831ae84c3 28-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Revert "Redoing the way we handle vertex shaders for the draw module."

This reverts commit 6dcfddb8e2ec2bfb6187b912807fa65f28da2c5e.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
6dcfddb8e2ec2bfb6187b912807fa65f28da2c5e 28-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Redoing the way we handle vertex shaders for the draw module.
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
c231a9d020bdec8e0749a5547971c79de64f73d8 20-Sep-2007 Brian <brian.paul@tungstengraphics.com> remove #includes of tgsi_attribs.h
/external/mesa3d/src/mesa/state_tracker/st_draw.c
674d0130693f827ae9ea8e902a38c46d64444384 20-Sep-2007 Brian <brian.paul@tungstengraphics.com> checkpoint: TGSI_ATTRIB_x tokens no longer used
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.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_draw.c
b8ecec7abefcd1f0720e448c05e901af0224806a 19-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Adding proper includes often helps with the warnings,
or so i hear..
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
b3cc74aa448f42340cbd01578a51f94eb2949618 19-Sep-2007 Brian <brian.paul@tungstengraphics.com> grab vertex program pointer after state validation
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
ccd63b54cfbb6bb241d55f7ac95afcd14819f469 18-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Convert shader to an immutable state object.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
de69fc1703f79e5c97e66b654de7a93b7abce8f0 18-Sep-2007 Zack Rusin <zack@tungstengraphics.com> Finishing up rename of the setup state to the rasterizer state.
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
b4bacd1fca336f043d1ee3c3a346fbd42a3b02eb 17-Sep-2007 Brian <brian.paul@tungstengraphics.com> Plug in selection/feedback code.

Not quite finished yet.
Selection/feedback are done with a private instance of the 'draw' module
in the state tracker. Not quite all the draw context's state is set yet,
namely vertex format info. Hold off on that for a bit...
/external/mesa3d/src/mesa/state_tracker/st_draw.c
6275b40063d7d06e0b05767ebca3963ce7e9c34e 11-Sep-2007 Brian <brian.paul@tungstengraphics.com> merge buffer_unreference(), buffer_reference()
/external/mesa3d/src/mesa/state_tracker/st_draw.c
c89502bb4e6d80182e4977ab084639850e1eba68 24-Aug-2007 Keith Whitwell <keith@tungstengraphics.com> Fixup include paths after rename
/external/mesa3d/src/mesa/state_tracker/st_draw.c
7d5e7f03191673a02f8d3b9d5e4b95c074c5acdd 24-Aug-2007 Brian <brian.paul@tungstengraphics.com> map Mesa vertex attribs/arrays to TGSI attribs
/external/mesa3d/src/mesa/state_tracker/st_draw.c
8175eaa3b49f3b62f7ab251c4e0fbd14dd9f7e2b 21-Aug-2007 Brian <brian.paul@tungstengraphics.com> Checkpoint: remove more of the old draw_vb() code.
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
a83b72a67263faf21bf16ff879c9718660684aed 20-Aug-2007 Brian <brian.paul@tungstengraphics.com> implement DrawElements, still some rough spots
/external/mesa3d/src/mesa/state_tracker/st_draw.c
1f026d98dd77b6d26cc76946d92f69a9e6091b8e 18-Aug-2007 Brian <brian.paul@tungstengraphics.com> Create a default vertex attribute buffer which mirrors ctx->Current.Attrrib[]

Used when the vertex shader references attributes which aren't present in VBOs.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
3fc926f3740da9ec27853d158243055f3cb43d43 17-Aug-2007 Brian <brian.paul@tungstengraphics.com> Remove many dependencies on mesa headers.

To build with mesa, need -DMESA in makefile/config file.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
e3bdd66bf69fb12fa02d161989755944077b280d 17-Aug-2007 Brian <brian.paul@tungstengraphics.com> misc changes to support vertex shaders (disabled by default)
/external/mesa3d/src/mesa/state_tracker/st_draw.c
181cf1d52a9fe0ad8be9d48aa69775f575336d3d 16-Aug-2007 Brian <brian.paul@tungstengraphics.com> convert vbo->draw_prims() to pipe->draw_arrays(): works in very limited cases, disabled for now
/external/mesa3d/src/mesa/state_tracker/st_draw.c
bff0411c5a1a9fdfff7f8a5128af4d496b89fa0d 15-Aug-2007 Brian <brian.paul@tungstengraphics.com> sketch out vbo drawing function
/external/mesa3d/src/mesa/state_tracker/st_draw.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_draw.c
78cc48f70afee7edc5291e195af8e6b6ebbf2de9 21-Jun-2007 Keith Whitwell <keith@tungstengraphics.com> Rename static variable in temporary tnl code
/external/mesa3d/src/mesa/state_tracker/st_draw.c
1edb5aafadc16ac0d7c604a3cd4a9c2e91d9b705 20-Jun-2007 Brian <brian.paul@tungstengraphics.com> better comment
/external/mesa3d/src/mesa/state_tracker/st_draw.c
b7c646d1bcf4b6fa285996d1b9b660ce478190f6 20-Jun-2007 Brian <brian.paul@tungstengraphics.com> actually use new glClear code
/external/mesa3d/src/mesa/state_tracker/st_draw.c
abf45c2a3db39fc1690e282e7f7603bc1d81f647 20-Jun-2007 Brian <brian.paul@tungstengraphics.com> fix comment
/external/mesa3d/src/mesa/state_tracker/st_draw.c
943964a1e5bad86bdceb0a06d60fb3b302ebce6a 14-Jun-2007 Keith Whitwell <keith@tungstengraphics.com> Rename directories again?!

Some git wierdness going on.
/external/mesa3d/src/mesa/state_tracker/st_draw.c
6393cda6766b707ef01e925d378239a66d143ae0 14-Jun-2007 Keith Whitwell <keith@tungstengraphics.com> Renamed softpipe directories and files to something less confusing.

softpipe/state_tracker --> state_tracker/
softpipe/ --> pipe/
softpipe/generic --> pipe/softpipe/

I don't think pipe is a great name, but I disliked all the others too.
Luckily it's fairly easy to rename with git, so this can be revisited
later.
/external/mesa3d/src/mesa/state_tracker/st_draw.c