aboutsummaryrefslogtreecommitdiff
path: root/loader/debug_report.c
AgeCommit message (Collapse)Author
2017-03-01vulkan: update to header 1.0.42Mark Young
Updated all necessary files to 1.0.42. This includes the various headers as well as the loader, and the parameter validation, object tracking, and threading layers. Additionally, bump all layer JSON files to 1.0.42. Also, in this change: - Enable loader extension automation so that the loader now generates all extension entry-points automatically during build to reduce likelihood of missing a critical piece on header update. - Enable layer dispatch table extension automation for the same reason. - Fixes from Mark Lobodzinski and Tony Barbour to resolve crash in loader when working with Intel's Windows driver due to GetInstanceProcAddr getting called on inappropriate command names. Change-Id: Ic18d3fac2e145c386c0192031deb5089c91a00d8
2017-01-26repo: Clang-format LVL source files using GoogleMark Lobodzinski
Switch clang-format standard from the LLVM style to the Google style for more consistency. Change-Id: I247c4abc275d7873a91522e1e234198adaa24033
2017-01-26repo: Clang-format c/cpp/h LVL files using LLVMMark Lobodzinski
Bring all source files in the repo up to date with consistent coding style/standard. Change-Id: Iceedbc17109974d3a0437fc4995441c9ad7e0c23
2017-01-24loader: Update the loader to 1.0.39Mark Young
Add new extensions for 1.0.39. Also, updated layers to include minimal set of functionality for 1.0.39 extensions. Extensions include: - VK_KHR_get_physical_device_properties2 - VK_KHR_shader_draw_parameters - VK_EXT_direct_mode_display - VK_EXT_display_surface_counter - VK_EXT_display_control Also, redo the LoaderAndLayerIf document. Change-Id: I10412086da7a798afe832a3892e18f606259b5af
2017-01-14loader: Fix static analysis warningsKarl Schultz
Handle possible null pointer dereferences. Misc other warnings, nothing too serious. Not addressing alloca concerns yet. Change-Id: I712a6b4996a4d900604867e373521ff4d1c53df5
2016-11-22loader: Fix debug report memory leaksMark Young
Found a couple of memory leaks in the debug report code in the loader while testing out allocators in cube. Change-Id: I56b401394ca43bd8eb9b4f85baa52dfa597a6f49
2016-11-21build: loader: Fix warnings for 32-bit linuxKarl Schultz
Change-Id: Ied7668aa7edeef01675dd4f358916d3e8bc07b27
2016-11-03loader: Rename icd and physical device varsMark Young
Clean up the names of the icd and physical device structs, lists, and variables used throughout the loader. Before, it was hard to tell where the item was to be used appropriately. Now, the names include a hint as to where they are expected to be allocated, freed, and used. Also, fixed a bug where we were using a trampoline item in a terminator function, which caused issues. Thanks to Piers @ Nvidia for discovering this. Change-Id: If98628a5496e9f645eff94b73e80ae7f8408f7b4
2016-10-14loader: Fix compilation warning in debug_report.cMark Young
Change-Id: I92e7f23217ef3897995514360c23849ef1cfadeb
2016-10-13loader: gh1035- vkDestroyDebugReportCallbackEXTMark Young
The changes I made to enable layer wrapping of the debug report callback broke the cleanup case so that under certain scenarios vkDestroyDebugReportCallbackEXT would not delete the callback resulting in messages after the destroy call. Change-Id: Ie5b26d8c973a08bb3161412468bb9dfdb70b315c
2016-09-07loader: Cleanup 1.0.25 extension workMark Young
Remove adding extensions from being exported from loader by default. Add in logic to only export entry points if extensions are enabled. Change-Id: I56e0c673925869e0d4482ee401ea19e43a05267f
2016-09-01loader: gh851 wrap debug report callbacksMark Young
Allow layers to wrap the debug report callbacks so they can enable more messaging than the application, but also filter the items returned. Change-Id: I3fe8feecfa1838869de8a7338ff610e5ebca2e61
2016-06-30loader: GH370 - re-enable allocator usageMark Young
This reverts commit 5876cc2b7563f909c8ac8cb49f51f7ef715877f8. This adds the previous fixes as well as additional fixes if Implicit layers aren't present. This is not a case that gets tested on Windows as most SDK installs have at least 1 Implicit layer (RenderDoc). This change passes an individual run on Jenkins Linux system. Change-Id: I466cc54b72946e2a9f6477bd4c3d4e4e72eb9579
2016-06-30Revert "loader: GH370 - re-enable allocator usage"Mark Young
This reverts commit 0860f9dbac51b241a9690d23b53db14f307b0181.
2016-06-29loader: GH370 - re-enable allocator usageMark Young
Re-enable reverted changes done in commit d6f491b88eaf11f6953c02638d079f6a76806658. But also include fixes for the Linux and Windows release runs. Change-Id: I7644bb305faab068b3229eb9c1d8a67b052af165
2016-06-30Revert "loader: GH370 - re-enable allocator usage"Chris Forbes
This reverts commit aa32dbbf147d86257a0c9e091258e0ea2be5a013. This is broken in both debug and release 64bit linux.
2016-06-29loader: GH370 - re-enable allocator usageMark Young
Re-enable the allocator usage in the loader. Also, fix several memory leaks. The leaks were especially noticeable during the Vulkan conformance object_management.alloc_callback_fail.instance and object_management.alloc_callback_fail.device tests because the tests were designed to intentionally fail the Alloc calls. This change now fully passes the Vulkan CTS object_management.alloc_callback_fail tests when the loader uses application-provided Allocators. Change-Id: I03f2a09bc33259442e02c917a34d78f8937808d8
2016-05-05loader: Fix issue when ICD DestroyDebugReportCallbackEXT not found.Mark Young
Change-Id: Ic1d0f67ec2f8ca438c4bd546e6beb4d565daf89a
2016-04-19misc: Update licenses to Apache 2.0Jon Ashburn
Change-Id: Id447f4c8c53d33f9192940bdd3ae727b7b738a97
2016-04-15loader: Run clang-formatJon Ashburn
Last several commits to loader weren't run through it. Change-Id: I512b2df75c7831ee6433e4c60c6664db85184584
2016-04-05Fix 4 MSVS warnings in loader and layers.Jamie Madill
warning C4267: conversion, possible loss of data warning C4389: signed/unsigned mismatch warning C4701: potentially uninitialized local variable used warning C4702: unreachable code Change-Id: Ibc2ce3825a986c3701f6e0e6244a0e30fbf7e87c
2016-04-01loader: vk{Create|Destroy}Instance can have multiple tmp callbacksIan Elliott
During code review of the Android version of the temporary debug_report callbacks code, it was decided to allow an array of VkDebugReportCallbackCreateInfoEXT structs to be passed to vkCreateInstance(). This code implements that, using some new utility functions in order to help keep the code clean.
2016-02-26loader: Better delineate trampoline and terminator functionsJon Ashburn
No functional changes! Trampoline functions have the Vulkan API function name and are in trampoline.c. Terminator functions have terminator_<Vulkan API name> (omitting the "vk"). Instance extension trampoline and terminator functions are in together in the same file for the extension.
2016-02-24loader: Fix MSVS warningsKarl Schultz
Apply branch 'fix-warnings' of https://github.com/null77/Vulkan-LoaderAndValidationLayers into null77-fix-warnings
2016-02-10Remove Khronos confidential clause from license text.Karl Schultz
2016-02-03loader:Update copyright and apply clang-format (no logic changes)Jon Ashburn
2016-01-25Win32: Get 32-bit Windows build workingMark Young
Also includes changes to allow simultaneous 32-bit and 64-bit Windows builds.
2016-01-20debug_report: Integrate review feedbackCourtney Goeltzenleuchter
Conflicts: include/vulkan/vk_ext_debug_report.h Conflicts: include/vulkan/vk_ext_debug_report.h
2016-01-19debug_report: MR141, Change pUserData to match type used elsewhereCourtney Goeltzenleuchter
Other uses of pUserData in Vulkan do not have a const qualifier, remove it for this pUserData.
2016-01-11misc: Move to Vulkan header version 0.222Jon Ashburn
2016-01-07misc: make sure host memory alignment is a power of twoJon Ashburn
Use sizeof(int) as a default generally. Is that reasonable?
2015-12-17debug_report: rename object type and error bitsCourtney Goeltzenleuchter
Conflicts: demos/tri.c layers/device_limits.cpp layers/draw_state.cpp layers/image.cpp layers/mem_tracker.cpp layers/param_checker.cpp layers/vk_layer_logging.h loader/debug_report.c tests/layer_validation_tests.cpp
2015-12-17loader: utils for managing debug report eventsCourtney Goeltzenleuchter
Now need to create & destroy callbacks as part of vkCreateInstance, so refactor debug_report entries into API function and work function that can be used from the loader. Conflicts: loader/debug_report.c
2015-12-17misc: Update copyright statementsCourtney Goeltzenleuchter
2015-12-17loader: debug_report terminator functions use cast to get loader instanceJon Ashburn
2015-12-17debug_report: Add DebugReportMessage functionCourtney Goeltzenleuchter
2015-12-17debug_report: make destroy have void return valueCourtney Goeltzenleuchter
2015-12-17debug_report: rename and update to use CreateInfoCourtney Goeltzenleuchter
2015-12-17debug_report: Rename VkDbgMsgCallback objectCourtney Goeltzenleuchter
2015-12-15loader: Remove unused functionCourtney Goeltzenleuchter
2015-12-15loader: Remove unused debug helper functionsCourtney Goeltzenleuchter
Helper functions weren't considered essential to the debug_report extension and will be moved to a library.
2015-12-15layers: Rename VK_DEBUG_REPORT_EXTENSION enumsCourtney Goeltzenleuchter
2015-12-15layers: rename VkDbgObjectTypeCourtney Goeltzenleuchter
VkDebugReportObjectTypeLUNARG fits the extension naming requirements
2015-12-15layers: Rename DebugReport flagsCourtney Goeltzenleuchter
Conflicts: layers/mem_tracker.cpp Conflicts: layers/draw_state.cpp
2015-11-06loader: Compile fixes to instance extension from rebase of bug 15068 changesJon Ashburn
2015-11-06bug 15068: Use hardfp calling convention on Android for 32-bit ARM targetsChia-I Wu
Update python scripts. s/(VKAPI \*/(VKAPI_PTR */g s/void VKAPI\b/VKAPI_ATTR void VKAPI_CALL/g s/VkResult VKAPI\b/VKAPI_ATTR VkResult VKAPI_CALL/g s/PFN_vkVoidFunction VKAPI\b/VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL/g s/void\* VKAPI\b/VKAPI_ATTR void* VKAPI_CALL/g https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15068
2015-11-06loader: Update calling conventions on instance extension functionsJon Ashburn
2015-11-06Merge branch 'david_include_change_20151106'David Pinedo
Move header files to include/vulkan
2015-11-06loader: Convert GetInstanceProcAddr and GetDeviceProcAddr over to new semanticsJon Ashburn
As per Vulkan bug 13288. Still need to handle device extensions correctly.
2015-11-06Moved header files from include to include/vulkanDavid Pinedo