iris: Defer construction of the validation (exec_object2) list
When I wrote this code originally, I decided to try and construct the validation list up front, rather than at submission time. That worked okay, but it's not really necessary. It's a fair amount of data to store (struct drm_i915_gem_exec_object2 is 56 bytes per object), when we can easily construct it on the fly. More importantly, with suballocation, batch->exec_bos[i] may have multiple entries corresponding to a single validation list entry. Rather than tracking two lists with an awkward mapping between them, we choose to just store the BO list and generate the other on the fly. Reviewed-by:Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <!12848>
Please register or sign in to comment