layers: Don't copy all the image subresources every submit
authorChris Forbes <chrisforbes@google.com>
Tue, 27 Jun 2017 00:57:39 +0000 (17:57 -0700)
committerChris Forbes <chrisf@ijw.co.nz>
Tue, 27 Jun 2017 16:41:32 +0000 (09:41 -0700)
commit21baabc6f066b9470b7c7a6c49576c4e33c7ad22
tree867e873cfca18d38c9080d194218f8c6476978ff
parent4d0fce1bdc0e74b80899763d6c7eab5b2dd57dea
layers: Don't copy all the image subresources every submit

The set of subresources touched by this submission is likely to be very
small compared to the complete set we're tracking. It doesn't make any
sense to copy this entire hashtable in each submit call.

Instead, maintain an overlay table with the submission's modifications
in it.

Saves approx 12s in an internal workload.
layers/buffer_validation.cpp
layers/buffer_validation.h
layers/core_validation.cpp