summaryrefslogtreecommitdiffstats
path: root/src/gbm
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-09-01 17:39:55 +0100
committerEric Engestrom <[email protected]>2019-10-13 18:10:47 +0100
commit0d74f4bb169ab7b81993d41861f9a2e7c1f4e01f (patch)
tree50149b451bdda9a31627cf705b8c310e3a583bdd /src/gbm
parente9d808113510ffd682fbade3698f875b6234747b (diff)
gbm: replace 1/0 bool with true/false
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gbm')
-rw-r--r--src/gbm/backends/dri/gbm_dri.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index 19d2d2d01f5..84606e925da 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -257,25 +257,25 @@ struct dri_extension_match {
const char *name;
int version;
int offset;
- int optional;
+ bool optional;
};
static struct dri_extension_match dri_core_extensions[] = {
- { __DRI2_FLUSH, 1, offsetof(struct gbm_dri_device, flush) },
- { __DRI_IMAGE, 1, offsetof(struct gbm_dri_device, image) },
- { __DRI2_FENCE, 1, offsetof(struct gbm_dri_device, fence), 1 },
+ { __DRI2_FLUSH, 1, offsetof(struct gbm_dri_device, flush), false },
+ { __DRI_IMAGE, 1, offsetof(struct gbm_dri_device, image), false },
+ { __DRI2_FENCE, 1, offsetof(struct gbm_dri_device, fence), true },
{ NULL, 0, 0 }
};
static struct dri_extension_match gbm_dri_device_extensions[] = {
- { __DRI_CORE, 1, offsetof(struct gbm_dri_device, core) },
- { __DRI_DRI2, 1, offsetof(struct gbm_dri_device, dri2) },
+ { __DRI_CORE, 1, offsetof(struct gbm_dri_device, core), false },
+ { __DRI_DRI2, 1, offsetof(struct gbm_dri_device, dri2), false },
{ NULL, 0, 0 }
};
static struct dri_extension_match gbm_swrast_device_extensions[] = {
- { __DRI_CORE, 1, offsetof(struct gbm_dri_device, core), },
- { __DRI_SWRAST, 1, offsetof(struct gbm_dri_device, swrast) },
+ { __DRI_CORE, 1, offsetof(struct gbm_dri_device, core), false },
+ { __DRI_SWRAST, 1, offsetof(struct gbm_dri_device, swrast), false },
{ NULL, 0, 0 }
};