summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-03-02 23:03:03 -0800
committerEmil Velikov <[email protected]>2017-03-16 01:34:02 +0000
commit3a4b70b38408ca3e0674a7046fac1c5b0bca84b7 (patch)
tree6460858a865d4e215ad6078f5f4dd14b8dcc5689 /src/intel
parent3428b4898dfaba7c5ef2bfacd27c4e9d2ccea298 (diff)
anv/blorp: Only set a clear color for resolves if fast-cleared
Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Connor Abbott <[email protected]> Cc: "17.0" <[email protected]> (cherry picked from commit 678fd00f2f5b213d0317ba51a8163c4c5bd1f3dc)
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_blorp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
index 7a38a35e1c8..b1d2147c796 100644
--- a/src/intel/vulkan/anv_blorp.c
+++ b/src/intel/vulkan/anv_blorp.c
@@ -1502,7 +1502,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":
*