diff options
author | Tapani Pälli <[email protected]> | 2017-08-25 09:50:11 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2017-09-12 09:41:10 +0300 |
commit | 73638be11f4fbb016f6c6d2934134c0d2455d798 (patch) | |
tree | d94f5d1f3a06706c10a4537224c5c0cb8530435a /src/intel/vulkan/anv_image.c | |
parent | 086cfa5652ec202f87c14d11e0f6c959d75987d8 (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/anv_image.c')
-rw-r--r-- | src/intel/vulkan/anv_image.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 4f0a818b086..492b341303a 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -269,13 +269,14 @@ make_surface(const struct anv_device *dev, if (!(image->usage & VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT)) { /* It will never be used as an attachment, HiZ is pointless. */ } else if (dev->info.gen == 7) { - anv_perf_warn("Implement gen7 HiZ"); + anv_perf_warn(dev->instance, image, "Implement gen7 HiZ"); } else if (vk_info->mipLevels > 1) { - anv_perf_warn("Enable multi-LOD HiZ"); + anv_perf_warn(dev->instance, image, "Enable multi-LOD HiZ"); } else if (vk_info->arrayLayers > 1) { - anv_perf_warn("Implement multi-arrayLayer HiZ clears and resolves"); + anv_perf_warn(dev->instance, image, + "Implement multi-arrayLayer HiZ clears and resolves"); } else if (dev->info.gen == 8 && vk_info->samples > 1) { - anv_perf_warn("Enable gen8 multisampled HiZ"); + anv_perf_warn(dev->instance, image, "Enable gen8 multisampled HiZ"); } else if (!unlikely(INTEL_DEBUG & DEBUG_NO_HIZ)) { assert(image->aux_surface.isl.size == 0); ok = isl_surf_get_hiz_surf(&dev->isl_dev, &image->depth_surface.isl, @@ -299,7 +300,8 @@ make_surface(const struct anv_device *dev, * image, we currently don't have things hooked up to get it * working. */ - anv_perf_warn("This image format doesn't support rendering. " + anv_perf_warn(dev->instance, image, + "This image format doesn't support rendering. " "Not allocating an CCS buffer."); image->aux_surface.isl.size = 0; return VK_SUCCESS; |