llvmpipe: fixes for conditional rendering
authorRoland Scheidegger <sroland@vmware.com>
Mon, 17 Jun 2013 22:42:31 +0000 (00:42 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 18 Jun 2013 16:01:24 +0000 (18:01 +0200)
commit8975dc798d6b7790de7a788c8263b636cfd02184
tree5dd6993f4d00ac6d6d7fb846e31bd317ca3e390c
parent793e8e3d7ed816cc9a066245dde798afdcf8b581
llvmpipe: fixes for conditional rendering

honor render_condition for clear_render_target and clear_depth_stencil.
Also add minimal support for occlusion predicate, though it can't be active
at the same time as an occlusion query yet.
While here also switchify some large if-else (actually just mutually
exclusive if-if-if...) constructs.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_bld_depth.c
src/gallium/drivers/llvmpipe/lp_query.c
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_surface.c