summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_cmd_buffer.c
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2017-08-25 09:50:11 +0300
committerTapani Pälli <[email protected]>2017-09-12 09:41:10 +0300
commit73638be11f4fbb016f6c6d2934134c0d2455d798 (patch)
treed94f5d1f3a06706c10a4537224c5c0cb8530435a /src/intel/vulkan/genX_cmd_buffer.c
parent086cfa5652ec202f87c14d11e0f6c959d75987d8 (diff)
anv: wire up anv_perf_warn macro to do debug reporting
Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_cmd_buffer.c')
-rw-r--r--src/intel/vulkan/genX_cmd_buffer.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index db40b45c29a..67fc3f33df6 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -280,7 +280,8 @@ color_attachment_compute_aux_usage(struct anv_device * device,
*/
if (cmd_state->pass->attachments[att].first_subpass_layout ==
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL) {
- anv_perf_warn("Not temporarily enabling CCS_E.");
+ anv_perf_warn(device->instance, iview->image,
+ "Not temporarily enabling CCS_E.");
}
} else {
att_state->input_aux_usage = ISL_AUX_USAGE_NONE;
@@ -325,7 +326,8 @@ color_attachment_compute_aux_usage(struct anv_device * device,
anv_image_aux_layers(iview->image, iview->isl.base_level)) {
att_state->fast_clear = false;
if (GEN_GEN == 7) {
- anv_perf_warn("Not fast-clearing the first layer in "
+ anv_perf_warn(device->instance, iview->image,
+ "Not fast-clearing the first layer in "
"a multi-layer fast clear.");
}
}
@@ -692,7 +694,8 @@ transition_color_buffer(struct anv_cmd_buffer *cmd_buffer,
*/
if ((GEN_GEN >= 9 && image->samples == 1) || image->samples > 1) {
if (image->samples == 4 || image->samples == 16) {
- anv_perf_warn("Doing a potentially unnecessary fast-clear to "
+ anv_perf_warn(cmd_buffer->device->instance, image,
+ "Doing a potentially unnecessary fast-clear to "
"define an MCS buffer.");
}
@@ -713,7 +716,8 @@ transition_color_buffer(struct anv_cmd_buffer *cmd_buffer,
/* The CCS_D buffer may not be enabled in the final layout. Continue
* executing this function to perform a resolve.
*/
- anv_perf_warn("Performing an additional resolve for CCS_D layout "
+ anv_perf_warn(cmd_buffer->device->instance, image,
+ "Performing an additional resolve for CCS_D layout "
"transition. Consider always leaving it on or "
"performing an ambiguation pass.");
} else {