freedreno/query: align counter snapshot locations
authorRob Clark <robclark@freedesktop.org>
Sat, 13 Feb 2016 23:29:28 +0000 (18:29 -0500)
committerRob Clark <robclark@freedesktop.org>
Wed, 17 Feb 2016 15:41:55 +0000 (10:41 -0500)
commit9d23d7b7cb804fa554c483830685088f97c8877c
tree8be7735367b537ae4b1172fdfc44e96bb0cb2a57
parent8529e210ecb2aa362f51399f8632c6d4429401cf
freedreno/query: align counter snapshot locations

Some hw queries need their sample memory locations to have certain
alignment.  At the moment that isn't an issue, since the only hw query
is occlusion, so all samples have the same size.  But when others are
added with different sample sizes, this starts to be a problem.

All current and immediately upcoming hw queries simply need their
sample address aligned to their size, so let's use that for now.

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