swr: fix clang warnings

v2: use alternate logic version in swr_check_render_cond

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
Tim Rowley 2016-04-21 11:50:40 -05:00
parent e85bef8b12
commit 5815c8b3d3
2 changed files with 5 additions and 5 deletions

View 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;
}

View file

@ -23,10 +23,10 @@
#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);