vc4: When asked to discard-map a whole resource, discard it.
authorEric Anholt <eric@anholt.net>
Fri, 24 Oct 2014 15:50:37 +0000 (16:50 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 24 Oct 2014 17:04:26 +0000 (18:04 +0100)
commit18ccda7b86b8f7ab7466265aefb3f3e773f4a757
tree14cc17d5d92cdb83ce863e54709f2c5c13d023b4
parenta71c3b885a532016aa426b5bb753291cffe39a44
vc4: When asked to discard-map a whole resource, discard it.

This saves a bunch of extra flushes when texsubimaging a whole texture
that's been used for rendering, or subdataing a whole BO.  In particular,
this massively reduces the runtime of piglit texture-packed-formats (when
the probes have been moved out of the inner loop).
src/gallium/drivers/vc4/vc4_resource.c