mesa.git
9 years agovk/image: Add braces around multi-line ifs
Chad Versace [Fri, 17 Jul 2015 20:38:09 +0000 (13:38 -0700)]
vk/image: Add braces around multi-line ifs

9 years agonir/spirv: don't declare builtin blocks
Connor Abbott [Thu, 16 Jul 2015 18:04:22 +0000 (11:04 -0700)]
nir/spirv: don't declare builtin blocks

They aren't used, and the backend was barfing on them. Also, remove a
hack in in compiler.cpp now that they're gone.

9 years agonir/spirv: add support for loading UBO's
Connor Abbott [Thu, 16 Jul 2015 04:58:57 +0000 (21:58 -0700)]
nir/spirv: add support for loading UBO's

We directly emit ubo load intrinsics based off of the offset information
handed to us from SPIR-V.

9 years agonir/types: add more nir_type_is_xxx() wrappers
Connor Abbott [Thu, 16 Jul 2015 04:58:32 +0000 (21:58 -0700)]
nir/types: add more nir_type_is_xxx() wrappers

9 years agonir: move to two-level binding model for UBO's
Connor Abbott [Wed, 15 Jul 2015 23:47:51 +0000 (16:47 -0700)]
nir: move to two-level binding model for UBO's

The GLSL layer above is still hacky, so we're really just moving the
hack into GLSL-to-NIR. I'd rather not go all the way and make GLSL
support the Vulkan binding model too, since presumably we'll be
switching to SPIR-V exclusively, and so working on proper GLSL support
will be a waste of time. For now, doing this keeps it working as we add
SPIR-V->NIR support though.

9 years agovk: Remove unneeded vulkan-138.h
Chad Versace [Thu, 16 Jul 2015 00:12:22 +0000 (17:12 -0700)]
vk: Remove unneeded vulkan-138.h

9 years agovk: Bump vulkan.h version to 0.138
Chad Versace [Thu, 16 Jul 2015 00:11:49 +0000 (17:11 -0700)]
vk: Bump vulkan.h version to 0.138

9 years agovk/0.138: Update VkResult values
Chad Versace [Thu, 16 Jul 2015 00:10:33 +0000 (17:10 -0700)]
vk/0.138: Update VkResult values

9 years agovk/0.132: Do type-safety
Chad Versace [Wed, 15 Jul 2015 22:48:41 +0000 (15:48 -0700)]
vk/0.132: Do type-safety

9 years agovk/cmd_buffer: Move batch buffer padding to anv_batch_bo_finish()
Jason Ekstrand [Thu, 16 Jul 2015 00:10:58 +0000 (17:10 -0700)]
vk/cmd_buffer: Move batch buffer padding to anv_batch_bo_finish()

9 years agovk/cmd_buffer: Rename bo_count to exec2_bo_count
Jason Ekstrand [Wed, 15 Jul 2015 23:48:13 +0000 (16:48 -0700)]
vk/cmd_buffer: Rename bo_count to exec2_bo_count

9 years agovk/cmd_buffer: Add a helper for allocating dynamic state
Jason Ekstrand [Wed, 15 Jul 2015 23:33:47 +0000 (16:33 -0700)]
vk/cmd_buffer: Add a helper for allocating dynamic state

This matches what we do for surface state and makes the dynamic state pool
more opaque to things that need to get dynamic state.

9 years agovk/private.h: Move cmd_buffer functions to near the cmd_buffer struct
Jason Ekstrand [Wed, 15 Jul 2015 23:29:40 +0000 (16:29 -0700)]
vk/private.h: Move cmd_buffer functions to near the cmd_buffer struct

9 years agovk: Split command buffer state into its own structure
Jason Ekstrand [Wed, 15 Jul 2015 23:22:04 +0000 (16:22 -0700)]
vk: Split command buffer state into its own structure

Everything else in anv_cmd_buffer is the actual guts of the datastructure.

9 years agovk: Move most of the anv_Cmd related stuff to its own file
Jason Ekstrand [Wed, 15 Jul 2015 22:34:41 +0000 (15:34 -0700)]
vk: Move most of the anv_Cmd related stuff to its own file

9 years agovk: Pull the guts of anv_cmd_buffer into its own file
Jason Ekstrand [Wed, 15 Jul 2015 19:09:52 +0000 (12:09 -0700)]
vk: Pull the guts of anv_cmd_buffer into its own file

9 years agovk/glsl: Replace raw casts
Chad Versace [Wed, 15 Jul 2015 22:33:27 +0000 (15:33 -0700)]
vk/glsl: Replace raw casts

Needed for upcoming type-safety changes.

9 years agovk/meta: Remove raw casts
Chad Versace [Wed, 15 Jul 2015 22:33:40 +0000 (15:33 -0700)]
vk/meta: Remove raw casts

Needed for upcoming type-safety changes.

9 years agovk/x11: Remove raw casts
Chad Versace [Wed, 15 Jul 2015 22:33:12 +0000 (15:33 -0700)]
vk/x11: Remove raw casts

The raw casts in the WSI functions will break the build when the
type-safety changes arrive.

9 years agovk: Delete vkDbgSetObjectTag()
Chad Versace [Wed, 15 Jul 2015 22:24:06 +0000 (15:24 -0700)]
vk: Delete vkDbgSetObjectTag()

Because VkObject is going away.

9 years agovk/device: Remove unneeded checks for NULL
Jason Ekstrand [Wed, 15 Jul 2015 22:19:59 +0000 (15:19 -0700)]
vk/device: Remove unneeded checks for NULL

9 years agovk/device: Provide proper NULL handling in anv_device_free
Jason Ekstrand [Wed, 15 Jul 2015 22:15:54 +0000 (15:15 -0700)]
vk/device: Provide proper NULL handling in anv_device_free

The Vulkan spec does not specify that the free function provided to
CreateInstance must handle NULL properly so we do it in the wrapper.  If
this ever changes in the spec, we can delete the extra 2 lines.

9 years agovk: Stop internally calling anv_DestroyObject()
Chad Versace [Wed, 15 Jul 2015 21:01:30 +0000 (14:01 -0700)]
vk: Stop internally calling anv_DestroyObject()

Replace each anv_DestroyObject() with anv_DestroyFoo().

Let vkDestroyObject() live for a while longer for Crucible's sake.

9 years agovk: Fix vkDestroyObject dispatch for VkRenderPass
Chad Versace [Wed, 15 Jul 2015 21:33:10 +0000 (14:33 -0700)]
vk: Fix vkDestroyObject dispatch for VkRenderPass

It called anv_device_free() instead of anv_DestroyRenderPass().

9 years agovk: Fix vkCreate/DestroyRenderPass
Chad Versace [Wed, 15 Jul 2015 22:02:47 +0000 (15:02 -0700)]
vk: Fix vkCreate/DestroyRenderPass

While updating vkDestroyObject, I discovered that vkDestroyPass reliably
crashes. That hasn't been an issue yet, though, because it is never
called.

In vkCreateRenderPass:
    - Don't allocate empty attachment arrays.
    - Ensure that pointers to empty attachment arrays are NULL.
    - Store VkRenderPassCreateInfo::subpassCount as
      anv_render_pass::subpass_count.

In vkDestroyRenderPass:
    - Fix loop bounds: s/attachment_count/subpass_count/
    - Don't call anv_device_free on null pointers.

9 years agovk: Refactor create/destroy code for anv_descriptor_set
Chad Versace [Wed, 15 Jul 2015 21:14:04 +0000 (14:14 -0700)]
vk: Refactor create/destroy code for anv_descriptor_set

Define two new functions:
    anv_descriptor_set_create
    anv_descriptor_set_destroy

9 years agovk: Replace some raw casts with safe casts
Chad Versace [Wed, 15 Jul 2015 21:00:21 +0000 (14:00 -0700)]
vk: Replace some raw casts with safe casts

That is, replace some instances of
    (VkFoo) foo
with
    anv_foo_to_handle(foo)

9 years agovk: Correct anv_CreateShaderModule's prototype
Chad Versace [Wed, 15 Jul 2015 20:55:28 +0000 (13:55 -0700)]
vk: Correct anv_CreateShaderModule's prototype

s/VkShader/VkShaderModule/

:sigh: I look forward to type-safety.

9 years agovk: Define struct anv_image_view, anv_buffer_view
Chad Versace [Wed, 15 Jul 2015 19:00:27 +0000 (12:00 -0700)]
vk: Define struct anv_image_view, anv_buffer_view

Follow the pattern of anv_attachment_view. We need these structs to
implement the type-safety that arrived in the 0.132 header.

9 years agovk/meta: Fix declared type of a shader module
Chad Versace [Wed, 15 Jul 2015 18:49:37 +0000 (11:49 -0700)]
vk/meta: Fix declared type of a shader module

s/VkShader/VkShaderModule/

I'm looking forward to a type-safe vulkan.h ;)

9 years agovk: Remove struct anv_object
Chad Versace [Wed, 15 Jul 2015 18:26:31 +0000 (11:26 -0700)]
vk: Remove struct anv_object

Trivial removal because vkDestroyObject() no longer uses it.

9 years agovk/device: More documentation on surface state flushing
Jason Ekstrand [Wed, 15 Jul 2015 18:09:02 +0000 (11:09 -0700)]
vk/device: More documentation on surface state flushing

9 years agovk/device: explain why a flush is necessary
Connor Abbott [Wed, 15 Jul 2015 05:59:27 +0000 (22:59 -0700)]
vk/device: explain why a flush is necessary

Jason found this from experimenting, but the docs give a reasonable
explanation of why it's necessary.

9 years agovk: Fix indentation of anv_dynamic_cb_state
Chad Versace [Tue, 14 Jul 2015 23:04:56 +0000 (16:04 -0700)]
vk: Fix indentation of anv_dynamic_cb_state

9 years agovk: Add finishmes for VkDescriptorPool
Chad Versace [Tue, 14 Jul 2015 23:01:42 +0000 (16:01 -0700)]
vk: Add finishmes for VkDescriptorPool

VkDescriptorPool is a stub object. As a consequence, it's impossible to
free descriptor set memory.

9 years agovk: Add vulkan-138 and remove vulkan-0.132
Jason Ekstrand [Wed, 15 Jul 2015 00:54:11 +0000 (17:54 -0700)]
vk: Add vulkan-138 and remove vulkan-0.132

Now, 138 is the target and not 132.  Once object destruction is finished,
we can delete 138 as it will be identical to vulkan.h

9 years agovk/device: Add stub support for command pools
Jason Ekstrand [Wed, 15 Jul 2015 00:39:58 +0000 (17:39 -0700)]
vk/device: Add stub support for command pools

Real support isn't really that far away.  We just need a data structure
with a linked list and a few tests.

9 years agovk/vulkan.h: Add the stuff for cross-queue resource sharing
Jason Ekstrand [Wed, 15 Jul 2015 00:20:50 +0000 (17:20 -0700)]
vk/vulkan.h: Add the stuff for cross-queue resource sharing

We only have one queue, so this is currently a no-op on our implementation.

9 years agovk/vulkan.h: Add a couple of size fields for specialization constants
Jason Ekstrand [Wed, 15 Jul 2015 00:12:39 +0000 (17:12 -0700)]
vk/vulkan.h: Add a couple of size fields for specialization constants

9 years agovk/vulkan.h: Move around buffer image granularities
Jason Ekstrand [Wed, 15 Jul 2015 00:10:37 +0000 (17:10 -0700)]
vk/vulkan.h: Move around buffer image granularities

9 years agovk: Add stubs for all the sparse resource stuff
Jason Ekstrand [Wed, 15 Jul 2015 00:06:11 +0000 (17:06 -0700)]
vk: Add stubs for all the sparse resource stuff

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].