iris: Fix Broadwell WaDividePSInvocationCountBy4
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Jan 2019 08:28:07 +0000 (00:28 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:11 +0000 (10:26 -0800)
commit5aef30b886460d50b0ffec4f6d210e04c9ecf421
tree669f9e4346990dcafa96af51c0e4baba8e47fe28
parent7f318bf2ac08e26b5c6f3eb00135048527149e73
iris: Fix Broadwell WaDividePSInvocationCountBy4

We were dividing by 4 in calculate_result_on_gpu(), and also in
iris_get_query_result().  We should stop doing the latter, and instead
divide by 4 in calculate_result_on_cpu() as well.

Otherwise, if snapshots were available, and you hit the
calculate_result_on_cpu() path, but requested it be written to a QBO,
you'd fail to get a divide.
src/gallium/drivers/iris/iris_query.c