History log of /external/mesa3d/src/gallium/drivers/swr/swr_resource.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7cfb364b1a373bce6b0b273556953fbb78c139e9 09-Nov-2016 Ilia Mirkin <imirkin@alum.mit.edu> swr: rework resource layout and surface setup

This is a bit of a mega-commit, but unfortunately there's no great way
to break this up since a lot of different pieces have to match up. Here
we do the following:
- change surface layout to match swr's Load/StoreTile expectations
- fix sampler settings to respect all sampler view parameters
- fix stencil sampling to read from secondary resource
- respect pipe surface format, level, and layer settings
- fix resource map/unmap based on the new layout logic
- fix resource map/unmap to copy proper parts of stencil values in and
out of the matching depth texture

These fix a massive quantity of piglits, including all the
tex-miplevel-selection ones.

Note that the swr native miptree layout isn't extremely space-efficient,
and we end up using it for all textures, not just the renderable ones. A
back-of-the-envelope calculation suggests about 10%-25% increased memory
usage for miptrees, depending on the number of LODs. Single-LOD textures
should be unaffected.

There are a handful of regressions as a result of this change:
- Some textureGrad tests, these failures match llvmpipe. (There are
debug settings allowing improved gallivm sampling accurancy.)
- Some layered clearing tests as swr doesn't currently support that. It
was getting lucky before because enough other things were broken.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
/external/mesa3d/src/gallium/drivers/swr/swr_resource.h
3bbe8a09eaf95548313db13b4e56dbdd35d2755e 19-Apr-2016 Tim Rowley <timothy.o.rowley@intel.com> swr: fix resource backed constant buffers

Code was using an incorrect address for the base pointer.

v2: use swr_resource_data() utility function.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94979
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
Tested-by: Markus Wick <markus@selfnet.de>
/external/mesa3d/src/gallium/drivers/swr/swr_resource.h
dd63fa28f14f8ddeeeca1847eb7d38f4e2bc2234 14-Mar-2016 George Kyriazis <george.kyriazis@intel.com> gallium/swr: Cleaned up some context-resource management

Removed bound_to_context. We now pick up the context from the screen
instead of the resource itself. The resource could be out-of-date
and point to a pipe that is already freed.

Fixes manywin mesa xdemo.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
/external/mesa3d/src/gallium/drivers/swr/swr_resource.h
e9d68cc3da07c4b566799bbaec2434bfc21d3e0c 10-Mar-2016 Bruce Cherniak <bruce.cherniak@intel.com> gallium/swr: Resource management

Better tracking of resource state and synchronization.
A follow on commit will clean up resource functions into a new
swr_resource.cpp file.

Reviewed-By: George Kyriazis <george.kyriazis@intel.com>
/external/mesa3d/src/gallium/drivers/swr/swr_resource.h
2b2d3680bf164ec4f8b50436b96c3fc195318ea5 17-Feb-2016 Tim Rowley <timothy.o.rowley@intel.com> gallium/swr: add OpenSWR driver

OpenSWR is a new software rasterizer for x86 processors designed
for high performance and high scalablility on visualization workloads.

Acked-by: Roland Scheidegger <sroland@vmware.com>
Acked-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/drivers/swr/swr_resource.h