radv: predicate cmask eliminate when using DCC.
When using DCC some clear values don't require a cmask eliminate step. This patch adds support for black and black with alpha 1, there are other values, but I don't have access to a comprehensive list. This works by setting the cmask eliminate predicate when doing the fast clear, and later when doing the cmask elimination making sure the draws are predicated. This increases the fps on Sascha Willems deferred. Tonga: 580fps->670fps on a Tonga PRO card. Polaris 730->850fps Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -1129,8 +1129,9 @@ si_emit_cache_flush(struct radv_cmd_buffer *cmd_buffer)
|
||||
cmd_buffer->state.flush_bits = 0;
|
||||
}
|
||||
|
||||
/* sets the CP predication state using a boolean stored at va */
|
||||
void
|
||||
si_emit_set_pred(struct radv_cmd_buffer *cmd_buffer, uint64_t va)
|
||||
si_emit_set_predication_state(struct radv_cmd_buffer *cmd_buffer, uint64_t va)
|
||||
{
|
||||
uint32_t val = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user