radeonsi: Add parentheses around '|' operands.
authorVinson Lee <vlee@freedesktop.org>
Tue, 10 Sep 2013 03:14:28 +0000 (20:14 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 10 Sep 2013 17:44:09 +0000 (10:44 -0700)
commit49f2ba2cb07202b93955d15bc2bce2d4ae77bbf9
tree56befeba21afbe88f688ca2878051ee6817bde5e
parentd93e23ba25cbfd8f77a4b3a113ca7ed3dece1e68
radeonsi: Add parentheses around '|' operands.

Fixes GCC parentheses warning.

r600_texture.c: In function 'si_texture_create':
r600_texture.c:518:20: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
      !(templ->bind & PIPE_BIND_CURSOR | PIPE_BIND_LINEAR)) {
                    ^

Fixes "Wrong operator used" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/r600_texture.c