svga: Add render_condition boolean flag in struct svga_context
authorNeha Bhende <bhenden@vmware.com>
Wed, 28 Sep 2016 17:48:45 +0000 (10:48 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Nov 2016 20:29:22 +0000 (14:29 -0600)
commit03e1b7cacdf3b595262e50679a83544549c61b3d
treea55864eeec4f134740cdcdbefcd8326577ad41c1
parent2cff6f4512a174a23ee6c1d2583c22e24ee1a240
svga: Add render_condition boolean flag in struct svga_context

set render_condition flag when driver performs conditional rendering.
Blit using DXPredCopyRegion command gets affected by conditional rendering so
We should check this flag while performing blit operation

Tested with piglit tests.

v2: As per Charmaine's comment, setting render_condition flag if svga_query is valid.
Tested with pigit tests.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_blit.c
src/gallium/drivers/svga/svga_pipe_query.c