freedreno: fix bad bitshift warnings
authorRob Clark <robclark@freedesktop.org>
Thu, 2 Jun 2016 20:23:36 +0000 (16:23 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 2 Jun 2016 20:29:32 +0000 (16:29 -0400)
commit94d8fbd21768987d1bde0e31bdcabf7004b8f9b8
tree96ea0584bc9ed320616b723ada698e0f6d8e2560
parent676c77a923d596cfeb393a780a3d6cb82898e71f
freedreno: fix bad bitshift warnings

Coverity doesn't realize idx will never be negative.  Throw in some
assert()s to help it out.

(Hopefully assert() isn't getting compiled out for coverity build.. but
there seems to be just one way to find out.  We might have to change
these to assume())

Fixes CID 13624421362443

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_query_hw.c