anv/blorp: Don't fast depth clear samplable HiZ buffers on BDW

Avoid the resolves that would be required if fast depth clears were
allowed for such buffers.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Nanley Chery 2016-12-15 09:57:48 -08:00
parent 3ac01ad2ac
commit 5e0902cd2a
1 changed files with 9 additions and 0 deletions

View File

@ -1271,6 +1271,15 @@ anv_cmd_buffer_clear_subpass(struct anv_cmd_buffer *cmd_buffer)
* ANV_HZ_FC_VAL.
*/
clear_with_hiz = false;
} else if (gen == 8 &&
anv_can_sample_with_hiz(cmd_buffer->device->info.gen,
iview->image->samples)) {
/* Only gen9+ supports returning ANV_HZ_FC_VAL when sampling a
* fast-cleared portion of a HiZ buffer. Testing has revealed
* that Gen8 only supports returning 0.0f. Gens prior to gen8 do
* not support this feature at all.
*/
clear_with_hiz = false;
}
}