freedreno/a3xx: Fix sign compare warnings
authorfrancians@gmail.com <francians@gmail.com>
Thu, 30 Jun 2016 17:16:07 +0000 (19:16 +0200)
committerRob Clark <robdclark@gmail.com>
Thu, 14 Jul 2016 13:55:02 +0000 (09:55 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a3xx/fd3_screen.c

index 4aea2fe0f37e7fccf54f9dc44440d2683263aa43..013b0cacc00cb60d7e13756852ec7e2b5b5bd712 100644 (file)
@@ -52,12 +52,12 @@ fd3_screen_is_format_supported(struct pipe_screen *pscreen,
        }
 
        if ((usage & PIPE_BIND_VERTEX_BUFFER) &&
-                       (fd3_pipe2vtx(format) != ~0)) {
+                       (fd3_pipe2vtx(format) != ~0u)) {
                retval |= PIPE_BIND_VERTEX_BUFFER;
        }
 
        if ((usage & PIPE_BIND_SAMPLER_VIEW) &&
-                       (fd3_pipe2tex(format) != ~0)) {
+                       (fd3_pipe2tex(format) != ~0u)) {
                retval |= PIPE_BIND_SAMPLER_VIEW;
        }
 
@@ -66,8 +66,8 @@ fd3_screen_is_format_supported(struct pipe_screen *pscreen,
                                PIPE_BIND_SCANOUT |
                                PIPE_BIND_SHARED |
                                PIPE_BIND_BLENDABLE)) &&
-                       (fd3_pipe2color(format) != ~0) &&
-                       (fd3_pipe2tex(format) != ~0)) {
+                       (fd3_pipe2color(format) != ~0u) &&
+                       (fd3_pipe2tex(format) != ~0u)) {
                retval |= usage & (PIPE_BIND_RENDER_TARGET |
                                PIPE_BIND_DISPLAY_TARGET |
                                PIPE_BIND_SCANOUT |
@@ -77,13 +77,13 @@ fd3_screen_is_format_supported(struct pipe_screen *pscreen,
        }
 
        if ((usage & PIPE_BIND_DEPTH_STENCIL) &&
-                       (fd_pipe2depth(format) != ~0) &&
-                       (fd3_pipe2tex(format) != ~0)) {
+                       (fd_pipe2depth(format) != ~0u) &&
+                       (fd3_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;
        }