diff options
author | Nanley Chery <[email protected]> | 2016-12-15 09:57:48 -0800 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2017-01-12 20:52:21 -0800 |
commit | 5e0902cd2abf21df955be359e0903fc5b66905f5 (patch) | |
tree | 913a2fb4f80e4901fe2327e273953d40e0c880cb | |
parent | 3ac01ad2ac2aedee7e2515365d13c71a024878fb (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index b161400db57..2edd0712c95 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -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; } } |