mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-20 10:00:58 +00:00
intel: Add a comment explaining why we early return on matching BO names.
Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
2b311fd802
commit
fadc9eaf97
@ -893,6 +893,10 @@ intel_process_dri2_buffer(struct intel_context *intel,
|
||||
if (!rb)
|
||||
return;
|
||||
|
||||
/* We try to avoid closing and reopening the same BO name, because the first
|
||||
* use of a mapping of the buffer involves a bunch of page faulting which is
|
||||
* moderately expensive.
|
||||
*/
|
||||
if (rb->mt &&
|
||||
rb->mt->region &&
|
||||
rb->mt->region->name == buffer->name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user