aboutsummaryrefslogtreecommitdiff
path: root/loader/debug_report.c
AgeCommit message (Collapse)Author
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
2015-11-04misc: Update author informationCourtney Goeltzenleuchter
Author information was added to any file with the standard license text. Authors were added that added/changed >= 3% of the lines of a file.
2015-11-04misc: switch copyright to ValveCourtney Goeltzenleuchter
2015-11-04misc: Remove Vulkan name from CopyrightCourtney Goeltzenleuchter
2015-11-02bug 14921 part 1: sed renamesChia-I Wu
Workaround header bug (ALLOC_INFO vs AllocateInfo) in vk_helper.py. This affects the debug extensions as well. s/NONDISP/NON_DISPATCHABLE/g s/CmdBuffer/CommandBuffer/g s/cmdBuffer/commandBuffer/g s/CMD_BUFFER/COMMAND_BUFFER/g s/AllocMemory/AllocateMemory/g s/AllocDescriptorSets/AllocateDescriptorSets/g s/AllocCommandBuffers/AllocateCommandBuffers/g s/VkAllocCallbacks/VkAllocationCallbacks/g s/VkSystemAllocScope/VkSystemAllocationScope/g s/allocScope/allocationScope/g s/allocType/allocationType/g s/pfnAlloc\b/pfnAllocation/g s/pfnRealloc\b/pfnReallocation/g s/VK_SYSTEM_ALLOC_/VK_SYSTEM_ALLOCATION_/g s/extName/extensionName/g s/implVersion/implementationVersion/g s/pAppInfo/pApplicationInfo/g s/pMem\b/pMemory/g s/VkMemoryAllocInfo/VkMemoryAllocateInfo/g s/VkDescriptorSetAllocInfo/VkDescriptorSetAllocateInfo/g s/CmdPool/CommandPool/g s/cmdPool/commandPool/g s/CMD_POOL/COMMAND_POOL/g s/VkCommandBufferAllocInfo/VkCommandBufferAllocateInfo/g s/maxTessellationGenLevel/maxTessellationGenerationLevel/g s/maxFragmentDualSourceAttachments/maxFragmentDualSrcAttachments/g s/destSubpass/dstSubpass/g s/destStageMask/dstStageMask/g s/dualSourceBlend/dualSrcBlend/g s/destBlendColor/dstBlendColor/g s/destBlendAlpha/dstBlendAlpha/g s/VK_FORMAT_NUM/VK_FORMAT_RANGE_SIZE/g s/VK_DYNAMIC_STATE_NUM/VK_DYNAMIC_STATE_RANGE_SIZE/g s/pAppName/pApplicationName/g s/appVersion/applicationVersion/g s/numLevels/levelCount/g s/numLayers/layerCount/g s/destOffset/dstOffset/g s/destSubresource/dstSubresource/g s/VK_IMAGE_LAYOUT_TRANSFER_SOURCE_OPTIMAL/VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL/g s/VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL/VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL/g s/VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT/VK_IMAGE_USAGE_TRANSFER_SRC_BIT/g s/VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT/VK_IMAGE_USAGE_TRANSFER_DST_BIT/g s/destBuffer/dstBuffer/g s/destQueueFamilyIndex/dstQueueFamilyIndex/g s/destSet/dstSet/g s/destBinding/dstBinding/g s/destArrayElement/dstArrayElement/g s/VK_BLEND_DEST_COLOR/VK_BLEND_DST_COLOR/g s/VK_BLEND_ONE_MINUS_DEST_COLOR/VK_BLEND_ONE_MINUS_DST_COLOR/g s/VK_BLEND_DEST_ALPHA/VK_BLEND_DST_ALPHA/g s/VK_BLEND_ONE_MINUS_DEST_ALPHA/VK_BLEND_ONE_MINUS_DST_ALPHA/g s/VK_FORMAT_FEATURE_BLIT_SOURCE_BIT/VK_FORMAT_FEATURE_BLIT_SRC_BIT/g s/VK_FORMAT_FEATURE_BLIT_DESTINATION_BIT/VK_FORMAT_FEATURE_BLIT_DST_BIT/g s/VK_BUFFER_USAGE_TRANSFER_SOURCE_BIT/VK_BUFFER_USAGE_TRANSFER_SRC_BIT/g s/VK_BUFFER_USAGE_TRANSFER_DESTINATION_BIT/VK_BUFFER_USAGE_TRANSFER_DST_BIT/g s/VK_COMPARE_OP_LESS_EQUAL/VK_COMPARE_OP_LESS_OR_EQUAL/g s/VK_COMPARE_OP_GREATER_EQUAL/VK_COMPARE_OP_GREATER_OR_EQUAL/g s/VkPipelineRasterStateCreateInfo/VkPipelineRasterizationStateCreateInfo/g s/rasterSamples/rasterizationSamples/g s/pRasterState/pRasterizationState/g s/VK_FRONT_FACE_CCW/VK_FRONT_FACE_COUNTER_CLOCKWISE/g s/VK_FRONT_FACE_CW/VK_FRONT_FACE_CLOCKWISE/g s/VK_PRIMITIVE_TOPOLOGY_LINE_LIST_ADJ/VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY/g s/VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_ADJ/VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY/g s/VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_ADJ/VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY/g s/VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_ADJ/VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY/g s/VK_STENCIL_OP_INC_CLAMP/VK_STENCIL_OP_INCREMENT_AND_CLAMP/g s/VK_STENCIL_OP_DEC_CLAMP/VK_STENCIL_OP_DECREMENT_AND_CLAMP/g s/VK_STENCIL_OP_INC_WRAP/VK_STENCIL_OP_INCREMENT_AND_WRAP/g s/VK_STENCIL_OP_DEC_WRAP/VK_STENCIL_OP_DECREMENT_AND_WRAP/g s/VK_LOGIC_OP_NOOP/VK_LOGIC_OP_NO_OP/g s/VK_LOGIC_OP_EQUIV\b/VK_LOGIC_OP_EQUIVALENT/g s/memBarrierCount/memoryBarrierCount/g s/ppMemBarriers/ppMemoryBarriers/g s/destImage/dstImage/g s/destImageLayout/dstImageLayout/g s/destCache/dstCache/g s/memOffset/memoryOffset/g s/vk_print_vkmemoryallocinfo/vk_print_vkmemoryallocateinfo/g s/pAllocInfo/pAllocateInfo/g s/memRangeCount/memoryRangeCount/g s/pMemRanges/pMemoryRanges/g s/VK_IMAGE_TYPE_NUM/VK_IMAGE_TYPE_RANGE_SIZE/g s/VK_PIPELINE_BIND_POINT_NUM/VK_PIPELINE_BIND_POINT_RANGE_SIZE/g s/vk_size_vkdescriptorsetallocinfo/vk_size_vkdescriptorsetallocateinfo/g s/remap_cmdbuffers/remap_commandbuffers/g s/remap_cmdpool/remap_commandpool/g s/add_to_cmdbuffers_map/add_to_commandbuffers_map/g https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14921 a
2015-11-02bug 12921: Memory callback (WIP)Chia-I Wu
The per-object allocator is ignored for now. https://cvs.khronos.org/bugzilla/show_bug.cgi?id=12921
2015-11-02bug 14892: 'count' parameters and members named inconsistently in many cases ↵Chia-I Wu
(WIP) s/waitSemCount/waitSemaphoreCount/g s/signalSemCount/signalSemaphoreCount/g s/cmdBufferCount/commandBufferCount/g s/queueFamilyCount/queueFamilyIndexCount/g s/layerCount/enabledLayerNameCount/g s/extensionCount/enabledExtensionNameCount/g https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14892
2015-10-30bug 14362: VK_NULL_HANDLE does not work in C (WIP)Chia-I Wu
Drop type safety on 32-bit. https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14362
2015-10-08loader: Use correct 64bit printf format for WindowsCourtney Goeltzenleuchter
Fixes LunarXchange issue #145
2015-10-02loader: Fixes in trampoline code to support layers which wrap objectsJon Ashburn
Loader trampoline code may see wrapped objects. Don't do value comparisons of dispatchable objects but instead compare dispatch tables to find objects. PhysicalDevice objects where may have multiple gpus with same instance dispatch will be fixed in a later patch.
2015-10-01loader: Fix vkGetInstanceProcAddr to handle debug_report extensionJon Ashburn
Need loader entrypoints for debug_report extension including the utility functions. Don't call down the instance chain GPA for this extension. Remove instance extensions decoding when GPA instance == NULL as don't want to return extension entrypoints unless they are enabled. This meant the WSI swapchain instance GPA was no longer used so remove it.
2015-09-23loader: Remove instance validation checks from debug_report.cMark Lobodzinski
Cannot reach these points with an invalid instance value.
2015-09-10bug-14538: Remove driver validation checksCourtney Goeltzenleuchter
Marked validation checks done in the driver with TODOVV. Once we verify the check is covered in a validation layer we can remove the driver code.
2015-09-04loader: Fix Windows build for alloc stuffJon Ashburn
2015-09-04loader: Make use of app provided allocation callbacksJon Ashburn
Convert all heap allocs/frees to use loader_heap_alloc() or loader_heap_free(). Before CreateInstance this will use malloc/free. At (and after) CreateInstance alloc callbacks are stored and used for any allocations. Exceptions are thirdparty code (cJSON and dirent_on_windows) still always use malloc/free. Plan to address these in later patch if ti makes sense.
2015-09-04loader: convert to using loader_stack_alloc for consistencyJon Ashburn
2015-09-04All extensions single revision number instead of major.minor.patchIan Elliott
This was decided during the August face-to-face. Originally, the WSI extensions did it the normal OpenGL way (single revision number), and the debug extensions did it the new major.minor.patch way. When I tried to convert WSI, an objection was raised. We decided to go with the OpenGL way. This commit also changes vulkaninfo to report the single revision number. This commit also changes the extension "number" assigned to the 2 debug extensions, basd on a "registration" email that Ian Elliott sent to Jon Leech on 21 August, 2015. The initial set of "registered" extensions are (with their numbers): 1.VK_EXT_KHR_swapchain 2.VK_EXT_KHR_device_swapchain 3.VK_EXT_KHR_display 4.VK_EXT_KHR_display_swapchain 5.VK_EXT_LUNARG_debug_report 6.VK_EXT_LUNARG_debug_marker
2015-08-07include: Change debug report pUserData parameter to non-constJon Ashburn
This was inconsistently defined.