diff options
| author | Chia-I Wu <olv@lunarg.com> | 2015-10-26 19:28:45 +0800 |
|---|---|---|
| committer | Chia-I Wu <olv@lunarg.com> | 2015-10-30 20:49:23 +0800 |
| commit | 32c0bbcb2693a5cbe5641ed7faa056bb06e8b47b (patch) | |
| tree | 80edd717d8fe69c0aa5b84dc35648ea2e383eed0 | |
| parent | 581037946e911ebe5ff1d060b49e34f364af6bcd (diff) | |
| download | usermoji-32c0bbcb2693a5cbe5641ed7faa056bb06e8b47b.tar.xz | |
v184: bug 14719: vkCmdCopyBufferToImage alignment requirements (WIP)
Update vulkaninfo to print new limits.
https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14719
| -rw-r--r-- | demos/vulkaninfo.c | 2 | ||||
| -rw-r--r-- | include/vulkan.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/demos/vulkaninfo.c b/demos/vulkaninfo.c index 00120ffd..2b82086b 100644 --- a/demos/vulkaninfo.c +++ b/demos/vulkaninfo.c @@ -923,6 +923,8 @@ static void app_dump_limits(const VkPhysicalDeviceLimits *limits) printf("\t\tlineWidthRange[1] = %f\n", limits->lineWidthRange[1] ); printf("\t\tpointSizeGranularity = %f\n", limits->pointSizeGranularity ); printf("\t\tlineWidthGranularity = %f\n", limits->lineWidthGranularity ); + printf("\t\trecommendedBufferCopyOffsetAlignment = 0x%" PRIxLEAST32 "\n", limits->recommendedBufferCopyOffsetAlignment ); + printf("\t\trecommendedBufferCopyRowPitchAlignment = 0x%" PRIxLEAST32 "\n", limits->recommendedBufferCopyRowPitchAlignment ); } static void app_gpu_dump_props(const struct app_gpu *gpu) diff --git a/include/vulkan.h b/include/vulkan.h index 6977c12c..ae47f6fd 100644 --- a/include/vulkan.h +++ b/include/vulkan.h @@ -41,7 +41,7 @@ extern "C" { ((major << 22) | (minor << 12) | patch) // Vulkan API version supported by this file -#define VK_API_VERSION VK_MAKE_VERSION(0, 183, 0) +#define VK_API_VERSION VK_MAKE_VERSION(0, 184, 0) #if defined(__cplusplus) && ((defined(_MSC_VER) && _MSC_VER >= 1800) || __cplusplus >= 201103L) @@ -1270,6 +1270,8 @@ typedef struct { float lineWidthRange[2]; float pointSizeGranularity; float lineWidthGranularity; + uint32_t recommendedBufferCopyOffsetAlignment; + uint32_t recommendedBufferCopyRowPitchAlignment; } VkPhysicalDeviceLimits; typedef struct { |
