diff options
author | Ilia Mirkin <[email protected]> | 2019-07-04 11:41:41 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2019-07-22 22:13:51 -0400 |
commit | 0e30c6b8a7e84211bb417362ec73f24ef134ae34 (patch) | |
tree | 7567deb41938d64e8fadcac7514deece8f7c1613 /src/gallium/drivers/swr/swr_fence.h | |
parent | 365f24705f9703962b6749f4fafe7cd92d9c60b1 (diff) |
gallium: switch boolean -> bool at the interface definitions
This is a relatively minimal change to adjust all the gallium interfaces
to use bool instead of boolean. I tried to avoid making unrelated
changes inside of drivers to flip boolean -> bool to reduce the risk of
regressions (the compiler will much more easily allow "dirty" values
inside a char-based boolean than a C99 _Bool).
This has been build-tested on amd64 with:
Gallium drivers: nouveau r300 r600 radeonsi freedreno swrast etnaviv v3d
vc4 i915 svga virgl swr panfrost iris lima kmsro
Gallium st: mesa xa xvmc xvmc vdpau va
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Acked-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_fence.h')
-rw-r--r-- | src/gallium/drivers/swr/swr_fence.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/swr/swr_fence.h b/src/gallium/drivers/swr/swr_fence.h index 4766b5b8911..2f7cd1cf9a6 100644 --- a/src/gallium/drivers/swr/swr_fence.h +++ b/src/gallium/drivers/swr/swr_fence.h @@ -54,14 +54,14 @@ swr_fence(struct pipe_fence_handle *fence) } -static INLINE boolean +static INLINE bool swr_is_fence_done(struct pipe_fence_handle *fence_handle) { struct swr_fence *fence = swr_fence(fence_handle); return (fence->read == fence->write); } -static INLINE boolean +static INLINE bool swr_is_fence_pending(struct pipe_fence_handle *fence_handle) { return swr_fence(fence_handle)->pending; @@ -76,10 +76,10 @@ void swr_fence_reference(struct pipe_screen *screen, struct pipe_fence_handle **ptr, struct pipe_fence_handle *f); -boolean swr_fence_finish(struct pipe_screen *screen, - struct pipe_context *ctx, - struct pipe_fence_handle *fence_handle, - uint64_t timeout); +bool swr_fence_finish(struct pipe_screen *screen, + struct pipe_context *ctx, + struct pipe_fence_handle *fence_handle, + uint64_t timeout); void swr_fence_submit(struct swr_context *ctx, struct pipe_fence_handle *fence); |