u_tile: Skip the packed temporary and just store tiles directly.
authorEric Anholt <eric@anholt.net>
Tue, 4 Feb 2020 18:59:19 +0000 (10:59 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 6 Feb 2020 20:48:03 +0000 (20:48 +0000)
commit4ca77f347d2e5791907db77ef1996f01ff9aa386
tree7f9cda11d8392ede589fbf68b4e69e779d332138
parent68bb26af63acad6a42dd5c4d653c61917a69127e
u_tile: Skip the packed temporary and just store tiles directly.

We were generating a packed copy and then memcpying it, but we can just
pack directly to the destination.  Change on glmark2 -b build:use-vbo=true
is modest: 1.06328% +/- 0.994771% (n=84) but does remove the function that
was .6% of CPU time.

I'm not doing the equivalent "get" path at this time because softpipe's
texture cache has some clipping issues that get revealed.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3698>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3698>
src/gallium/auxiliary/util/u_tile.c