diff options
author | Eric Engestrom <[email protected]> | 2017-06-19 00:16:51 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-06-21 21:42:14 +0100 |
commit | 4a1238a452a7e49a6717506ffdbaeab18d90a6be (patch) | |
tree | 5af8a8989085fbfdf2d01a42135ac14a278f32ca /src/gallium/targets | |
parent | 60f984262c4d4c3c3828eb2eec3dc07c63922ece (diff) |
egl: turn one more boolean `int` into a `bool`
Same as the previous commit, but this one was split out because it's
a bit more complicated: this field is given as a pointer to a function,
so the function had to be changed as well, and the function was use in
a bunch of places, which needed updating as well.
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/d3dadapter9/drm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index 6163734185a..0434d8e4c17 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b/src/gallium/targets/d3dadapter9/drm.c @@ -204,7 +204,7 @@ drm_create_adapter( int fd, { struct d3dadapter9drm_context *ctx = CALLOC_STRUCT(d3dadapter9drm_context); HRESULT hr; - int different_device; + bool different_device; const struct drm_conf_ret *throttle_ret = NULL; const struct drm_conf_ret *dmabuf_ret = NULL; driOptionCache defaultInitOptions; @@ -220,7 +220,7 @@ drm_create_adapter( int fd, * takes ownership of it. */ fd = loader_get_user_preferred_fd(fd, &different_device); ctx->fd = fd; - ctx->base.linear_framebuffer = !!different_device; + ctx->base.linear_framebuffer = different_device; if (!pipe_loader_drm_probe_fd(&ctx->dev, fd)) { ERR("Failed to probe drm fd %d.\n", fd); @@ -271,7 +271,7 @@ drm_create_adapter( int fd, if (driCheckOption(&userInitOptions, "thread_submit", DRI_BOOL)) ctx->base.thread_submit = driQueryOptionb(&userInitOptions, "thread_submit"); else - ctx->base.thread_submit = !!different_device; + ctx->base.thread_submit = different_device; if (ctx->base.thread_submit && (throttling_value_user == -2 || throttling_value_user == 0)) { ctx->base.throttling_value = 0; |