OSDN Git Service

vc4: Simplify the DISCARD_RANGE handling
authorEric Anholt <eric@anholt.net>
Fri, 9 Sep 2016 05:40:44 +0000 (22:40 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 14 Sep 2016 05:08:03 +0000 (06:08 +0100)
commita2014c2eb9e03301b2f472adf2d46915579e4512
tree45ffb491fc9e5538d5854c7b9cc5a503ba8deaf0
parent21a27ad9569211e48cfd7ad60ac4025ab9f96a7a
vc4: Simplify the DISCARD_RANGE handling

It's really just an upgrade to attempting WHOLE_RESOURCE.  Pulling the
logic out caught two bugs in it: We would try to do so on cubemaps (even
though we're only mapping 1 of the 6 slices), and we would break
persistent coherent mappings by trying to reallocate when we shouldn't.
src/gallium/drivers/vc4/vc4_resource.c