r600: Make enum alu_op_flags unsigned
authorRob Herring <robh@kernel.org>
Wed, 24 Feb 2016 18:56:31 +0000 (12:56 -0600)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 29 Feb 2016 10:51:45 +0000 (10:51 +0000)
commit51b22bd46888c972eb8c80ee5524d94f6f0b8996
treed8347f7436fdfde0ebfbf5b7d9f7ceaaff5fbf1c
parent92dd38df5a25ca57a23500576169b190be3b26cb
r600: Make enum alu_op_flags unsigned

In builds with clang, there are several errors related to the enum
alu_op_flags like this:

src/gallium/drivers/r600/sb/sb_expr.cpp:887:8:
error: case value evaluates to -1610612736, which cannot be narrowed to
type 'unsigned int' [-Wc++11-narrowing]

These are due to the MSB being set in the enum. Fix these errors by
making the enum values unsigned as needed. The flags field that stores
this enum also needs to be unsigned.

Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Cc: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/r600/r600_isa.h