diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2021-01-28 17:43:58 -0600 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-02-01 18:54:25 +0000 |
commit | 23ba48a0c73032bf01f8364b3a759f6bf50c1b31 (patch) | |
tree | a62c5ca4c4279886e7ecc06457a2f29a43a97c9f /src/intel | |
parent | 41318a58196d385ce97041e16a055baf892e38cb (diff) |
vulkan: Make the debug_report implementation internal
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8676>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 4 | ||||
-rw-r--r-- | src/intel/vulkan/anv_util.c | 5 | ||||
-rw-r--r-- | src/intel/vulkan/genX_pipeline.c | 2 |
4 files changed, 6 insertions, 7 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 3673dc07ec8..938fe2f5feb 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -91,7 +91,7 @@ compiler_debug_log(void *data, const char *fmt, ...) (void) vsnprintf(str, MAX_DEBUG_MESSAGE_LENGTH, fmt, args); va_end(args); - vk_debug_report(&instance->vk.debug_report, + vk_debug_report(&instance->vk, VK_DEBUG_REPORT_DEBUG_BIT_EXT, NULL, 0, 0, "anv", str); } diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index fb10a178303..78c8bf033f6 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -113,7 +113,7 @@ static void anv_spirv_nir_debug(void *private_data, snprintf(buffer, sizeof(buffer), "SPIR-V offset %lu: %s", (unsigned long) spirv_offset, message); - vk_debug_report(&instance->vk.debug_report, vk_flags[level], + vk_debug_report(&instance->vk, vk_flags[level], &debug_data->module->base, 0, 0, "anv", buffer); } @@ -1402,7 +1402,7 @@ anv_pipeline_compile_graphics(struct anv_graphics_pipeline *pipeline, */ assert(found < __builtin_popcount(pipeline->active_stages)); - vk_debug_report(&pipeline->base.device->physical->instance->vk.debug_report, + vk_debug_report(&pipeline->base.device->physical->instance->vk, VK_DEBUG_REPORT_WARNING_BIT_EXT | VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT, &cache->base, 0, 0, "anv", diff --git a/src/intel/vulkan/anv_util.c b/src/intel/vulkan/anv_util.c index 210b9e1520f..a1b5715396d 100644 --- a/src/intel/vulkan/anv_util.c +++ b/src/intel/vulkan/anv_util.c @@ -64,7 +64,7 @@ __anv_perf_warn(struct anv_device *device, snprintf(report, sizeof(report), "%s: %s", file, buffer); - vk_debug_report(&device->physical->instance->vk.debug_report, + vk_debug_report(&device->physical->instance->vk, VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT, object, line, 0, "anv", report); @@ -91,8 +91,7 @@ __vk_errorv(struct anv_instance *instance, } if (instance) { - vk_debug_report(&instance->vk.debug_report, - VK_DEBUG_REPORT_ERROR_BIT_EXT, + vk_debug_report(&instance->vk, VK_DEBUG_REPORT_ERROR_BIT_EXT, object, line, 0, "anv", report); } diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 1c6eaaf9b09..b99f59966b8 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1231,7 +1231,7 @@ emit_cb_state(struct anv_graphics_pipeline *pipeline, is_dual_src_blend_factor(a->dstColorBlendFactor) || is_dual_src_blend_factor(a->srcAlphaBlendFactor) || is_dual_src_blend_factor(a->dstAlphaBlendFactor))) { - vk_debug_report(&device->physical->instance->vk.debug_report, + vk_debug_report(&device->physical->instance->vk, VK_DEBUG_REPORT_WARNING_BIT_EXT, &device->vk.base, 0, 0, "anv", "Enabled dual-src blend factors without writing both targets " |