diff options
author | Jason Ekstrand <[email protected]> | 2018-02-10 22:10:03 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-02-21 12:47:17 -0800 |
commit | 7dd0f73fe15e04e02eb24272ff0cacf932ba8392 (patch) | |
tree | 556785678d673311d060a6def2f0c575f2d84fcf /src/intel/vulkan | |
parent | b494ed168ccaf42fef32e92b64e764eba3f7a1a5 (diff) |
anv: Only copy clear dwords if we're rendering to the first slice
Reviewed-by: Rafael Antognolli <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/genX_cmd_buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 939a795c2b1..8015a42c154 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -3462,7 +3462,10 @@ cmd_buffer_begin_subpass(struct anv_cmd_buffer *cmd_buffer, assert(att_state->pending_clear_aspects == 0); } - if (att_state->pending_load_aspects & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV) { + if ((att_state->pending_load_aspects & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV) && + image->planes[0].aux_surface.isl.size > 0 && + iview->planes[0].isl.base_level == 0 && + iview->planes[0].isl.base_array_layer == 0) { if (att_state->aux_usage != ISL_AUX_USAGE_NONE) { genX(copy_fast_clear_dwords)(cmd_buffer, att_state->color.state, image, VK_IMAGE_ASPECT_COLOR_BIT, |