bug-14583: Remove the unneeded vkBufferViewType
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Mon, 14 Sep 2015 22:36:13 +0000 (16:36 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Tue, 15 Sep 2015 16:16:02 +0000 (10:16 -0600)
No longer have viewType to distinguish the type, so pull
it internal and use for descriptor sets.

include/vulkan.h
layers/param_checker.cpp

index f5fe0bfaa1006b316e873de2b773938796fb0d3b..d865ded51c977a0392c8844e634ea53f65679d3a 100644 (file)
@@ -478,15 +478,6 @@ typedef enum {
     VK_SHARING_MODE_MAX_ENUM = 0x7FFFFFFF
 } VkSharingMode;
 
-typedef enum {
-    VK_BUFFER_VIEW_TYPE_RAW = 0,
-    VK_BUFFER_VIEW_TYPE_FORMATTED = 1,
-    VK_BUFFER_VIEW_TYPE_BEGIN_RANGE = VK_BUFFER_VIEW_TYPE_RAW,
-    VK_BUFFER_VIEW_TYPE_END_RANGE = VK_BUFFER_VIEW_TYPE_FORMATTED,
-    VK_BUFFER_VIEW_TYPE_NUM = (VK_BUFFER_VIEW_TYPE_FORMATTED - VK_BUFFER_VIEW_TYPE_RAW + 1),
-    VK_BUFFER_VIEW_TYPE_MAX_ENUM = 0x7FFFFFFF
-} VkBufferViewType;
-
 typedef enum {
     VK_IMAGE_VIEW_TYPE_1D = 0,
     VK_IMAGE_VIEW_TYPE_2D = 1,
@@ -1483,7 +1474,6 @@ typedef struct {
     VkStructureType                             sType;
     const void*                                 pNext;
     VkBuffer                                    buffer;
-    VkBufferViewType                            viewType;
     VkFormat                                    format;
     VkDeviceSize                                offset;
     VkDeviceSize                                range;
index 6458d164460b5ae22ab707bbe8f0d84f12b23cc9..40712077757f50ef655fd9afc162e2398707b1da 100644 (file)
@@ -3615,13 +3615,6 @@ bool PreCreateBufferView(
         "vkCreateBufferView parameter, VkStructureType pCreateInfo->sType, is an invalid enumerator");
         return false;
     }
-    if(pCreateInfo->viewType < VK_BUFFER_VIEW_TYPE_BEGIN_RANGE ||
-        pCreateInfo->viewType > VK_BUFFER_VIEW_TYPE_END_RANGE)
-    {
-        log_msg(mdd(device), VK_DBG_REPORT_ERROR_BIT, (VkDbgObjectType)0, 0, 0, 1, "PARAMCHECK",
-        "vkCreateBufferView parameter, VkBufferViewType pCreateInfo->viewType, is an unrecognized enumerator");
-        return false;
-    }
     if(pCreateInfo->format < VK_FORMAT_BEGIN_RANGE ||
         pCreateInfo->format > VK_FORMAT_END_RANGE)
     {