projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b311fd
)
intel: Add a comment explaining why we early return on matching BO names.
author
Eric Anholt
<eric@anholt.net>
Wed, 4 Jul 2012 17:52:36 +0000
(10:52 -0700)
committer
Chad Versace
<chad.versace@linux.intel.com>
Tue, 17 Jul 2012 15:18:08 +0000
(08:18 -0700)
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_context.c
b/src/mesa/drivers/dri/intel/intel_context.c
index 2494ac79457e672ae5454d4affdaf8aef197ab71..378859c2a31435ed729cd2c782584b5f86f6bc81 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_context.c
+++ b/
src/mesa/drivers/dri/intel/intel_context.c
@@
-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)