History log of /external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b3538d356316b282d6408f710f2df5f06bf315f5 04-Aug-2012 Brian Paul <brianp@vmware.com> llvmpipe: combine vertex/fragment sampler state into an array

This will allow code consolidation in the next patch.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
c88f3e0374620f18cf38d9fc3c45d14bc53f62b2 09-Nov-2011 José Fonseca <jfonseca@vmware.com> llvmpipe: Make more resilient to out-of-memory situations.

Most of the code was alright, but we were missing a few paths.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
9f61e43b4903c6cf0ac03a479ec9ed7b15fd6ccf 27-Sep-2011 Dave Airlie <airlied@redhat.com> gallium: move border color to be a color union

EXT_texture_integer also specifies border color should be a color
union, the values are used according to the texture sampler format.

(update docs)

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
8cce283038bf51a03de6734523c3e9ea8c8a6f33 28-Apr-2011 Brian Paul <brianp@vmware.com> llvmpipe: move active_query assignment

Fixes piglit regression.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
284191560b191ebb2219e0f5fe2de4128ad172a5 28-Apr-2011 Brian Paul <brianp@vmware.com> llvmpipe: move active_query assignment in lp_setup_begin_query()

If we run out of bin memory and do an early return from
lp_setup_begin_query() we'd omit setting the setup->active_query
pointer. Then, when lp_setup_end_query() was later called, the
assertion for setup->active_query == pq would fail. Moving the
assigment in lp_setup_begin_query() avoids that.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
08070cead0bb79d4441d8c5b900d1571bb63c670 31-Mar-2011 Fabian Bieler <der.fabe@gmx.net> llvmpipe: Take the sampler view's first_level into account when sampling.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
7e02303497237cde958c28608477d0c355a8038b 08-Mar-2011 Marek Olšák <maraeo@gmail.com> gallium: remove flags from the flush function

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

Some state trackers were also abusing the PIPE_FLUSH_RENDER_CACHE flag
to decide whether flush_frontbuffer should be called.
New flag ST_FLUSH_FRONT has been added to st_api.h as a replacement.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
25485f4b69447514ab8b595aced90c75606a99bd 07-Mar-2011 Marek Olšák <maraeo@gmail.com> gallium: kill is_resource_referenced

Only st/xorg used it and even incorrectly with regards to pipelined transfers.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
42dbc2530b5a2263012f3fa0e48517a1b8db1c52 13-Jan-2011 Brian Paul <brianp@vmware.com> llvmpipe: make sure binning is active when we begin/end a query

This fixes a potential failure when a begin/end_query is the first
thing to happen after flushing the scene.

NOTE: This is a candidate for the 7.10 and 7.9 branches.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
cdd4f04f80de91d6d4e5b904ec66386d6546f977 07-Dec-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Plug fence leaks.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
efc82aef35a2aac5d2ed9774f6d28f2626796416 01-Dec-2010 Brian Paul <brianp@vmware.com> gallivm/llvmpipe: squash merge of the llvm-context branch

This branch defines a gallivm_state structure which contains the
LLVMBuilderRef, LLVMContextRef, etc. All data structures built with
this object can be periodically freed during a "garbage collection"
operation.

The gallivm_state object has to be passed to most of the builder
functions where LLVMBuilderRef used to be used.

Conflicts:
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
src/gallium/drivers/llvmpipe/lp_state_setup.c
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
68a4f6324712d7eae327ee438a41c432ec72f11d 30-Nov-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: shortcircuit some calls to set_scene_state
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
d9169364d4ec05f766b0835785c6fd76294d9967 30-Nov-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: remove misleading debug string
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
0072acd447dc6be652e63752e50215c3105322c8 18-Oct-2010 Keith Whitwell <keithw@vmware.com> Merge remote branch 'origin/master' into lp-setup-llvm

Conflicts:
src/gallium/drivers/llvmpipe/lp_setup_coef.c
src/gallium/drivers/llvmpipe/lp_setup_coef.h
src/gallium/drivers/llvmpipe/lp_setup_coef_intrin.c
src/gallium/drivers/llvmpipe/lp_setup_point.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c
src/gallium/drivers/llvmpipe/lp_state_derived.c
src/gallium/drivers/llvmpipe/lp_state_fs.h
ad6730fadbbeacea96322e31064ede9ea7ebad6f 08-Oct-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: fail gracefully on oom in scene creation
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
9fe510ef35a783a244d0d54baa50f959a6b781dc 06-Oct-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Cleanup depth-stencil clears.

Only cosmetic changes. No actual practical difference.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
fdcc168a16d59bf2b7fd291383f214834c2546f6 29-Sep-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Decouple sampler view and sampler state updates.

Fixes glean pbo crash.

It would be possible to avoid crashing without decoupling, but given
that state trackers give no guarantee that number of views is consistent,
that would likely cause too many state updates (or miss some).
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
d1a4dd4217a4b8b018d4d9a161afece640d75694 24-Sep-2010 Brian Paul <brianp@vmware.com> llvmpipe: make texture border_color dynamic state
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
61b7da074e2faebf03d3dfc30e910ee1367bcd5a 24-Sep-2010 Brian Paul <brianp@vmware.com> llvmpipe: make min/max lod and lod bias dynamic state

Before, changing any of these sampler values triggered generation
of new JIT code. Added a new flag for the special case of
min_lod == max_lod which is hit during auto mipmap generation.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
c3982c6bcdeb88f7fb1b20f8bd300db31cd7288d 20-Sep-2010 Brian Paul <brianp@vmware.com> llvmpipe: rename sprite field, add sprite_coord_origin
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
5b4c43d98556c5a4806757513bcb196a724518c5 05-Sep-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: use llvm for attribute interpolant calculation

Basically no change relative to hard-coded version, but this will
be useful for other changes later.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
5f00819cb382bdb70c29e2db3c6ff22a879bf10f 16-Sep-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: add LP_PERF flag to disable various aspects of rasterization

Allows disabling various operations (mainly texture-related, but
will grow) to try & identify bottlenecks.

Unlike LP_DEBUG, this is active even in release builds - which is
necessary for performance investigation.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
10d0a835bc3d8eb89637381be41ffd463f363b75 08-Sep-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: move some debug to DEBUG_SCENE
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
f25836d7b2c21e046a725cf13c8649d3981693b7 27-Aug-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: rasterization debugging helpers
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
9f6e8e1d6b8696a3ee96cba01b2466ba7a1a8ef6 07-Sep-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: use opcodes instead of function pointers in bins

Also, move some state from rasterizer struct to the scene.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
040e59851ae4c26ce0509d42d2ee71e007b3b3d1 07-Sep-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: rearrange queries
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
6419ecd02ce43a2614822e228f306d4db589f317 27-Aug-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: enforce fixed memory limit on scenes
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
c512ba88a7e33f14b86feb9c0aaf1ebed5f50629 27-Aug-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: clean up deferred zstencil clears
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
18452c1e87f79327fbd5f27478028b481ee72a5d 27-Aug-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: rework fences and queries
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
29ec116e8f21c65250f1083830b82ff59859496d 10-Aug-2010 Hui Qi Tay <hqtay@vmware.com> llvmpipe: point sprites rasterization

Point sprites now done in the rasterizer setup code instead of
going through the draw module.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
57d84d9ca4a645ca326b66ff3b82bee0db18ac97 27-Aug-2010 Hui Qi Tay <hqtay@vmware.com> llvmpipe: native point rasterization

Conflicts:

src/gallium/drivers/llvmpipe/lp_setup_context.h
src/gallium/drivers/llvmpipe/lp_setup_line.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
5286dd701640976ffc328e8e85fb3830746851a1 19-Jul-2010 Hui Qi Tay <hqtay@vmware.com> llvmpipe: native rasterization for lines

Rasterize lines directly by treating them as 4-sided polygons.
Still need to check the exact pixel rasteration.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
d4bfd8a24a4c2b246b55888d4983ddcf665b6976 25-Aug-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: fix bad patch application
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
29bcbf5e797a18430285c75abb8a9300c8defe1d 24-Aug-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: track drawing region as a single u_rect
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
5a45e53df4419fde1fe7696f3a9459893363f7c5 20-Aug-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: move some fence functions into lp_screen.c
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
b6e03eafe3311142445ca42c1574d3f6998eecc3 20-Aug-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: fence debugging, add llvmpipe_finish
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
2f6d47a7c8d6e69e5154de44115aab9ba35a41d2 16-Jul-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: use single swizzled tile

Use a single swizzled tile per colorbuf (and per thread) to avoid
accumulating large amounts of cached swizzled data.

Now that the SSE3 code has been merged to master, the performance delta
of this change is minimal, the main benefit is reduced memory usage
due to no longer keeping swizzled copies of render targets.

It's clear from the performance of the in-place version of this code
that there is still quite a bit of time being spent swizzling &
unswizzling, but it's not clear exactly how to reduce that.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
edac740095fb2514b512034b334947f72648cd51 13-Jul-2010 Roland Scheidegger <sroland@vmware.com> llvmpipe: move rasterizer to screen instead of setup context

there's no point of having this per context, so move to screen
(and protect with a mutex).
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
e21e7ab4da859198dfa9845b4a7207c49db54771 10-Jul-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: eliminate the set_state rasterizer command

Just put a pointer to the state in the tri->inputs struct. Remove
some complex logic for eliminating unused statechanges in bins at the
expense of a slightly larger triangle struct.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
d4b64167b56f780d0dea73193c345622888fbc16 17-Jun-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: pass mask into fragment shader

Move this code back out to C for now, will generate separately.

Shader now takes a mask parameter instead of C0/C1/C2/etc.

Shader does not currently use that parameter and rasterizes whole
pixel stamps always.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
3bd9aedbac79eec16bfe6f5fc6f6a021eebe769a 08-Jul-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: move fences from per-bin to per-thread

Rather than inserting an lp_rast_fence command at the end of each
bin, have each rasterizer thread call this function directly once
it has run out of work to do on a particular scene.

This results in fewer calls to the mutex & related functions, but more
importantly makes it easier to recognize empty bins.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
99c8d9b6dac55263b3f0ddce939173ec9a16cf80 06-Jul-2010 Zack Rusin <zackr@vmware.com> llvmpipe: disconnect vertex texture sampling from the setup

it was wrong to put this in the fs paths, but it was easier to just
stuff it along the fragment texture sampling paths. the patch
disconnects vertex texture sampling and just maps the textures
before the draw itself and unmaps them after.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
01eebfe1b6de2e36dd3af0952fc8329b7073a100 14-Jun-2010 Zack Rusin <zackr@vmware.com> draw: implement vertex texture sampling using llvm
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
2b3e1ad731d2bd095a680d3120619972a7eb0242 30-Jun-2010 Brian Paul <brianp@vmware.com> llvmpipe: use dummy tile when out of memory
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
a2311400fe9385c39a278eb624dc60a0a635c838 30-Jun-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Add a new scene state to describe scenes which only have state changes.

It's a rare condition, but it may happen if all primitives are
clipped/culled.

For now we just do a no-op rasterization, but we could bypass it.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
8be645d53a0d5d0ca50e4e9597043225e2231b6d 28-Jun-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Ensure outdated framebuffer state is not reused in lp_setup_bind_framebuffer().

We were starting a scene whenever lp_setup_get_vertex_info() was called by
the draw module. So when when all primitives were culled/clipped, not only
did we create a new scene for nothing, but we end up using the old scene
with the old framebuffer state instead of a new one.

Fix consists in:
- don't call lp_setup_update_state() in lp_setup_get_vertex_info() -- no
longer necessary
- always setting the scene state before binning a command -- query
commands were bypassing it
- assert no old scene is reused in lp_setup_bind_framebuffer()
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
26d5d4d99510148eef4fd20845b7790b4fedc355 09-Jun-2010 Roland Scheidegger <sroland@vmware.com> llvmpipe: fix copy & paste bug in clear logic

fixes bug 28450.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
a52f577270300bf3b986f175d26f96ae83c048d9 04-Jun-2010 Vinson Lee <vlee@vmware.com> llvmpipe: Fix uninitialized variable on non-debug builds.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
992382762a74fd834926fd2c3cd9e14a186e2dd5 03-Jun-2010 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-newclear'

Conflicts:
src/gallium/state_trackers/python/p_context.i
18fb9ff6d8f58a08e559070cf29f26ed0caa567f 26-May-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Pass the fs variant to the rasterizer.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
1e17178fc40b6a1a54cb3e93c098bdd0d490b88a 29-May-2010 Roland Scheidegger <sroland@vmware.com> llvmpipe: adapt to clear interface changes

with some newfangled code, should support separate depth/stencil clears.
Needs some testing.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
d9096926f84b33e122e3b2942ff66dc183894b50 13-May-2010 Brian Paul <brianp@vmware.com> llvmpipe: silence casting warnings
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
cc346b51fadff68d4e093ed5d76c9b1e5ae51b43 08-May-2010 Vinson Lee <vlee@vmware.com> llvmpipe: Remove unnecessary header.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
86afe8250edaa2e6129c937a62a695f616c48d70 06-May-2010 Qicheng Christopher Li <chrisl@vmware.com> llvmpipe: implement occlusion query

OpenGL occlusion queries work now. The Mesa demos, glean test and piglit
tests all pass. A few enhancements are possible in the future. -Brian

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
dbcd5622d5c0287ffa8c84dac4465af7cc92c5b7 05-May-2010 Vinson Lee <vlee@vmware.com> llvmpipe: Remove unnecessary headers.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
477b0d838b7ac3f9d0534df28f6af9e17c403a71 04-May-2010 Brian Paul <brianp@vmware.com> llvmpipe: do some null pointer checking
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
1fc5a318a64b10567ed6990eb04b2dc3ecb2b347 04-May-2010 Brian Paul <brianp@vmware.com> gallium: move framebuffer utility functions into a new file
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
0728db86bc8d4e9223aad56d0848f1fc4cb95f13 28-Apr-2010 Brian Paul <brianp@vmware.com> llvmpipe: fix scene queue memory leak
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
5f53ecb97f23503324d62abdd21bda8ee80b0ab9 28-Apr-2010 Brian Paul <brianp@vmware.com> llvmpipe: fix surface memory leak during tear-down
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
b73c9ba9195ac436960b90649db35bb11d23f9d0 27-Apr-2010 Brian Paul <brianp@vmware.com> llvmpipe: remove unused write_depth
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
bb527c0af6c53b335330da1063979f5ac3a19174 27-Apr-2010 Brian Paul <brianp@vmware.com> llvmpipe: implement max scene size

When the size of the scene (binned data plus referenced resources/textures)
exceeds LP_MAX_SCENE_SIZE flush/render the scene. This could be improved
in various ways but is a good start.

Fixes piglit streaming-texture-leak test.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
aa7a47dcbdfff3c6858ff3618170ec17ca72d337 24-Apr-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Initialize dummy variable.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
bd6e9e33501ad4351029d0eb0efa6b83f9f05445 24-Apr-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Don't use fences when not using threads.

lp_setup_flush has effect immediately.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
39be50dcdebe6bcbb48cb6aa8ac151eee811acb1 24-Apr-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Move the determination of the number of threads to the screen.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
f855193796b834e9f06775f8a7130837d1f86f95 23-Apr-2010 Brian Paul <brianp@vmware.com> llvmpipe: rename texture refs to resource refs
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
4c93cd13ba7b7c129256f6cb82ce04b066f3bb16 20-Apr-2010 Brian Paul <brianp@vmware.com> llvmpipe: remove dead code
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
f4071e55dba8c0f45f3a7f59135b34e5b81fdab8 20-Apr-2010 Brian Paul <brianp@vmware.com> llvmpipe: get 3D texture image stride from an array rather than computing it

This fixes broken 3D texture indexing when the height of the 3D texture
was less than 64 (the tile size). It's simpler to pass this as an array
(as we do with the row stride) than to compute it on the fly.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
202ff7db490f4a1d041a88f11665fbd3ccea2201 20-Apr-2010 Brian Paul <brianp@vmware.com> llvmpipe: fix rendering to 3D textures

Treat cube faces and 3D texture slices in the same manner (they're layed
out out continuously in memory). Additional clean-ups and improvements
coming.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
9fae289fcd098027952c6b586292214ec586a2ec 16-Apr-2010 Brian Paul <brianp@vmware.com> llvmpipe: check for dirty context state in lp_setup_update_state()

This fixes problems with the draw module's aaline, aapoint and
pstipple stages where we change some driver state after the call
to the draw module's draw_arrays() function.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
0639765b2850739af1678f10fc0c5706d5827776 16-Apr-2010 Brian Paul <brianp@vmware.com> Merge the lp-surface-tiling branch into master.

This branch implemented dual representations of texture/drawing surfaces:
one in the conventional linear layout and the other the tiled layout which
is used by the fragment shader pipe. Per-tile flags indicate the layout
of each image tile. In many situations this lets us avoid converting
image data between the two layouts.

Squashed commit of the following:

commit 563a7e3cc552fdcfcaf9ac0d4b1683c3ba2ae732
Author: Brian Paul <brianp@vmware.com>
Date: Thu Apr 8 14:48:21 2010 -0600

llvmpipe: convert points/lines to triangles with draw module

This isn't the most efficient way to render points/lines but it allows us
to run more tests.

commit a8aa763e8a717533f2b13bb6ea53cbccbede68c9
Author: Brian Paul <brianp@vmware.com>
Date: Thu Apr 8 14:47:28 2010 -0600

llvmpipe: call llvmpipe_get_texture_tile() for depth/stencil

The returned pointer isn't used, but the tile status/layout info
gets updated. Helps to fix glReadPixels(DEPTH / STENCIL).

commit 463bc64af266194acbea71cd52e26a79b8c8a260
Author: Brian Paul <brianp@vmware.com>
Date: Thu Apr 8 10:58:48 2010 -0600

llvmpipe: add store_color to debug cmd_names list

commit 784cc73fb334a9d7b7c93cbd8a1445cdf742ff58
Author: Brian Paul <brianp@vmware.com>
Date: Thu Apr 8 10:57:43 2010 -0600

llvmpipe: fix debug build

commit 792c93171ec075664f55720ffed397ac2834a4fc
Author: Brian Paul <brianp@vmware.com>
Date: Thu Apr 8 10:49:01 2010 -0600

llvmpipe: fix cube mapping

commit 882b1035db88c3dd8aebe28dc971ac30a9ee39e3
Author: Brian Paul <brianp@vmware.com>
Date: Thu Apr 8 09:53:30 2010 -0600

llvmpipe: remove some older/unused code

commit b807d32b23145301e8842824664d9f06b9c5502e
Author: Brian Paul <brianp@vmware.com>
Date: Thu Apr 8 09:29:50 2010 -0600

llvmpipe: silence warning

commit 7b337e64fec92836ccdf9d96216289dd58418e35
Author: Brian Paul <brianp@vmware.com>
Date: Wed Apr 7 17:06:08 2010 -0600

llvmpipe: clean-up, comments in lp_surface_copy()

commit c52fa36f249cc652fa8d5fdd94d6574127c08c41
Author: Brian Paul <brianp@vmware.com>
Date: Wed Apr 7 16:51:42 2010 -0600

llvmpipe: overhaul tiled/linear memory management

Now we keep per-tile layout info (linear vs. tiled (or neither or both)
and convert from one layout to the other on demand.

commit 4a50ccfd470547c9be0704005818a87014e9c0e9
Author: Brian Paul <brianp@vmware.com>
Date: Wed Apr 7 16:51:27 2010 -0600

llvmpipe: added tile read/write counters

commit b7d0ea9c687ac8773b083791623826fa604adf21
Author: Brian Paul <brianp@vmware.com>
Date: Mon Apr 5 14:54:04 2010 -0600

llvmpipe: rename some functions

commit ee45c6e5b95cbd3c8cccc9aa4d45d8aef11e20c4
Author: Brian Paul <brianp@vmware.com>
Date: Mon Apr 5 14:42:15 2010 -0600

llvmpipe: re-org some get block/tile pointer code

commit 26ce97c16c0b6520ff1538803baa772d8c3b1280
Author: Brian Paul <brianp@vmware.com>
Date: Mon Apr 5 14:34:13 2010 -0600

llvmpipe: disable bad assertions

commit 5c670481248c4d46f87f13bf3af5655925e7002d
Author: Brian Paul <brianp@vmware.com>
Date: Fri Apr 2 16:36:11 2010 -0600

llvmpipe: add a special-case optimization to lp_surface_copy()

Be more efficient when copying tiled image to linear image.
Before, the fallback path was always converting the whole source image
to linear. Now we can convert just a sub region.

commit faa684645e64d6024b3a11e4e08da825e8220b2e
Author: Brian Paul <brianp@vmware.com>
Date: Fri Apr 2 16:15:16 2010 -0600

llvmpipe: assorted texture and tile/line conversion code change s

The tiled/linear conversion functions take x/y positions now to
allow converting only sub-regions.

More texture-related helper functions.

commit baad81ec5318d44bfac1e37c7643afc0836607bb
Author: Brian Paul <brianp@vmware.com>
Date: Tue Mar 30 13:18:40 2010 -0600

llvmpipe: convert tiled->linear upon PIPE_FLUSH_SWAPBUFFERS

If we know we're about to do a swapbuffers we should immediately
convert the tiled color tiles to linear instead of later in
llvmpipe_texture_unmap() since we can take advantage of threading/
parallelism here.

commit 928dd41256811daeddb7506a49a34dbad04beaf8
Author: Brian Paul <brianp@vmware.com>
Date: Tue Mar 30 09:16:58 2010 -0600

llvmpipe: polish-up the llvmpipe_flush() code

commit dd6014abcf86c517d159b8175e0eaeb167ea2ef6
Author: Brian Paul <brianp@vmware.com>
Date: Tue Mar 30 09:15:17 2010 -0600

llvmpipe: SETUP_x enum clean-up

commit 0b1ce6da2b28a41f3389685ab93e10b43c950f5d
Author: Brian Paul <brianp@vmware.com>
Date: Fri Mar 26 10:43:37 2010 -0600

llvmpipe: remove unused vars

commit 4562663480f88162ed4452cb05569eecb67f9f39
Author: Brian Paul <brianp@vmware.com>
Date: Fri Mar 26 10:31:55 2010 -0600

llvmpipe: cope with non-existant color/depth buffers

The fragment jit functions always grab these pointers, even if they're
not used.

commit df4329edbaf204ed501f1eac0698b8198178f9af
Author: Brian Paul <brianp@vmware.com>
Date: Thu Mar 25 15:20:15 2010 -0600

llvmpipe: do all render target surface mapping/unmapping in the rast code

commit 3d0c25d5ba8b8f61e8366d4c97324e45d526ff41
Author: Brian Paul <brianp@vmware.com>
Date: Thu Mar 25 14:31:21 2010 -0600

llvmpipe: map z/stencil buffer on demand like color buffers

Plus lots of code clean-up and loose ends taken care of.

commit c3b6fddd788aef09b4b84b843b7b1272231151e8
Author: Brian Paul <brianp@vmware.com>
Date: Thu Mar 25 13:15:03 2010 -0600

llvmpipe: remove unused write_zstencil field

commit 63374d97836926a6357e9d6dd24a509a8e155c56
Author: Brian Paul <brianp@vmware.com>
Date: Thu Mar 25 09:45:59 2010 -0600

llvmpipe: add missing lp_rast_end() call

Fixes crash on window resize when LP_NUM_THREADS=0.

commit 92fe9952161cc06f6edc58778e9e5a8b9ea447dc
Author: Brian Paul <brianp@vmware.com>
Date: Wed Mar 24 10:15:19 2010 -0600

llvmpipe: add tiled/linear conversion for 16-bit Z images

commit 6605fa28c147f30df351da0e4413cab33e4db5da
Author: Brian Paul <brianp@vmware.com>
Date: Tue Mar 23 16:06:41 2010 -0600

llvmpipe: implement tiled/linear conversion for Z/stencil images

commit 804528d84ffa292ef9d49d3666cdd3fa099ff3ff
Author: Brian Paul <brianp@vmware.com>
Date: Tue Mar 23 16:05:45 2010 -0600

llvmpipe: added texture stride comment

commit 66a88c012edf670c4ac887a912f02dcff93266dd
Author: Brian Paul <brianp@vmware.com>
Date: Tue Mar 23 16:04:07 2010 -0600

llvmpipe: remove unused vars

commit e2ca8d1328316dc8b36d5f688c16d109e49a6870
Author: Brian Paul <brianp@vmware.com>
Date: Mon Mar 22 18:53:11 2010 -0600

llvmpipe: checkpoint WIP: overhaul texture/surface mapping

Conversion between tiled and linear surfaces is working everywhere now.
The LP_TEXTURE_READ/READ_WRITE/WRITE_ALL flags let us avoid unnecessary
image layout conversions.

Still some loose ends, temporary/debug code, etc.
Need to implement tiled/linear conversion for depth/stencil images.

commit f2730a03839ee8984c1f537b7cbebba24961397a
Author: Brian Paul <brianp@vmware.com>
Date: Mon Mar 22 14:41:58 2010 -0600

llvmpipe: rename/repurpose lp_rast_store_color()

commit e192a47552c5d20d2caef452ca7697e2cd852c9b
Author: Brian Paul <brianp@vmware.com>
Date: Mon Mar 22 14:38:51 2010 -0600

llvmpipe: remove lp_rast_load_color()

commit 3cff0bde4b4ab980e1c3e812700419091527c76b
Author: Brian Paul <brianp@vmware.com>
Date: Mon Mar 22 14:11:38 2010 -0600

llvmpipe: remove/consolidate texture image code

commit 3a2f08b6a550c69ef5e874f482be30252cbf8bfa
Author: Brian Paul <brianp@vmware.com>
Date: Fri Mar 19 17:03:14 2010 -0600

llvmpipe: checkpoint WIP: directly render to tiled texture buffers

We're now directly writing colors into the tiled texture image buffers.

This is a checkpoint commit with lots of dead code and temporary hacks.
Everything will get cleaned up eventually.

commit c5ca987e03870849514d4e3c99af143722a09695
Author: Brian Paul <brianp@vmware.com>
Date: Fri Mar 19 16:41:14 2010 -0600

llvmpipe: refactor code, create tile_pixel_offset()

commit 2133e8273e937cbac09cd7264d6ce53af9764ddb
Author: Brian Paul <brianp@vmware.com>
Date: Fri Mar 19 14:55:11 2010 -0600

llvmpipe: pass LP_TEXTURE_LINEAR/TILED flags around

commit b9b9d4b82b01f4588721fdc8444740f859b4a021
Author: Brian Paul <brianp@vmware.com>
Date: Fri Mar 19 14:51:05 2010 -0600

llvmpipe: checkpoint WIP: hanlde co-existing tiled/linear texture data

Cube maps are temporarily broken, maybe other things.

commit 4cd322e6889940b5f155fcb69041b685b9ef9273
Author: Brian Paul <brianp@vmware.com>
Date: Fri Mar 19 11:34:43 2010 -0600

progs/demos: add other modes/patterns to dissolve demo
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.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/gallium/drivers/llvmpipe/lp_setup.c
8814bb652aa0deee7fa34c0746ba9dc63163b88d 25-Mar-2010 Brian Paul <brianp@vmware.com> Revert "llvmpipe: optimize the lp_setup_fence() function"

This reverts commit a9063cad0f0190ff88cd20fbad5aa87bf1a943f6.

Not too surprisingly, this change caused some regressions.
Revert it for the time being.
See fd.o bug 27320.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
a9063cad0f0190ff88cd20fbad5aa87bf1a943f6 25-Mar-2010 Brian Paul <brianp@vmware.com> llvmpipe: optimize the lp_setup_fence() function

Avoid emitting fences when not needed.
Speeds up glReadPixels quite a bit when reading image row by row.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
2ad8692aad0f4ad49643d5f697a036afccdeb9f0 24-Mar-2010 Brian Paul <brianp@vmware.com> llvmpipe: fix texture reference counting bug

We weren't saving the per-scene texture references at the right point.

Fixes piglit cubemap segfault. The segfault resulted from referencing
texture memory which was prematurely freed because of a missed reference
count.

Fixes fd.o bug 27276.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
521c61ff017ab15b829abbe9a98b179136a36009 18-Mar-2010 Brian Paul <brianp@vmware.com> gallivm/llvmpipe: simplify front/back stencil ref value handling

Instead of passing an array, just pass two scalar values.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
eee51147979208feffdf37c588ebbce4df6b40d6 16-Mar-2010 Brian Paul <brianp@vmware.com> llvmpipe: added stencil ref values to jit context state
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
47bfbd452c93e6a8db013fb90d9f42210cf24889 13-Mar-2010 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/master' into gallium-sampler-view

Conflicts:
src/gallium/auxiliary/util/u_tile.c
src/gallium/auxiliary/util/u_tile.h
src/gallium/drivers/identity/id_context.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_setup.h
src/gallium/drivers/softpipe/sp_tex_tile_cache.c
src/gallium/include/pipe/p_context.h
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
a80e33f40731f07e8a39896bfdcd1b1504aedc1f 13-Mar-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Obey rasterization rules.

Replicates softpipe.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
3160cbabccf1f7d8bdf344242507b9c3082f15c6 13-Mar-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: setup_context -> lp_setup_context

Otherwise IDEs and debuggers have trouble distinguishing from softpipe's
setup_context.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
53efb634a0c134feebb5a3e47fc33660694be9c3 11-Mar-2010 Brian Paul <brianp@vmware.com> gallivm/llvmpipe: replace 'int stride' with 'int row_stride[MAX_LEVELS]'

The stride depends on the mipmap level. Rename to row_stride to
distinguish from img_stride for 3D textures.

Fixes incorrect texel addressing in small mipmap levels.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
19371fb60da8ec27a6024d0bf38b82cf3ca787e4 10-Mar-2010 Brian Paul <brianp@vmware.com> llvmpipe: fix loop over mipmap levels
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
3ce4375912c8ea488460e593e07c5bb15b92dca9 10-Mar-2010 Michal Krol <michal@vmware.com> Merge branch 'master' into gallium-sampler-view

Conflicts:
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/SConscript
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/util/u_blitter.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i965/brw_context.h
src/gallium/drivers/llvmpipe/lp_context.h
src/gallium/drivers/nv50/nv50_context.h
src/gallium/drivers/nv50/nv50_state_validate.c
src/gallium/drivers/nv50/nv50_tex.c
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_sampler.c
0c96690a5b6e1c2d114e7ec5f1e9d60a4ff2a330 09-Mar-2010 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/master' into gallium-sw-api-2

Conflicts:
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/softpipe/sp_winsys.h
src/gallium/state_trackers/egl/common/egl_g3d.c
src/gallium/state_trackers/egl/x11/native_x11.c
src/gallium/state_trackers/egl/x11/native_x11.h
src/gallium/state_trackers/egl/x11/native_ximage.c
f027d5612901de8e6167e6288c4e24d91d964e7f 08-Mar-2010 Brian Paul <brianp@vmware.com> llvmpipe/gallivm: checkpoint: array of pointers to mipmap levels

Change the texture data_ptr from just a single image pointer to an
array of image pointers, indexed by mipmap level.
We'll use this for mipmap filtering.
For now, the mipmap level is hard-coded to zero.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
b5038fdd65535012086535c6a87bc56c91a65c87 06-Mar-2010 Brian Paul <brianp@vmware.com> llvmpipe: added code to set texture depth, max mipmap levels info
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
23e951d0da5802fec70996e46ad6f0abc411594c 04-Mar-2010 Keith Whitwell <keithw@vmware.com> gallium: fix llvmpipe after winsys move
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
94ce4eb3c27706d992226d847d123c46b14b1c4f 04-Mar-2010 Keith Whitwell <keithw@vmware.com> softpipe: rework to use the llvmpipe winsys

Promote the llvmpipe winsys more or less unchanged to
state_trackers/sw_winsys.h.

Some minor breakages:
- softpipe::texture_blanket is broken, but scheduled for removal anyway.
- haven't fixed up g3vdl yet.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
5fe2ce28b6e9fba181c13c6f49b57b3dd68fe88e 02-Mar-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: reorganize transfer usage

Move transfer creation and mapping to the "scene" object, and out of
the rasterizer. The rasterizer operates on already-mapped
framebuffers only, and no longer needs a screen or context pointer.

The scene object has access to a pipe_context, and this reorg prepares
for moving transfer functionality from the screen to the context.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
049b4c340575ebc788d9a009829980fafa587eff 11-Feb-2010 Brian Paul <brianp@vmware.com> llvmpipe: added assertions to verify that scene is empty
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
0b58d029b936fb9e3b30f157b554b9bc29f72f6d 14-Feb-2010 Vinson Lee <vlee@vmware.com> llvmpipe: Silence unused value warning.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
b44c444a0fd203004612cab86ac78ae3bef2794b 10-Feb-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Map rendertargets when bound as textures.

Fixes gearbox segfault (fdo 25960). Corruption remains.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
5e6a9005100ec2636ce9734a5e4535216494cf60 10-Feb-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Leave depth buffer in swizzled format.

This fixes several assertion failures due to only Z32 being supported.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
b014d71fd4e35efc5de36b7cc78a7880f8ccbf33 09-Feb-2010 Brian Paul <brianp@vmware.com> llvmpipe: s/textured/texture/
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
a1af8eec66c5f7ec421e8011b41c1a7c36319f9f 05-Feb-2010 José Fonseca <jfonseca@vmware.com> Merge remote branch 'origin/lp-binning'

Conflicts:
src/gallium/auxiliary/util/u_dl.c
src/gallium/auxiliary/util/u_time.h
src/gallium/drivers/llvmpipe/lp_state_derived.c
src/gallium/drivers/llvmpipe/lp_state_surface.c
src/gallium/drivers/llvmpipe/lp_tex_cache.c
src/gallium/drivers/llvmpipe/lp_tile_cache.c
1a2f9d722e9492bad1f3d8c7fa99ff19af829b56 29-Jan-2010 Vinson Lee <vlee@vmware.com> llvmpipe: Remove unnecessary header.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
c2bd1657a80cec2099e648ec62424d0d06cd6b9b 28-Jan-2010 Vinson Lee <vlee@vmware.com> llvmpipe: Remove unnecessary headers.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
cd9d9e2436a0815f6ed3a61d2cdf8fad53278506 21-Jan-2010 Brian Paul <brianp@vmware.com> llvmpipe: added simple perf/statistics counting facility

Currently counting number of tris, how many tiles of each size are
fully covered, partially covered or empty, etc.

Set LP_DEBUG=counters to enable. Results are printed upon context
destruction.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
591401ff05f878ff1607a1a34db1319103025d8f 16-Jan-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: use new u_ringbuffer for scene queue
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
fdfe06ad804ea13e6e436d66c1bcafe0bde2f545 15-Jan-2010 Brian Paul <brianp@vmware.com> llvmpipe: implement scissor test in triangle setup
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
2797f2bf57562c95a601a67edca3089641215cc4 15-Jan-2010 Brian Paul <brianp@vmware.com> llvmpipe: generate two shader varients, one omits triangle in/out testing

When we know that a 4x4 pixel block is entirely inside of a triangle
use the jit function which omits the in/out test code.

Results in a few percent speedup in many tests.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
4461442849bfdb817334b38567136f7f9dabdf59 15-Jan-2010 Brian Paul <brianp@vmware.com> llvmpipe: implement scissor testing

The scissor test is implemented as another per-quad operation in
the JIT code. The four scissor box params are passed via the
lp_jit_context. In the JIT code we compare the quad's x/y coords
against the clip bounds and create a new in/out mask that's AND'd
with the main quad mask.

Note: we should also do scissor testing in the triangle setup code
to improve efficiency. That's not done yet.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
018b78ad649e88cc6d8b6b10aef1502075508515 13-Jan-2010 Brian Paul <brianp@vmware.com> llvmpipe: check render targets before other textures
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
12872774461a84f0a7c272aff5aac5e30a78a7c2 13-Jan-2010 Brian Paul <brianp@vmware.com> llvmpipe: also check render target textures in lp_setup_is_texture_referenced()
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
0b279c5382da021a71cdc8ed3afa09983817539c 13-Jan-2010 Brian Paul <brianp@vmware.com> llvmpipe: indentation fixes
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
db58192cfb63cbb7b1d84e7ae7429799ce888164 13-Jan-2010 Brian Paul <brianp@vmware.com> llvmpipe: re-get scene pointer after flushing
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
d59fe448967addb3025d7df90888ff950e03a343 13-Jan-2010 Brian Paul <brianp@vmware.com> llvmpipe: check for texture usage in all scenes
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
a27b12171d84c6e731af08f48a657c377f8549ba 13-Jan-2010 Brian Paul <brianp@vmware.com> llvmpipe: add scene texture referencing code
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
a1acbff299c444913418e65da473745cd901a2db 13-Jan-2010 José Fonseca <jfonseca@vmware.com> llvmpipe: Reset the bin when shading a whole tile with an opaque shader.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
da45f49cc63fff06513dc28d9616084fc81798d4 13-Jan-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: quick hack to short-circuit empty bins
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
26c78a4968a3c10ca006699d240150e6aa4b4250 12-Jan-2010 José Fonseca <jfonseca@vmware.com> gallium: Rename ALIGN_STACK -> PIPE_ALIGN_STACK for consistency.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
5dfd5ed5e7d23d4ee8572669af2673c3a1315763 12-Jan-2010 José Fonseca <jfonseca@vmware.com> gallium: Simplify PIPE_ALIGN_VAR.

gcc allows pre-fix variable attributes.

Suggested by Ian Romanick.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
86bfe974b880dc2cbf40b91ba0fde34e8a9c756e 10-Jan-2010 José Fonseca <jfonseca@vmware.com> gallium: Generalize the alignment macros to other compilers and any alignment.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
c1a04416023e24621e4992caf593e8dfe8d7a2fc 10-Jan-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: initial mrt support

Non-mrt apps work, and the code looks correct, but not many mrt test apps
handy atm...
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
080c40ab32b2abd6d8381b4a0cc143d36a1652b2 08-Jan-2010 José Fonseca <jfonseca@vmware.com> Merge remote branch 'origin/master' into lp-binning

Conflicts:
src/gallium/auxiliary/util/u_surface.c
src/gallium/drivers/llvmpipe/Makefile
src/gallium/drivers/llvmpipe/SConscript
src/gallium/drivers/llvmpipe/lp_bld_arit.c
src/gallium/drivers/llvmpipe/lp_bld_flow.c
src/gallium/drivers/llvmpipe/lp_bld_interp.c
src/gallium/drivers/llvmpipe/lp_clear.c
src/gallium/drivers/llvmpipe/lp_context.c
src/gallium/drivers/llvmpipe/lp_context.h
src/gallium/drivers/llvmpipe/lp_draw_arrays.c
src/gallium/drivers/llvmpipe/lp_jit.c
src/gallium/drivers/llvmpipe/lp_jit.h
src/gallium/drivers/llvmpipe/lp_prim_vbuf.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_setup_point.c
src/gallium/drivers/llvmpipe/lp_state.h
src/gallium/drivers/llvmpipe/lp_state_blend.c
src/gallium/drivers/llvmpipe/lp_state_derived.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/llvmpipe/lp_state_sampler.c
src/gallium/drivers/llvmpipe/lp_state_surface.c
src/gallium/drivers/llvmpipe/lp_tex_cache.c
src/gallium/drivers/llvmpipe/lp_tex_cache.h
src/gallium/drivers/llvmpipe/lp_tex_sample.h
src/gallium/drivers/llvmpipe/lp_tile_cache.c
b08583da468ee186b43ea678f8d33fb7df3ab372 06-Jan-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: fix double free
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
5ce0380a0f585b9e1fb616b749f7fd18a8afada1 06-Jan-2010 Keith Whitwell <keithw@vmware.com> llvmpipe: merge setup and draw vbuf submodules

The setup tiling engine is now plugged directly into the draw module
as a rendering backend.

Removed a couple of layering violations such that the setup code no
longer reaches out into the surrounding llvmpipe state or context.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
b1ed72ebe2599ec178f51d86fd42f26486b9a19b 17-Dec-2009 Michal Krol <michal@vmware.com> Move the remaining format pf_get_* functions to u_format.h.

Previously they depended on format blocks, but after removing those
they started depending on format encoding.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
7f2ba80025e4b534db72427a206e6a542fc2f520 17-Dec-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: keep copy of framebuffer state in setup context

Avoids crashes when first frame is rendered before window is mapped.
Avoids potential issue where fb state is changed before setup context is
flushed.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
663750d5564a225b4720f7ee8bea93ffb309fc88 13-Dec-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: rename bins to scene

It was pretty confusing having an entity named "bin" and another named
"bins", not least because sometimes there was a need to talk about >1
of the "bins" objects, which couldn't be pluralized any further...

Scene is a term used in a bunch of places to talk about what a binner
operates on, so it's a decent choice here.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
39dd7108bf6014a8430dffc290e98c7b47432cd3 12-Dec-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: rename queue size to count
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
314d3cd751448f9ae36126937b3bbf0330542da3 12-Dec-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: rename one of the two rasterize_bins functions
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
6cbb1219a3f6b83ee4d24aecb61f5b5943e3cac3 12-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: checkpoint: plug in the new fencing code

This has only been very lightly tested. More work to come.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
9a6567f1ed88727545f747e8670b713f17627c94 10-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: updated comment
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
1fb440beb9cccbe6f4bbd309792a89f6e1b4ee3f 10-Dec-2009 michal <michal@transistor.(none)> llvmpipe: Fix after sampler view changes.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
ad3c16c127f167513a136759a1700e111a0ef7b8 10-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: simplify the tiles_x, tiles_y code a bit
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
3bee8c2e7c17893f91f6b62e2db090ef495dca9d 10-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: use the empty_bins queue now
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
d7dbc666367438ee9efe748505907b36bba6b66a 09-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: checkpoint: begin plugging in bin queue code
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
22b07b8be4c2939b00e10f17fa91e68682808594 09-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: use new lp_setup_get_current_bins() function

This stub function will interface to the queue system...
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
8a23105fa016ec4368f407ca64e7763f110da4e5 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: still more bin code reorganization

Move tiles_x,y fields from setup state into bin state.
Move more bin-adding commands into lp_bin.[ch].
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
2c8d5c66ce2ddc0b7182e4844690736fc4c47212 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: remove dead code left over from a previous commit
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
01b1900084152dbacd4025a31ced25f75666ce59 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: reorganization of binning data structions and funtions

New lp_bins struct contains all bin information.
More move bin-related code into lp_bin.[ch]
Use new/updated bin-access functions to hide implementation details.
The result is more/cleaner separation between the setup and rast components.
This will make double-buffering of the bins easier, etc.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
b533b56750aca8c7e8cb22af93a0fc2a0cfc0d97 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: move lp_rasterize_bin() into lp_rast.c

First step of moving bin rasterization/execution code out of lp_setup.c
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
9fca3e065b9ab5ef1389a76934bc24ed2b287a76 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: simplify framebuffer state code
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
a08d6302168341001003da32d42cfcff2311fa04 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: use LP_DBG() macro everywhere
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
d9dc3d59760a28d54013d3d164f61d85ec807651 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: move bin-related structures and functions into new lp_bin.[ch]

And put lp_ prefixes on some functions.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
b1659b9213f3eeee440590dfe379f0d193948307 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: bin state-change commands

Previously, each triangle had a pointer to the state to use for shading.
Now we insert state-change commands into the bins. When we execute one
of those commands we just update a 'current state' pointer and use that
pointer when calling the jit shader.

When inserting state-change commands into a bin we check if the previous
command was also a state-change command and simply replace it. This
avoids accumulating useless/redundant state-change commands.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
9dca0100489c7a7c02af77da42a39dbe1560d7e2 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: struct cmd_bin

Just introducing a new structure to represent a per-tile bin.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
9c1debe208d07b57e88c65bae186bb339de7dee7 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: comment about blend color
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
4e058f6c4803be5d9d676338d6aee2775b88b87c 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: fix incorrect array indexing when saving blend color
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
e2f46344560f8f1193b311ad41883011e67eea00 04-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: checkpoint some initial state binning code
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
0e042bed49c51fef38b02b7cc05efa504f2f703d 03-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: set LP_SETUP_NEW_FS in lp_setup_set_fs()

Fixes progs/trivial/tri-blend.c, but I think we're just getting
lucky in this case.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
3094fc200920f9d5eb62136d3b25896229fb0dbf 03-Dec-2009 Brian Paul <brianp@vmware.com> llvmpipe: more debug info
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
c78748a5274e58bcbb122923edf81065be9bbe16 02-Dec-2009 Roland Scheidegger <sroland@vmware.com> gallium: adapt drivers to interface cleanups
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
7d042ac2a285c220a396d91a6dbe5c7f4e697c71 30-Nov-2009 Brian Paul <brianp@vmware.com> llvmpipe: minor refactoring of bin rasterization code
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
026cf84bbbd939f0ae573a9841bb49aaa1d9ae75 23-Aug-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: remove old prim_setup draw stage

Everything now goes through the draw_vbuf handler, the same as
regular drivers.

Based on Keith's commit 4fe0fc3eba1f79beda890a5016359d549bab6ad4.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
677a055fa0cf7b6476c716be187513c41060d417 03-Nov-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Respect gl_rasterization_rules in primitive setup.

Based on Michal's identical commit for softpipe
(ca9c413647bf9efb5ed770e3a655bc758075aec7).
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
719984afca3864cfe86ca734f3e2bd6eb5834bd1 22-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Avoid yet another variable size array.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
694f05ac18c54253910678709f2dd35c36f1e912 21-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: remove one of two definitions of TILESIZE
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
301c1494b27ad92ff1237909f9c98c1660be8fc1 19-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Reset the pointer to stored jit context.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
f2be08ae0e20b3da8ff684ffeb94412cc6a5a5a1 19-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Allocate the blend color from the data store, and ensure it's aligned.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
2e3580d994e2caf6d81763803c8525a7ed42b8fd 18-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Maintain a copy of the shader constants to prevent clobbering.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
4046c3bab4dde95d4096f26637adaa6ce6d310a9 14-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Use ALIGN_STACK.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
7908c239e0fdc11d878b8c68d126c3364af0ee24 09-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Additional checks for binner block lists.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
85999695829823e459e11822b4846ed1db5c055d 09-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Get jit_context/jit_function across the rasterizer.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
f406ffaea62005157f56ea17709291326c4dca8a 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: set block count/used values back to zero on reset
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
402c189af7e95be99ba2e5fd71a71987ffd73c2f 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: always call begin_binning on transition to active state
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
082b3b0a895615a60a7eae40fea14bf231960dba 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: initialize setup data store
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
163a31952c903034c8a70213b344e1b2ef287270 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: initialize setup line/tri/point funcs
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
608c22272327d3b554c7665b60f6322716e5fd9d 09-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Put jit_context in store.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
e0e2008f1dcd73a59a184e0ef4c1dd77ac2a1cbf 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: trivial/clear works
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
659609e0ae27071a601794935c85547e315dedeb 09-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Replace util_pack_color with straight float_to_ubyte.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
4e1334ced68dd25b151250a44af25e8e0d5a33fe 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: debug, crash fixes
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
b0475a4b0d1eaa1179bc399301ed46b0b8e63497 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: fix crash on init
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
1928c965b1fb76987cbc834111bd1d1e1f2cda51 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: fix a couple of warnings
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
c0e3e35b03e6cbed3768cb56e298b6119eafe1ef 09-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Add stub lp_setup_is_texture_referenced.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
d904ed88c1d957f662497343de7dc3e9fa743e47 09-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Pass state to setup.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
e215f94f15fd20919cc0ed500dc2efde4f076516 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: get lp_setup_tri building
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
4cdd10cb4b60d85f6c231a26739f7d5e264a05e5 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: use union lp_cmd_rast_arg directly, rather than through a pointer

The union itself consists of pointers. We don't need to be passing
pointer to pointers.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
415b271b5100d64579690111bc8eb549866865a7 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: hook up some state, add stub line and point functions
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
84ab7dcf48e87350c0622c533e51aa495f7256c2 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: calculate overall width and height, pass to rasterizer
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
253dfed93918bd87c4a55047a9d569ede545f8be 09-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: get lp_setup compiling
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
0718c7700533a965d7cd06b4f67b82bbae6e66a1 08-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: work on clears and coefficients
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
f92787679d668bd1f48929da49d4df55be635fa9 08-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: More assorted build fixes.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
1caa26202c3bcc41ea5829b646128088e14d5dfd 08-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: start cleaning up
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
931210424bc46b2c13919f0ac3e0ef781eff207e 08-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: wip me harder
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
d614ced756f2cca64ec83b122da4cd028c08c0eb 08-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Update includes and copyright headers.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2 08-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: more wipping
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
89498d01531cd515c769e570bf799c39fbafc8fb 07-Oct-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: import experimental softpipe rasterizer code, wip binning code

WIP, does't build or run.

Rasterizer code is based on Nick Capen's devmaster posts and the
larrabee articles, but currently doesn't share either the performance
or correctness of either...
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
cbb57bf726619a34a244acaebf0dcd77750cba54 03-Oct-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Fetch tile only if a color buffer is bound.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
1fc41002252419f4688c24ea8c3814553b3d76ad 11-Sep-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Update status in README and TODO/FIXME comments throughout the code.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
01c831576eb77ec87bff667ed5591a93cbbef97d 09-Sep-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Debug function to check stack alignment.

Doing alignment check in locus is redundant, as gcc alignment assumptions
will optimize away the check.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
635c37e118bbf51fc8c93a2c999281ee817a93e1 23-Aug-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Pass the alpha ref value and blend color in the jit context.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
c022e15d1e56ba3a9c6b74eef6556d6063e2e322 23-Aug-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Pass fragment context to generated function in a single structure.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
4d2b0eb19e432f83845a55d552b5d1d61f040459 23-Aug-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Squash the quad pipeline.

It had been reduced to one fixed stage.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
b9f2f01315646c3af92e64152f51a593b65a5ac7 19-Aug-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Hack to force the line/point rasterization also fit the blend function expectations.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
17baa01bfbebf71c68aebea5196ebcb313612038 19-Aug-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Put the position coefficients together with the inputs.

The automatic search'n'replace leaves lp_setup.c a bit ugly, but this code
will be eventually code generated as well.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
908d8d7a1b01214116e358d7641cc097212aeb50 19-Aug-2009 Brian Paul <brianp@vmware.com> llvmpipe: prefix point/line/tri_setup() functions with llvmpipe_

Avoid symbol collisions with softpipe.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
a22f87c99462fd83dc398f4c06fc6d9997e15dba 18-Aug-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: use align_malloc for all structs containing ALIGN16 members

Unless the struct is allocated aligned, aligning the members isn't very
helpful.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
3014919211b361817c5365f7cbb8d2ef8ca61234 18-Aug-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Rasterize the quads according to what the blend function expects.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
17aec9304ca86feac7ca29e17dda73a10cdd08a5 14-Aug-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Compute interpolation coeffs directly into SoA layout.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
80eb276630a194632d9eba1e2b107d678d0f0a4d 24-Jul-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: actually pass >1 quad from triangle routine

First attempt
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
bdbb4beb21876010b14785569a920fa65a67d1ad 24-Jul-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: expand quad pipeline to process >1 quad at a time

This is part one -- we still only pass a single quad down, but
the code can now cope with more. The quads must all be from the same
tile.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
4486012245c5f526059d3872ac3561f53705d1cf 24-Jul-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: rip out old mulithread support
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
df1823ec5b2c64a9d1a5fc13be0e0f37741c3ffa 17-Jul-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: remove unused vars in lp_setup.c
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
08811032c2dd8f38d2ef65d7fd8794112e029b63 17-Jul-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: use bitwise logic to setup quad masks in lp_setup
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
0aa24fa36f7aea8e25c392eeeef6f9c108f09aba 17-Jul-2009 Keith Whitwell <keithw@vmware.com> llvmpipe: simplify flush_spans

No loss of performance, but simpler code.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
c9a5930fe45a0a0299769bd2b672ca516d1bf39e 27-Jul-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Rename preprocessor symbols too.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c
946f432a08112148d743eb9faf6b27bb8cc7fa76 27-Jul-2009 José Fonseca <jfonseca@vmware.com> llvmpipe: Fork softpipe for experimentation with llvm.
/external/mesa3d/src/gallium/drivers/llvmpipe/lp_setup.c