radeonsi: fix query buffer allocation
authorTimothy Arceri <tarceri@itsqueeze.com>
Sun, 24 Feb 2019 23:55:57 +0000 (10:55 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 25 Feb 2019 22:55:41 +0000 (09:55 +1100)
commit603206d0a61628deba3f0754324d4b7f382effe5
tree79934723dae4c509cc2c65385108d2ce86c3b300
parent7c1bf075f30527ec9724fe03f0a32d9110bebd0b
radeonsi: fix query buffer allocation

Fix the logic for buffer full check on alloc.

This patch just takes the fix Nicolai attached to the bug report
and updates it to work on master.

Fixes: e0f0d3675d4 ("radeonsi: factor si_query_buffer logic out of si_query_hw")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109561
src/gallium/drivers/radeonsi/si_query.c
src/gallium/drivers/radeonsi/si_query.h