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>
SVGA3dQueryId query_id;
boolean cond;
} pred;
+
+ boolean render_condition;
};
/* A flag for each state_tracker state object:
blit_info->mask != (PIPE_MASK_ZS))
return false;
- if (blit_info->alpha_blend || blit_info->render_condition_enable ||
+ if (blit_info->alpha_blend ||
+ (svga->render_condition && blit_info->render_condition_enable) ||
blit_info->scissor_enable)
return false;
svga->pred.query_id = queryId;
svga->pred.cond = condition;
}
+
+ svga->render_condition = (sq != NULL);
}