mesa.git
9 years agovk/image: Add a stub for the new ImageFormatProperties function
Jason Ekstrand [Wed, 15 Jul 2015 00:05:28 +0000 (17:05 -0700)]
vk/image: Add a stub for the new ImageFormatProperties function

This lets the client query about things like multisample.  We don't do
multisample right now, so I'll let Chad deal with that when he gets to it.

9 years agovk/vulkan.h: Rename FormatInfo to FormatProperties
Jason Ekstrand [Wed, 15 Jul 2015 00:04:46 +0000 (17:04 -0700)]
vk/vulkan.h: Rename FormatInfo to FormatProperties

9 years agovk/vulkan.h: Re-order some #define's
Jason Ekstrand [Tue, 14 Jul 2015 23:41:39 +0000 (16:41 -0700)]
vk/vulkan.h: Re-order some #define's

9 years agovk/vulkan.h: Rename a function parameter
Jason Ekstrand [Tue, 14 Jul 2015 23:39:01 +0000 (16:39 -0700)]
vk/vulkan.h: Rename a function parameter

9 years agovk: Remove abreviations
Jason Ekstrand [Tue, 14 Jul 2015 23:34:31 +0000 (16:34 -0700)]
vk: Remove abreviations

9 years agovk: Add the new extension/layer enumeration entrypoints
Jason Ekstrand [Tue, 14 Jul 2015 23:11:21 +0000 (16:11 -0700)]
vk: Add the new extension/layer enumeration entrypoints

9 years agovk/vulkan.h: Change maxAnisotropy to a float
Jason Ekstrand [Tue, 14 Jul 2015 22:04:11 +0000 (15:04 -0700)]
vk/vulkan.h: Change maxAnisotropy to a float

9 years agovk/vulkan.h: Add the VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT flag
Jason Ekstrand [Tue, 14 Jul 2015 22:03:39 +0000 (15:03 -0700)]
vk/vulkan.h: Add the VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT flag

9 years agovk/vulkan.h: Rename a couple of function parameters
Jason Ekstrand [Tue, 14 Jul 2015 22:02:59 +0000 (15:02 -0700)]
vk/vulkan.h: Rename a couple of function parameters

No functional change.

9 years agovk: Split the memory requirements/binding functions
Jason Ekstrand [Tue, 14 Jul 2015 21:59:39 +0000 (14:59 -0700)]
vk: Split the memory requirements/binding functions

9 years agovk: Make barriers more precise (rev. 133)
Jason Ekstrand [Tue, 14 Jul 2015 21:50:35 +0000 (14:50 -0700)]
vk: Make barriers more precise (rev. 133)

9 years agovk: Split the dynamic state binding function into one per state
Jason Ekstrand [Tue, 14 Jul 2015 21:26:10 +0000 (14:26 -0700)]
vk: Split the dynamic state binding function into one per state

9 years agovk/vulkan.h: Rename a function parameter to match 132
Jason Ekstrand [Tue, 14 Jul 2015 21:11:04 +0000 (14:11 -0700)]
vk/vulkan.h: Rename a function parameter to match 132

9 years agovk: Implement Multipass
Jason Ekstrand [Sat, 11 Jul 2015 03:18:52 +0000 (20:18 -0700)]
vk: Implement Multipass

9 years agovk/vulkan.h: Re-arrange some enums and definitions in preparation for 131
Jason Ekstrand [Fri, 10 Jul 2015 19:04:00 +0000 (12:04 -0700)]
vk/vulkan.h: Re-arrange some enums and definitions in preparation for 131

9 years agovk/0.132: Add vkDestroyRenderPass()
Chad Versace [Tue, 14 Jul 2015 18:21:01 +0000 (11:21 -0700)]
vk/0.132: Add vkDestroyRenderPass()

9 years agovk/0.132: Add vkDestroy*View()
Chad Versace [Tue, 14 Jul 2015 18:15:39 +0000 (11:15 -0700)]
vk/0.132: Add vkDestroy*View()

vkDestroyColorAttachmentView
vkDestroyDepthStencilView

These functions are not in the 0.132 header, but adding them will help
us attain the type-safety API updates more quickly.

9 years agovk/0.132: Add vkDestroyCommandBuffer()
Chad Versace [Tue, 14 Jul 2015 18:06:14 +0000 (11:06 -0700)]
vk/0.132: Add vkDestroyCommandBuffer()

9 years agovk/0.132: Add vkDestroyImageView()
Chad Versace [Tue, 14 Jul 2015 18:02:33 +0000 (11:02 -0700)]
vk/0.132: Add vkDestroyImageView()

Just declare it in vulkan.h. Jason defined the function earlier
in image.c.

9 years agovk/0.132: Add vkDestroyBufferView()
Chad Versace [Tue, 14 Jul 2015 18:01:38 +0000 (11:01 -0700)]
vk/0.132: Add vkDestroyBufferView()

Just declare it in vulkan.h. Jason already defined the function
earlier in vulkan.c.

9 years agovk/0.132: Add vkDestroyFramebuffer()
Chad Versace [Tue, 14 Jul 2015 17:59:30 +0000 (10:59 -0700)]
vk/0.132: Add vkDestroyFramebuffer()

9 years agovk/0.132: Add vkDestroyDynamicDepthStencilState()
Chad Versace [Tue, 14 Jul 2015 17:54:16 +0000 (10:54 -0700)]
vk/0.132: Add vkDestroyDynamicDepthStencilState()

9 years agovk/0.132: Add vkDestroyDynamicColorBlendState()
Chad Versace [Tue, 14 Jul 2015 17:52:45 +0000 (10:52 -0700)]
vk/0.132: Add vkDestroyDynamicColorBlendState()

9 years agovk/0.132: Add vkDestroyDynamicRasterState()
Chad Versace [Tue, 14 Jul 2015 17:51:08 +0000 (10:51 -0700)]
vk/0.132: Add vkDestroyDynamicRasterState()

9 years agovk/0.132: Add vkDestroyDynamicViewportState()
Chad Versace [Tue, 14 Jul 2015 17:42:45 +0000 (10:42 -0700)]
vk/0.132: Add vkDestroyDynamicViewportState()

9 years agovk/0.132: Add vkDestroyDescriptorPool()
Chad Versace [Tue, 14 Jul 2015 17:38:22 +0000 (10:38 -0700)]
vk/0.132: Add vkDestroyDescriptorPool()

9 years agovk/0.132: Add vkDestroyDescriptorSetLayout()
Chad Versace [Tue, 14 Jul 2015 17:36:49 +0000 (10:36 -0700)]
vk/0.132: Add vkDestroyDescriptorSetLayout()

9 years agovk/0.132: Add vkDestroySampler()
Chad Versace [Tue, 14 Jul 2015 17:34:00 +0000 (10:34 -0700)]
vk/0.132: Add vkDestroySampler()

9 years agovk/0.132: Add vkDestroyPipelineLayout()
Chad Versace [Tue, 14 Jul 2015 17:28:41 +0000 (10:28 -0700)]
vk/0.132: Add vkDestroyPipelineLayout()

9 years agovk/0.132: Add vkDestroyPipeline()
Chad Versace [Tue, 14 Jul 2015 17:26:17 +0000 (10:26 -0700)]
vk/0.132: Add vkDestroyPipeline()

9 years agovk/0.132: Add vkDestroyPipelineCache()
Chad Versace [Tue, 14 Jul 2015 17:19:27 +0000 (10:19 -0700)]
vk/0.132: Add vkDestroyPipelineCache()

9 years agovk/0.132: Add vkDestroyShader()
Chad Versace [Tue, 14 Jul 2015 17:16:22 +0000 (10:16 -0700)]
vk/0.132: Add vkDestroyShader()

9 years agovk/0.132: Add vkDestroyShaderModule()
Chad Versace [Tue, 14 Jul 2015 17:12:10 +0000 (10:12 -0700)]
vk/0.132: Add vkDestroyShaderModule()

9 years agovk/0.132: Add vkDestroyImage()
Chad Versace [Tue, 14 Jul 2015 17:08:04 +0000 (10:08 -0700)]
vk/0.132: Add vkDestroyImage()

We only need to add it to vulkan.h because Jason defined the function
earlier in image.c.

9 years agovk/0.132: Dispatch vkDestroyObject to new destructors
Chad Versace [Tue, 14 Jul 2015 16:56:48 +0000 (09:56 -0700)]
vk/0.132: Dispatch vkDestroyObject to new destructors

Oops. My recent commits added new destructors, but forgot to teach
vkDestroyObject about them. They are:
  vkDestroyFence
  vkDestroyEvent
  vkDestroySemaphore
  vkDestroyQueryPool
  vkDestroyBuffer

9 years agovk/0.132: Add vkDestroyBuffer()
Chad Versace [Tue, 14 Jul 2015 16:47:45 +0000 (09:47 -0700)]
vk/0.132: Add vkDestroyBuffer()

9 years agovk/0.132: Add vkDestroyQueryPool()
Chad Versace [Tue, 14 Jul 2015 16:44:58 +0000 (09:44 -0700)]
vk/0.132: Add vkDestroyQueryPool()

9 years agovk/0.132: Add vkDestroyEvent()
Chad Versace [Tue, 14 Jul 2015 16:33:47 +0000 (09:33 -0700)]
vk/0.132: Add vkDestroyEvent()

9 years agovk/0.132: Add vkDestroySemaphore()
Chad Versace [Tue, 14 Jul 2015 16:31:34 +0000 (09:31 -0700)]
vk/0.132: Add vkDestroySemaphore()

9 years agovk/0.132: Add vkDestroyFence()
Chad Versace [Tue, 14 Jul 2015 16:29:35 +0000 (09:29 -0700)]
vk/0.132: Add vkDestroyFence()

9 years agovk/0.132: Rename VkDynamic*State types
Chad Versace [Mon, 13 Jul 2015 20:19:33 +0000 (13:19 -0700)]
vk/0.132: Rename VkDynamic*State types

sed -i -e 's/VkDynamicVpState/VkDynamicViewportState/g' \
       -e 's/VkDynamicRsState/VkDynamicRasterState/g' \
       -e 's/VkDynamicCbState/VkDynamicColorBlendState/g' \
       -e 's/VkDynamicDsState/VkDynamicDepthStencilState/g' \
       $(git ls-files include/vulkan src/vulkan)

9 years agonir/spirv: update to SPIR-V revision 31
Connor Abbott [Mon, 13 Jul 2015 17:19:32 +0000 (10:19 -0700)]
nir/spirv: update to SPIR-V revision 31

This means that now the internal version of glslangValidator is
required. This includes some changes due to the sampler/texture rework,
but doesn't actually enable anything more yet. We also don't yet handle
UBO's correctly, and don't handle matrix stride and row major/column
major yet.

9 years agovk/0.132: Move VkQueryControlFlags
Chad Versace [Mon, 13 Jul 2015 20:09:32 +0000 (13:09 -0700)]
vk/0.132: Move VkQueryControlFlags

9 years agovk/0.132: Move VkImageAspectFlags
Chad Versace [Mon, 13 Jul 2015 20:08:56 +0000 (13:08 -0700)]
vk/0.132: Move VkImageAspectFlags

9 years agovk/0.132: Move VkCmdBufferOptimizeFlags
Chad Versace [Mon, 13 Jul 2015 20:08:07 +0000 (13:08 -0700)]
vk/0.132: Move VkCmdBufferOptimizeFlags

9 years agovk/0.132: Move VkWaitEvent
Chad Versace [Mon, 13 Jul 2015 20:06:53 +0000 (13:06 -0700)]
vk/0.132: Move VkWaitEvent

9 years agovk/0.132: Move VkCmdBufferLevel
Chad Versace [Mon, 13 Jul 2015 20:06:22 +0000 (13:06 -0700)]
vk/0.132: Move VkCmdBufferLevel

9 years agovk/0.132: Drop VK_ATTACHMENT_STORE_OP_RESOLVE_MSAA
Chad Versace [Mon, 13 Jul 2015 20:05:24 +0000 (13:05 -0700)]
vk/0.132: Drop VK_ATTACHMENT_STORE_OP_RESOLVE_MSAA

9 years agovk/0.132: Rename bool32_t -> VkBool32
Chad Versace [Mon, 13 Jul 2015 19:59:42 +0000 (12:59 -0700)]
vk/0.132: Rename bool32_t -> VkBool32

sed -i 's/bool32_t/VkBool32/g' \
  $(git ls-files src/vulkan include/vulkan)

9 years agovk/0.132: Remove stray typedef
Chad Versace [Mon, 13 Jul 2015 19:52:34 +0000 (12:52 -0700)]
vk/0.132: Remove stray typedef

9 years agovk/0.132: Move VKImageUsageFlags
Chad Versace [Mon, 13 Jul 2015 19:48:44 +0000 (12:48 -0700)]
vk/0.132: Move VKImageUsageFlags

9 years agovk/0.132: Move VkImageType and VkImageTiling
Chad Versace [Mon, 13 Jul 2015 18:49:56 +0000 (11:49 -0700)]
vk/0.132: Move VkImageType and VkImageTiling

9 years agovk/0.132: Import the 0.132 header
Chad Versace [Mon, 13 Jul 2015 18:47:12 +0000 (11:47 -0700)]
vk/0.132: Import the 0.132 header

Import it as vulkan-0.132.h.

9 years agovk/vulkan.h: Remove headers for old API versions
Chad Versace [Mon, 13 Jul 2015 18:46:30 +0000 (11:46 -0700)]
vk/vulkan.h: Remove headers for old API versions

Remove the temporary headers for 0.90 and 0.130.

9 years agovk/0.130: Bump header version to 0.130
Chad Versace [Sat, 11 Jul 2015 03:06:09 +0000 (20:06 -0700)]
vk/0.130: Bump header version to 0.130

All APIs have been updated. This eliminates the diff between the
work-in-progress header and the 0.130 header.

9 years agovk/0.130: Update vkAllocMemory to use VkMemoryType
Chad Versace [Fri, 10 Jul 2015 02:59:44 +0000 (19:59 -0700)]
vk/0.130: Update vkAllocMemory to use VkMemoryType

9 years agovk/0.130: Implement vkGetPhysicalDeviceMemoryProperties()
Chad Versace [Fri, 10 Jul 2015 02:49:19 +0000 (19:49 -0700)]
vk/0.130: Implement vkGetPhysicalDeviceMemoryProperties()

9 years agovk/gem: Change signature of anv_gem_get_aperture()
Chad Versace [Fri, 10 Jul 2015 02:38:39 +0000 (19:38 -0700)]
vk/gem: Change signature of anv_gem_get_aperture()

Replace the anv_device parameter with anv_physical_device, because this needs
querying before vkCreateDevice.

9 years agovk/device: Add member anv_physical_device::fd
Chad Versace [Thu, 9 Jul 2015 23:31:39 +0000 (16:31 -0700)]
vk/device: Add member anv_physical_device::fd

During anv_physical_device_init(), we opend the DRM device to do some
queries, then promptly closed it. Now we keep it open for the lifetime
of the anv_physical_device so that we can query it some more during
vkGetPhysicalDevice*Properties() [which will happen in follow-up
commits].

9 years agovk/device: Add func anv_physical_device_finish()
Chad Versace [Thu, 9 Jul 2015 23:22:18 +0000 (16:22 -0700)]
vk/device: Add func anv_physical_device_finish()

Because in a follow-up patch I need to do some non-trival teardown on
anv_physical_device. Currently, however, anv_physical_device_finish() is
currently a no-op that's just called in the right place.

Also, rename function fill_physical_device -> anv_physical_device_init
for symmetry.

9 years agovk/device: Add an explicit destructor for RenderPass
Jason Ekstrand [Fri, 10 Jul 2015 19:33:04 +0000 (12:33 -0700)]
vk/device: Add an explicit destructor for RenderPass

9 years agovk/image: Add an explicit DestroyImage function
Jason Ekstrand [Fri, 10 Jul 2015 19:30:58 +0000 (12:30 -0700)]
vk/image: Add an explicit DestroyImage function

9 years agovk/image: Add explicit constructors for buffer/image view types
Jason Ekstrand [Fri, 10 Jul 2015 19:25:30 +0000 (12:25 -0700)]
vk/image: Add explicit constructors for buffer/image view types

9 years agonir: Add C++ versions of NIR_(SRC|DEST)_INIT
Jason Ekstrand [Fri, 10 Jul 2015 17:59:09 +0000 (10:59 -0700)]
nir: Add C++ versions of NIR_(SRC|DEST)_INIT

9 years agomesa: Fix generation of git_sha1.h.tmp for gitlinks
Chad Versace [Fri, 10 Jul 2015 01:46:21 +0000 (18:46 -0700)]
mesa: Fix generation of git_sha1.h.tmp for gitlinks

Don't assume that $(top_srcdir)/.git is a directory. It may be a
gitlink file [1] if $(top_srcdir) is a submodule checkout or a linked
worktree [2].

[1] A "gitlink" is a text file that specifies the real location of
    the gitdir.
[2] Linked worktrees are a new feature in Git 2.5.

Cc: "10.6, 10.5" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
(cherry picked from commit 75784243df1f5bb0652fb243b37d69f36d493a86)

9 years agovk/query.c: Use the casting functions
Jason Ekstrand [Fri, 10 Jul 2015 03:32:44 +0000 (20:32 -0700)]
vk/query.c: Use the casting functions

9 years agovk/pipeline.c: Use the casting functions
Jason Ekstrand [Fri, 10 Jul 2015 03:28:08 +0000 (20:28 -0700)]
vk/pipeline.c: Use the casting functions

9 years agovk/formats.c: Use the casting functions
Jason Ekstrand [Fri, 10 Jul 2015 03:24:17 +0000 (20:24 -0700)]
vk/formats.c: Use the casting functions

9 years agovk/image.c: Use the casting functions
Jason Ekstrand [Fri, 10 Jul 2015 03:24:07 +0000 (20:24 -0700)]
vk/image.c: Use the casting functions

9 years agovk/device.c: One more use of a casting function
Jason Ekstrand [Fri, 10 Jul 2015 03:23:46 +0000 (20:23 -0700)]
vk/device.c: One more use of a casting function

9 years agovk/meta.c: Use the casting functions
Jason Ekstrand [Fri, 10 Jul 2015 03:16:13 +0000 (20:16 -0700)]
vk/meta.c: Use the casting functions

9 years agovk: Fix the build
Jason Ekstrand [Fri, 10 Jul 2015 01:59:05 +0000 (18:59 -0700)]
vk: Fix the build

9 years agodevice.c: Use the cast helpers a bunch of places
Jason Ekstrand [Fri, 10 Jul 2015 01:41:27 +0000 (18:41 -0700)]
device.c: Use the cast helpers a bunch of places

9 years agodevice.c: Use the cast helpers
Jason Ekstrand [Fri, 10 Jul 2015 01:41:27 +0000 (18:41 -0700)]
device.c: Use the cast helpers

9 years agovk/private.h: Add a bunch of static inline casting functions
Jason Ekstrand [Fri, 10 Jul 2015 01:35:22 +0000 (18:35 -0700)]
vk/private.h: Add a bunch of static inline casting functions

We will need these as soon as we turn on type saftey.  We might as well
define and start using them now rather than later.

9 years agovk/device.c: Fix whitespace issues
Jason Ekstrand [Fri, 10 Jul 2015 01:20:28 +0000 (18:20 -0700)]
vk/device.c: Fix whitespace issues

9 years agovk/device.c: Use ANV_FROM_HANDLE a bunch of places
Jason Ekstrand [Fri, 10 Jul 2015 01:20:10 +0000 (18:20 -0700)]
vk/device.c: Use ANV_FROM_HANDLE a bunch of places

9 years agovk/vulkan.h: Add the pEnabledFeatures field to DeviceCreateInfo
Jason Ekstrand [Thu, 9 Jul 2015 23:21:31 +0000 (16:21 -0700)]
vk/vulkan.h: Add the pEnabledFeatures field to DeviceCreateInfo

9 years agovk/vulkan.h: Change the MsCreateInfo structure to the 130 version
Jason Ekstrand [Thu, 9 Jul 2015 23:19:52 +0000 (16:19 -0700)]
vk/vulkan.h: Change the MsCreateInfo structure to the 130 version

We do nothing with it at the moment, so this is a no-op.

9 years agovk: Remove the old GetPhysicalDeviceInfo call
Jason Ekstrand [Thu, 9 Jul 2015 23:14:31 +0000 (16:14 -0700)]
vk: Remove the old GetPhysicalDeviceInfo call

9 years agovk: Add the new PhysicalDeviceQueue queries
Jason Ekstrand [Thu, 9 Jul 2015 23:11:24 +0000 (16:11 -0700)]
vk: Add the new PhysicalDeviceQueue queries

9 years agovk: Support GetPhysicalDeviceProperties
Jason Ekstrand [Thu, 9 Jul 2015 22:53:03 +0000 (15:53 -0700)]
vk: Support GetPhysicalDeviceProperties

9 years agovk: Add support for GetPhysicalDeviceLimits
Jason Ekstrand [Thu, 9 Jul 2015 22:38:30 +0000 (15:38 -0700)]
vk: Add support for GetPhysicalDeviceLimits

9 years agovk: Add GetPhysicalDeviceFeatures
Jason Ekstrand [Thu, 9 Jul 2015 20:54:08 +0000 (13:54 -0700)]
vk: Add GetPhysicalDeviceFeatures

9 years agovk/device: Fix vkEnumeratePhysicalDevices()
Chad Versace [Thu, 9 Jul 2015 22:51:06 +0000 (15:51 -0700)]
vk/device: Fix vkEnumeratePhysicalDevices()

The Vulkan spec says that pPhysicalDeviceCount is an out parameter if
pPhysicalDevices is NULL; otherwise it's an inout parameter.

Mesa incorrectly treated it unconditionally as an inout parameter, which
could have lead to reading unitialized data.

9 years agovk/device: Move device enumeration to vkEnumeratePhysicalDevices()
Chad Versace [Thu, 9 Jul 2015 22:38:58 +0000 (15:38 -0700)]
vk/device: Move device enumeration to vkEnumeratePhysicalDevices()

Don't enumerate devices in vkCreateInstance(). That's where global,
device-independent initialization should happen. Move device enumeration
to the more logical location, vkEnumeratePhysicalDevices().

9 years agovk/device: Be consistent about path to DRM device
Chad Versace [Thu, 9 Jul 2015 22:23:25 +0000 (15:23 -0700)]
vk/device: Be consistent about path to DRM device

Function fill_physical_device() has a 'path' parameter, and struct
anv_physical_device has a 'path' member. Sometimes these are used;
sometimes hardcoded "/dev/dri/renderD128" is used instead.

Be consistent. Hardcode "/dev/dri/renderD128" in exactly one location,
during initialization of the physical device.

9 years agovk/compiler: create an empty parameters list
Connor Abbott [Thu, 9 Jul 2015 18:29:23 +0000 (14:29 -0400)]
vk/compiler: create an empty parameters list

Prevents problems when initializing the sanity_param_count.

9 years agonir/spirv: fix wrong writemask for ALU operations
Connor Abbott [Thu, 9 Jul 2015 18:28:39 +0000 (14:28 -0400)]
nir/spirv: fix wrong writemask for ALU operations

9 years agonir/spirv: fix memory context for builtin variable
Connor Abbott [Thu, 9 Jul 2015 02:01:33 +0000 (22:01 -0400)]
nir/spirv: fix memory context for builtin variable

Fixes valgrind errors with func.depthstencil.basic.

9 years agonir/spirv: zero out value array
Connor Abbott [Thu, 9 Jul 2015 01:50:16 +0000 (21:50 -0400)]
nir/spirv: zero out value array

Before values are pushed or annotated with a name, decoration, etc.,
they need to have an invalid type, NULL name, NULL decoration, etc.
ralloc zero's everything by accident, so this wasn't an issue in
practice, but we should be explicitly zero'ing it.

9 years agovk/compiler: create the right kind of program struct
Connor Abbott [Thu, 9 Jul 2015 01:48:57 +0000 (21:48 -0400)]
vk/compiler: create the right kind of program struct

This fixes Valgrind errors and gets all the tests to pass with
--use-spir-v.

9 years agovk/compiler: mark inputs/outputs as read/written
Connor Abbott [Thu, 9 Jul 2015 01:47:43 +0000 (21:47 -0400)]
vk/compiler: mark inputs/outputs as read/written

This doesn't handle inputs and outputs larger than a vec4, but we plan
to add a varyiing splitting/packing pass to handle those anyways.

9 years agovk/vulkan.h: Copy the VkStructureType enum from version 130
Jason Ekstrand [Thu, 9 Jul 2015 00:45:50 +0000 (17:45 -0700)]
vk/vulkan.h: Copy the VkStructureType enum from version 130

We now have the exact same structs which require pType.

9 years agovk: Move to the new pipeline creation API's
Jason Ekstrand [Thu, 9 Jul 2015 00:29:49 +0000 (17:29 -0700)]
vk: Move to the new pipeline creation API's

9 years agovk/0.130: Remove VkImageViewCreateInfo::minLod
Chad Versace [Wed, 8 Jul 2015 21:39:05 +0000 (14:39 -0700)]
vk/0.130: Remove VkImageViewCreateInfo::minLod

It's now set solely through VkSampler.

9 years agovk/vulkan.h: Move renderPassContinue from GraphicsBeginInfo to BeginInfo
Jason Ekstrand [Wed, 8 Jul 2015 21:37:30 +0000 (14:37 -0700)]
vk/vulkan.h: Move renderPassContinue from GraphicsBeginInfo to BeginInfo

9 years agovk/vulkan.h: Update to the new UpdateDescriptorSets api
Jason Ekstrand [Wed, 8 Jul 2015 21:24:56 +0000 (14:24 -0700)]
vk/vulkan.h: Update to the new UpdateDescriptorSets api

9 years agovk: Add a macro for creating anv variables from vulkan handles
Jason Ekstrand [Wed, 8 Jul 2015 21:24:12 +0000 (14:24 -0700)]
vk: Add a macro for creating anv variables from vulkan handles

This is very helpful for doing the mass bunch of casts at the top of a
function.  It will also be invaluable when we get type saftey in the API.

9 years agovk/0.130 Update VkObjectType values
Chad Versace [Wed, 8 Jul 2015 19:53:49 +0000 (12:53 -0700)]
vk/0.130 Update VkObjectType values

Don't import any new enum tokens from the 0.130 header. Just update the
values of existing enums. This reduces the diff by about 16 lines.