projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89505f7
)
egl/drm: add going out of the loop when the designated buffer is found
author
Gwan-gyeong Mun
<elongbug@gmail.com>
Mon, 17 Jul 2017 15:03:14 +0000
(
00:03
+0900)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Wed, 19 Jul 2017 12:06:50 +0000
(13:06 +0100)
Because the color_buffers have a each unique bo, if the designated buffer is
found, release_buffer() can go out the loop which seaches the buffer.
Signed-off-by: Mun Gwan-gyeong <elongbug@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_drm.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/platform_drm.c
b/src/egl/drivers/dri2/platform_drm.c
index 8e12aed0b3231bca93415826847e352b8a450727..86d15fa3d59b1e084f9778fff4779e1cffe4794f 100644
(file)
--- a/
src/egl/drivers/dri2/platform_drm.c
+++ b/
src/egl/drivers/dri2/platform_drm.c
@@
-72,6
+72,7
@@
release_buffer(struct gbm_surface *_surf, struct gbm_bo *bo)
for (unsigned i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++) {
if (dri2_surf->color_buffers[i].bo == bo) {
dri2_surf->color_buffers[i].locked = false;
+ break;
}
}
}