st/xa: Cache render target surface
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 8 Apr 2014 20:48:51 +0000 (16:48 -0400)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 17 Apr 2014 07:56:28 +0000 (09:56 +0200)
commit09cd376353f534611323da9bedb9b88242b6e4fa
tree818dd0de0144377afbb84286309f56d578e177c2
parenta45ae814d1985bb9e72ba8f5cb73e070d22bd5b6
st/xa: Cache render target surface

Otherwise it will trick the gallium driver into thinking that the render
target has actually changed (due to different pipe_surface pointing to
same underlying pipe_resource).  This is really badness for tiling GPUs
like adreno.

This also appears to fix a rendering error with Motif on vmwgfx.
Why that is is still under investigation.

Based on an idea by Rob Clark.

Cc: "10.0 10.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Rob Clark <robclark@freedesktop.org>
src/gallium/state_trackers/xa/xa_context.c