intel: batch-decoder: don't asks for constant BO until decoding
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 14 Jun 2018 16:29:16 +0000 (17:29 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 5 Jul 2018 10:57:45 +0000 (11:57 +0100)
commit28476c9d818b297bd88f2c0dc93cbd66aa671c13
tree4720000a6b3c422c3e50326b76ddecb082945027
parentc262ec19d0705d93903b28ed8f79cb85abeb5a1a
intel: batch-decoder: don't asks for constant BO until decoding

With PPGTT mappings, our aubinator implementation can be quite slow if
we request a buffer that doesn't exist. Instead of doing a PPGTT walk
for invalid addresses (0 lengths), wait until we're sure we want to
decode the data.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/common/gen_batch_decoder.c