swr: fix clang warnings
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 21 Apr 2016 16:50:40 +0000 (11:50 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 22 Apr 2016 23:03:41 +0000 (18:03 -0500)
v2: use alternate logic version in swr_check_render_cond

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_query.cpp
src/gallium/drivers/swr/swr_shader.h

index ff4d9b350185751b5d52a70c6fbc79f5d6863593..f038a6e63901ef5d4198b7d9d147f1b93b3371b3 100644 (file)
@@ -315,7 +315,7 @@ swr_check_render_cond(struct pipe_context *pipe)
    b = pipe->get_query_result(
       pipe, ctx->render_cond_query, wait, (union pipe_query_result *)&result);
    if (b)
-      return (!result == ctx->render_cond_cond);
+      return ((!result) == ctx->render_cond_cond);
    else
       return TRUE;
 }
index 3f79570bbd9512622f664447d198cf8edf8e18cd..11d50c3848fb70bdd362c174fc3bfb4713dda859 100644 (file)
 
 #pragma once
 
-class swr_vertex_shader;
-class swr_fragment_shader;
-class swr_jit_fs_key;
-class swr_jit_vs_key;
+struct swr_vertex_shader;
+struct swr_fragment_shader;
+struct swr_jit_fs_key;
+struct swr_jit_vs_key;
 
 PFN_VERTEX_FUNC
 swr_compile_vs(struct swr_context *ctx, swr_jit_vs_key &key);