diff options
author | Lionel Landwerlin <[email protected]> | 2017-07-13 16:04:28 +0100 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-07-13 22:50:29 +0100 |
commit | a25a53345859c3c560b923de3359c245db81c5e6 (patch) | |
tree | 69421c93db3251866e882c3c96bdaf073233e122 /src/intel/compiler | |
parent | 19869d6091e170248378d38352339c65cff19d63 (diff) |
intel/compiler: remove check unsigned is >= 0
By definition unsigned are always >= 0.
CID: 742212
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r-- | src/intel/compiler/brw_eu_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index 231d6fdaec0..0b0d67a5c56 100644 --- a/src/intel/compiler/brw_eu_emit.c +++ b/src/intel/compiler/brw_eu_emit.c @@ -306,7 +306,7 @@ validate_reg(const struct gen_device_info *devinfo, reg.nr == BRW_ARF_ACCUMULATOR) assert(reg.swizzle == BRW_SWIZZLE_XYZW); - assert(reg.hstride >= 0 && reg.hstride < ARRAY_SIZE(hstride_for_reg)); + assert(reg.hstride < ARRAY_SIZE(hstride_for_reg)); hstride = hstride_for_reg[reg.hstride]; if (reg.vstride == 0xf) { |