diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2017-03-02 23:03:03 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2017-03-14 07:36:20 -0700 |
commit | 678fd00f2f5b213d0317ba51a8163c4c5bd1f3dc (patch) | |
tree | f15ffa33e064de9bec0e26ea76411b19f0da5900 | |
parent | 273b720310863c2084c55f1371b2d27c2d96dbda (diff) |
anv/blorp: Only set a clear color for resolves if fast-cleared
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 2bab0d076f1..9b9995c95c7 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -1508,7 +1508,8 @@ ccs_resolve_attachment(struct anv_cmd_buffer *cmd_buffer, struct blorp_surf surf; get_blorp_surf_for_anv_image(image, VK_IMAGE_ASPECT_COLOR_BIT, att_state->aux_usage, &surf); - surf.clear_color = vk_to_isl_color(att_state->clear_value.color); + if (att_state->fast_clear) + surf.clear_color = vk_to_isl_color(att_state->clear_value.color); /* From the Sky Lake PRM Vol. 7, "Render Target Resolve": * |