Jason Ekstrand
335e88c8ee
vk/vulkan.h: Add the pEnabledFeatures field to DeviceCreateInfo
2015-07-09 16:21:31 -07:00
Jason Ekstrand
34871cf7f3
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.
2015-07-09 16:19:54 -07:00
Jason Ekstrand
8c2c37fae7
vk: Remove the old GetPhysicalDeviceInfo call
2015-07-09 16:14:37 -07:00
Jason Ekstrand
1f907011a3
vk: Add the new PhysicalDeviceQueue queries
2015-07-09 16:14:37 -07:00
Jason Ekstrand
977a469bce
vk: Support GetPhysicalDeviceProperties
2015-07-09 16:14:37 -07:00
Jason Ekstrand
65e0b304b6
vk: Add support for GetPhysicalDeviceLimits
2015-07-09 16:14:37 -07:00
Jason Ekstrand
f6d51f3fd3
vk: Add GetPhysicalDeviceFeatures
2015-07-09 16:14:37 -07:00
Chad Versace
5b75dffd04
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.
2015-07-09 15:53:21 -07:00
Chad Versace
fa915b661d
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().
2015-07-09 15:41:17 -07:00
Chad Versace
c34d314db3
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.
2015-07-09 15:27:26 -07:00
Connor Abbott
cff06bbe7d
vk/compiler: create an empty parameters list
...
Prevents problems when initializing the sanity_param_count.
2015-07-09 14:29:23 -04:00
Connor Abbott
3318a86d12
nir/spirv: fix wrong writemask for ALU operations
2015-07-09 14:28:39 -04:00
Connor Abbott
b8fedc19f5
nir/spirv: fix memory context for builtin variable
...
Fixes valgrind errors with func.depthstencil.basic.
2015-07-08 22:03:30 -04:00
Connor Abbott
e4292ac039
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.
2015-07-08 22:03:30 -04:00
Connor Abbott
997831868f
vk/compiler: create the right kind of program struct
...
This fixes Valgrind errors and gets all the tests to pass with
--use-spir-v.
2015-07-08 22:03:30 -04:00
Connor Abbott
a841e2c747
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.
2015-07-08 22:03:30 -04:00
Jason Ekstrand
8640dc12dc
vk/vulkan.h: Copy the VkStructureType enum from version 130
...
We now have the exact same structs which require pType.
2015-07-08 17:45:52 -07:00
Jason Ekstrand
5a4ebf6bc1
vk: Move to the new pipeline creation API's
2015-07-08 17:30:18 -07:00
Chad Versace
4fcb32a17d
vk/0.130: Remove VkImageViewCreateInfo::minLod
...
It's now set solely through VkSampler.
2015-07-08 14:48:22 -07:00
Jason Ekstrand
367b9ba78f
vk/vulkan.h: Move renderPassContinue from GraphicsBeginInfo to BeginInfo
2015-07-08 14:37:30 -07:00
Jason Ekstrand
d29ec8fa36
vk/vulkan.h: Update to the new UpdateDescriptorSets api
2015-07-08 14:24:56 -07:00
Jason Ekstrand
c8577b5f52
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.
2015-07-08 14:24:14 -07:00
Chad Versace
ccb27a002c
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.
2015-07-08 12:53:49 -07:00
Chad Versace
8985dd15a1
vk/0.130: Remove VkDescriptorUpdateMode
...
Nowhere used.
2015-07-08 12:51:46 -07:00
Chad Versace
e02dfa309a
vk/0.130: Remove VK_DEVICE_CREATE_MULTI_DEVICE_IQ_MATCH_BIT
2015-07-08 12:49:48 -07:00
Chad Versace
e9034ed875
vk/0.130: Update vkCmdBlitImage signature
...
Add VkTexFilter param. Ignored for now.
2015-07-08 12:47:48 -07:00
Jason Ekstrand
aae45ab583
vk/vulkan.h: Add packing parameters to BufferImageCopy
2015-07-08 11:51:34 -07:00
Chad Versace
b4ef7f354b
vk/0.130: Remove msaa members of VkDepthStencilViewCreateInfo
2015-07-08 11:50:51 -07:00
Jason Ekstrand
522ab835d6
vk/vulkan.h: Move over to the new border color enums
2015-07-08 11:44:52 -07:00
Jason Ekstrand
7598329774
vk/vulkan.h: Move VkFormatProperties
2015-07-08 11:16:45 -07:00
Jason Ekstrand
52940e8fcf
vk/vulkan.h: Add RenderPassBeginContents
2015-07-08 10:57:13 -07:00
Jason Ekstrand
e19d6be2a9
vk/vulkan.h: Add command buffer levels
2015-07-08 10:53:32 -07:00
Jason Ekstrand
c84f2d3b8c
vk/vulkan.h: Import the VkPipeEvent enum from 130
...
Now, VkPipeEventFlags is back in sync with VkPipeEvent
2015-07-08 10:49:46 -07:00
Jason Ekstrand
b20cc72603
vk/vulkan.h: Remove VkFormatInfoType
2015-07-08 10:39:31 -07:00
Jason Ekstrand
8e05bbeee9
vk/vulkan.h: Update extension handling to rev 130
2015-07-08 10:38:07 -07:00
Jason Ekstrand
cc29a5f4be
vk/vulkan.h: Move format quering to the physical device
2015-07-08 09:34:47 -07:00
Jason Ekstrand
719fa8ac74
vk/vulkan.h: Remove some peer opening structs and STRUCTURE_TYPE enums
2015-07-08 09:25:13 -07:00
Jason Ekstrand
fc6dcc6227
vk: Add a copy of the v90 header.
2015-07-08 09:23:29 -07:00
Jason Ekstrand
12119282e6
vk/vulkan.h: Remove an unneeded comment
2015-07-08 09:18:09 -07:00
Jason Ekstrand
3c65a1ac14
vk/vulkan.h: Remove the MemoryRange stubs and add sparse stubs
2015-07-08 09:16:48 -07:00
Jason Ekstrand
bb6567f5d1
vk/vulkan.h: Switch BindObjectMemory to a device function and remove the index
2015-07-08 09:04:16 -07:00
Jason Ekstrand
e7acdda184
vk/vulkan.h: Switch to the split ProcAddr functions in 130
2015-07-07 18:51:53 -07:00
Jason Ekstrand
db24afee2f
vk/vulkan.h: Switch from GetImageSubresourceInfo to GetImageSubresourceLayout
2015-07-07 18:20:18 -07:00
Jason Ekstrand
ef8980e256
vk/vulkan.h: Switch from GetObjectInfo to GetMemoryRequirements
2015-07-07 18:16:42 -07:00
Jason Ekstrand
d9c2caea6a
vk: Update memory flushing functions to 130
...
This involves updating the prototype for FlushMappedMemory, adding
InvalidateMappedMemoryRanges, and removing PinSystemMemory.
2015-07-07 17:22:31 -07:00
Jason Ekstrand
d5349b1b18
vk/vulkan.h: Constify the pFences parameter to ResetFences
2015-07-07 17:18:00 -07:00
Jason Ekstrand
6aa1b89457
vk/vulkan.h: Move the definitions of Create(Framebuffer|RenderPass)
...
This better matches the 130 header.
2015-07-07 17:13:10 -07:00
Jason Ekstrand
0ff06540ae
vk: Implement the GetRenderAreaGranularity function
...
At the moment, we're just going to scissor clears so a granularity of 1x1
is all we need.
2015-07-07 17:11:37 -07:00
Jason Ekstrand
435b062b26
vk/vulkan.h: Add a PipelineLayout parameter to BindDescriptorSets
2015-07-07 17:06:10 -07:00
Jason Ekstrand
518ca9e254
vk/vulkan.h: Add a compareEnable parameter to SamplerCreateInfo
...
Our hardware doesn't actually need this, so adding it is a no-op.
2015-07-07 16:49:04 -07:00