diff options
author | [email protected] <[email protected]> | 2016-06-30 19:16:08 +0200 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-07-14 09:55:02 -0400 |
commit | 3db7f3458ffbec51329d66f3bed8a3d8eaf35a3d (patch) | |
tree | 428c4898446e5f49e891028c77808f889ac0f576 | |
parent | 948822018fa36ef286197e8223a721f16a7146ff (diff) |
freedreno/a4xx: Fix sign compare warnings
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_screen.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_screen.c b/src/gallium/drivers/freedreno/a4xx/fd4_screen.c index c193f361e4c..57fecf14724 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_screen.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_screen.c @@ -52,14 +52,14 @@ fd4_screen_is_format_supported(struct pipe_screen *pscreen, } if ((usage & PIPE_BIND_VERTEX_BUFFER) && - (fd4_pipe2vtx(format) != ~0)) { + (fd4_pipe2vtx(format) != ~0u)) { retval |= PIPE_BIND_VERTEX_BUFFER; } if ((usage & PIPE_BIND_SAMPLER_VIEW) && (target == PIPE_BUFFER || util_format_get_blocksize(format) != 12) && - (fd4_pipe2tex(format) != ~0)) { + (fd4_pipe2tex(format) != ~0u)) { retval |= PIPE_BIND_SAMPLER_VIEW; } @@ -67,8 +67,8 @@ fd4_screen_is_format_supported(struct pipe_screen *pscreen, PIPE_BIND_DISPLAY_TARGET | PIPE_BIND_SCANOUT | PIPE_BIND_SHARED)) && - (fd4_pipe2color(format) != ~0) && - (fd4_pipe2tex(format) != ~0)) { + (fd4_pipe2color(format) != ~0u) && + (fd4_pipe2tex(format) != ~0u)) { retval |= usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET | PIPE_BIND_SCANOUT | @@ -76,13 +76,13 @@ fd4_screen_is_format_supported(struct pipe_screen *pscreen, } if ((usage & PIPE_BIND_DEPTH_STENCIL) && - (fd4_pipe2depth(format) != ~0) && - (fd4_pipe2tex(format) != ~0)) { + (fd4_pipe2depth(format) != ~0u) && + (fd4_pipe2tex(format) != ~0u)) { retval |= PIPE_BIND_DEPTH_STENCIL; } if ((usage & PIPE_BIND_INDEX_BUFFER) && - (fd_pipe2index(format) != ~0)) { + (fd_pipe2index(format) != ~0u)) { retval |= PIPE_BIND_INDEX_BUFFER; } |