projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
egl: turn boolean `int`s into `bool`s
[mesa.git]
/
src
/
egl
/
drivers
/
dri2
/
platform_drm.c
diff --git
a/src/egl/drivers/dri2/platform_drm.c
b/src/egl/drivers/dri2/platform_drm.c
index 8b0562c75d209c36c90897de2f8cd1f406ae463b..2cf7106255f279bca9da8fc2a29af6e79424ecd9 100644
(file)
--- a/
src/egl/drivers/dri2/platform_drm.c
+++ b/
src/egl/drivers/dri2/platform_drm.c
@@
-56,7
+56,7
@@
lock_front_buffer(struct gbm_surface *_surf)
bo = dri2_surf->current->bo;
if (device->dri2) {
bo = dri2_surf->current->bo;
if (device->dri2) {
- dri2_surf->current->locked =
1
;
+ dri2_surf->current->locked =
true
;
dri2_surf->current = NULL;
}
dri2_surf->current = NULL;
}
@@
-72,7
+72,7
@@
release_buffer(struct gbm_surface *_surf, struct gbm_bo *bo)
for (i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++) {
if (dri2_surf->color_buffers[i].bo == bo) {
for (i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++) {
if (dri2_surf->color_buffers[i].bo == bo) {
- dri2_surf->color_buffers[i].locked =
0
;
+ dri2_surf->color_buffers[i].locked =
false
;
}
}
}
}
}
}
@@
-696,7
+696,7
@@
dri2_initialize_drm(_EGLDriver *drv, _EGLDisplay *disp)
err = "DRI2: failed to create gbm device";
goto cleanup;
}
err = "DRI2: failed to create gbm device";
goto cleanup;
}
- dri2_dpy->own_device =
1
;
+ dri2_dpy->own_device =
true
;
} else {
dri2_dpy->fd = fcntl(gbm_device_get_fd(gbm), F_DUPFD_CLOEXEC, 3);
if (dri2_dpy->fd < 0) {
} else {
dri2_dpy->fd = fcntl(gbm_device_get_fd(gbm), F_DUPFD_CLOEXEC, 3);
if (dri2_dpy->fd < 0) {