Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Drew DeVault
xserver
Commits
4afa9e40
Commit
4afa9e40
authored
Jun 28, 2011
by
Zhigang Gong
Browse files
glamor: Prepare/finish access once if src equal to dst.
Signed-off-by:
Zhigang Gong
<
zhigang.gong@linux.intel.com
>
parent
cbedfe75
Changes
1
Hide whitespace changes
Inline
Side-by-side
glamor/glamor_copyarea.c
View file @
4afa9e40
...
...
@@ -322,6 +322,7 @@ glamor_copy_n_to_n(DrawablePtr src,
goto
done
;
return
;
}
glamor_report_delayed_fallbacks
(
src
->
pScreen
);
glamor_report_delayed_fallbacks
(
dst
->
pScreen
);
...
...
@@ -329,11 +330,12 @@ glamor_copy_n_to_n(DrawablePtr src,
glamor_get_drawable_location
(
src
),
glamor_get_drawable_location
(
dst
));
if
(
glamor_prepare_access
(
dst
,
GLAMOR_ACCESS_RW
))
{
if
(
glamor_prepare_access
(
src
,
GLAMOR_ACCESS_RO
))
{
if
(
dst
==
src
||
glamor_prepare_access
(
src
,
GLAMOR_ACCESS_RO
))
{
fbCopyNtoN
(
src
,
dst
,
gc
,
box
,
nbox
,
dx
,
dy
,
reverse
,
upsidedown
,
bitplane
,
closure
);
glamor_finish_access
(
src
);
if
(
dst
!=
src
)
glamor_finish_access
(
src
);
}
glamor_finish_access
(
dst
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment