iris: Add iris_resolve_conditional_render().
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 7 Mar 2019 00:59:44 +0000 (16:59 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Wed, 20 Mar 2019 23:46:25 +0000 (16:46 -0700)
commitce830a364e0aec8c9769729162bfe7501feb028b
treec7b430aa32ed52d988c676ed3a2288f774e696d2
parent131b42f0aa574cc654c5970ba48c4d1896f6d502
iris: Add iris_resolve_conditional_render().

This function can be used to stall on the CPU and resolve the predicate
for the conditional render. It will convert ice->state.predicate from
IRIS_PREDICATE_STATE_USE_BIT to either IRIS_PREDICATE_STATE_RENDER or
IRIS_PREDICATE_STATE_DONT_RENDER, depending on the result of the query.

v2:
 - return void (Ken)
 - update the stored condition (Ken)
 - simplify the code leading to resolve the predicate (Ken)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_query.c