-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Implement VK_AMD_buffer_marker extension 2. Implement VK_EXT_debug_report extension 3. Pass layout to InitImmutableDescriptors(). This removes 80% of the time in DescriptorSet::Reassign() 4. Calculate location of bindings for descriptor set layout to avoid a memory lookup 5. Disable depth clamping when enableDepthClamp is set to false 6. Fix CTS dEQP-VK.tessellation.shader_input_output.barrier failure, simplify the TessFactorToBuffer offset calculation 7. Fix CTS dEQP-VK.glsl.440.linkage.varying.component group testing failure
- Loading branch information
1 parent
02f11b6
commit 3e2d125
Showing
57 changed files
with
2,392 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
*********************************************************************************************************************** | ||
* | ||
* Copyright (c) 2014-2018 Advanced Micro Devices, Inc. All Rights Reserved. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* | ||
**********************************************************************************************************************/ | ||
/** | ||
********************************************************************************************************************** | ||
* @file vk_amd_buffer_marker.h | ||
* @brief Header for VK_AMD_buffer marker extension. | ||
********************************************************************************************************************** | ||
*/ | ||
#ifndef VK_AMD_BUFFER_MARKER_H_ | ||
#define VK_AMD_BUFFER_MARKER_H_ | ||
|
||
#define VK_AMD_buffer_marker 1 | ||
#define VK_AMD_BUFFER_MARKER_SPEC_VERSION 1 | ||
#define VK_AMD_BUFFER_MARKER_EXTENSION_NUMBER 180 | ||
|
||
#define VK_AMD_BUFFER_MARKER_EXTENSION_NAME "VK_AMD_buffer_marker" | ||
|
||
typedef void (VKAPI_PTR *PFN_vkCmdWriteBufferMarkerAMD)( | ||
VkCommandBuffer commandBuffer, | ||
VkPipelineStageFlagBits pipelineStage, | ||
VkBuffer dstBuffer, | ||
VkDeviceSize dstOffset, | ||
uint32_t marker); | ||
|
||
VKAPI_ATTR void VKAPI_CALL vkCmdWriteBufferMarkerAMD( | ||
VkCommandBuffer commandBuffer, | ||
VkPipelineStageFlagBits pipelineStage, | ||
VkBuffer dstBuffer, | ||
VkDeviceSize dstOffset, | ||
uint32_t marker); | ||
|
||
#endif /* VK_AMD_BUFFER_MARKER_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/* | ||
*********************************************************************************************************************** | ||
* | ||
* Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* | ||
**********************************************************************************************************************/ | ||
|
||
#ifndef __VK_DEBUG_REPORT_H__ | ||
#define __VK_DEBUG_REPORT_H__ | ||
|
||
#pragma once | ||
|
||
#include "include/vk_dispatch.h" | ||
|
||
namespace vk | ||
{ | ||
|
||
// ===================================================================================================================== | ||
// Vulkan implementation of VK_EXT_debug_report extension | ||
class DebugReportCallback : public NonDispatchable<VkDebugReportCallbackEXT, DebugReportCallback> | ||
{ | ||
public: | ||
static VkResult Create( | ||
Instance* pInstance, | ||
const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, | ||
const VkAllocationCallbacks* pAllocator, | ||
VkDebugReportCallbackEXT* pCallback); | ||
|
||
void Destroy( | ||
Instance* pInstance, | ||
const VkAllocationCallbacks* pAllocator); | ||
|
||
void Message( | ||
Instance* pInstance, | ||
VkDebugReportFlagsEXT flags, | ||
VkDebugReportObjectTypeEXT objectType, | ||
uint64_t object, | ||
size_t location, | ||
int32_t messageCode, | ||
const char* pLayerPrefix, | ||
const char* pMessage); | ||
|
||
VkDebugReportFlagsEXT GetFlags(); | ||
|
||
PFN_vkDebugReportCallbackEXT GetCallbackFunc(); | ||
|
||
void* GetUserData(); | ||
|
||
protected: | ||
DebugReportCallback() | ||
{ | ||
}; | ||
|
||
private: | ||
VkDebugReportCallbackCreateInfoEXT m_createInfo; | ||
}; | ||
|
||
namespace entry | ||
{ | ||
VKAPI_ATTR VkResult VKAPI_CALL vkCreateDebugReportCallbackEXT( | ||
VkInstance instance, | ||
const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, | ||
const VkAllocationCallbacks* pAllocator, | ||
VkDebugReportCallbackEXT* pCallback); | ||
|
||
VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackEXT( | ||
VkInstance instance, | ||
VkDebugReportCallbackEXT callback, | ||
const VkAllocationCallbacks* pAllocator); | ||
|
||
VKAPI_ATTR void VKAPI_CALL vkDebugReportMessageEXT( | ||
VkInstance instance, | ||
VkDebugReportFlagsEXT flags, | ||
VkDebugReportObjectTypeEXT objectType, | ||
uint64_t object, | ||
size_t location, | ||
int32_t messageCode, | ||
const char* pLayerPrefix, | ||
const char* pMessage); | ||
} // namespace entry | ||
|
||
} // namespace vk | ||
|
||
#endif /* __VK_DEBUG_REPORT_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.