Chad Versace
0ca3c8480d
vk/0.170.2: Update remaining enums
2015-10-07 11:39:49 -07:00
Chad Versace
f9c948ed00
vk/0.170.2: Update VkResult
...
Version 0.170.2 removes most of the error enums. In many cases, I had to
replace an error with a less accurate (or even incorrect) one.
In other cases, the error path is replaced with an assertion.
2015-10-07 11:36:51 -07:00
Chad Versace
8dee32e71f
vk/0.170: Update VkDescriptorInfo
...
Ignore the new bufferInfo field with a anv_finishme.
2015-10-07 10:58:55 -07:00
Chad Versace
92e7bd3610
vk/0.170.2: Update vkCreateDescriptorPool
...
Nothing to do. In Mesa the pool is a stub.
2015-10-07 10:47:55 -07:00
Chad Versace
a3bc07c23b
vk/0.170.2: Update VkAttachmentDescription
2015-10-07 10:44:40 -07:00
Chad Versace
82259f88dd
vk/0.170.2: Update VkImageViewCreateInfo
2015-10-07 10:43:44 -07:00
Chad Versace
f4295b3cca
vk/0.170.2: Update VkImageCreateInfo
2015-10-07 10:43:17 -07:00
Chad Versace
d48e71ce55
vk/0.170.2: Update VkPhysicalDeviceProperties
2015-10-07 10:36:46 -07:00
Chad Versace
81e1dcc42c
vk/0.170.2: Update VkImageFormatProperties
2015-10-07 10:28:30 -07:00
Chad Versace
98c2bb6917
vk/0.170.2: Update VkFormatProperties
2015-10-07 10:15:59 -07:00
Chad Versace
545f5cc6e1
vk/0.170.2: Update VkPhysicalDeviceFeatures
2015-10-07 10:09:39 -07:00
Chad Versace
033a37f591
vk/0.170.2: Update VkPhysicalDeviceLimits
2015-10-07 10:09:31 -07:00
Jason Ekstrand
982466aeff
anv/device: Remove some #ifdef'd out code
...
This was a left-over from the dynamic state update.
2015-10-07 09:45:49 -07:00
Jason Ekstrand
010c6efd65
vk/0.170.2: Make vkUpdateDescriptorSets return void
2015-10-07 09:44:53 -07:00
Jason Ekstrand
1a52bc3039
anv/pipeline: Add support for dynamic state in pipelines
2015-10-07 09:40:49 -07:00
Jason Ekstrand
daf68a9465
vk/0.170.2: Switch to the new dynamic state model
2015-10-07 09:40:49 -07:00
Jason Ekstrand
55fcca306b
anv: Add a dynamic state data structure and basic helpers
2015-10-07 09:36:27 -07:00
Jason Ekstrand
941a105954
anv/private: Add a typed_memcpy macro
...
This is amazingly helpful when copying arrays of things around.
2015-10-07 09:36:27 -07:00
Chad Versace
b1c024a932
vk/meta: Fix -Wstrict-prototypes
...
In C, functions with no arguments require a void argument.
build_nir_clear_fragment_shader() lacked that.
Fixes:
anv_meta.c:70:1: warning: function declaration isn't a prototype
[-Wstrict-prototypes]
2015-10-07 09:10:25 -07:00
Chad Versace
6dea1a9ba1
vk/0.170.2: Merge VkAttachmentView into VkImageView
2015-10-07 09:10:25 -07:00
Chad Versace
03dd72279f
vk/image: Fix retrieval of anv_surface for depthstencil aspect
...
If anv_image_get_surface_for_aspect_mask() is given a combined
depthstencil aspect mask, and the image has a stencil surface but no
depth surface, then return the stencil surface.
Hacks on hacks.
2015-10-07 09:10:25 -07:00
Chad Versace
85ff3cfde3
vk: Drop -Wextra
...
Eliminates lots of warnings due to anv_meta.c's inclusion of nir.h.
I like the extra warnings, and they should probably get fixed. However,
git-grep reveals that no other Mesa directory uses -Wextra. Building
Vulkan produces a lot of compiler warnings from core Mesa headers that
no other Mesa developer sees, and hence no other Mesa developer will
fix.
2015-10-07 07:28:46 -07:00
Chad Versace
24de3d49ea
vk: Embed two surface states in anv_image_view
...
This prepares for merging VkAttachmentView into VkImageView. The two
surface states are:
anv_image_view::color_rt_surface_state:
RENDER_SURFACE_STATE when using image as a color render target.
anv_image_view::nonrt_surface_state;
RENDER_SURFACE_STATE when using image as a non render target.
No Crucible regressions.
2015-10-06 21:22:18 -07:00
Chad Versace
37bf120930
vk/pipeline: Emit MSAA finishme only if samples > 1
...
If samples == 1, then there's nothing for Mesa to do, and the finishme
message is only noise.
2015-10-06 21:22:18 -07:00
Chad Versace
3fc2b1f325
vk: Remove stale finishme for stencil image views
...
They don't work completely. But they work well enough to satisfy
Crucible.
2015-10-06 21:22:18 -07:00
Chad Versace
44143a1f46
vk: Add anv_image::usage
...
It's a copy of VkImageCreateInfo::usage. Will be used for the
VkAttachmentView/VkImageView merge.
2015-10-06 21:22:18 -07:00
Chad Versace
cf603714cb
vk/meta: Fix usage flags for image-wrapped-buffers
...
In make_image_for_buffer(), use VK_IMAGE_USAGE_SAMPLED_BIT when
transferring from the buffer and use VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT
when transferring to the buffer.
2015-10-06 21:22:18 -07:00
Chad Versace
d00718104f
vk/image: Remove stale anv_asserts for depthstencil attachments
...
We don't fully handle mipmapped, array depthstencil attachments. But we
handle the well enough for Crucible's miptree tests.
2015-10-06 21:22:18 -07:00
Jason Ekstrand
c272bb58f5
nir/spirv: Better texture handling
2015-10-06 15:10:45 -07:00
Jason Ekstrand
ccea9cc332
nir/spirv: Update to SPIR-V Rev. 32
2015-10-06 14:52:35 -07:00
Jason Ekstrand
89eebd889c
vk/0.170.2: Fairly trivial enum shuffling
2015-10-06 14:08:08 -07:00
Jason Ekstrand
1e4263b7d2
vk/0.170.2: s/baseArraySlice/baseArrayLayer/
2015-10-06 14:08:08 -07:00
Chad Versace
d4446a7e58
vk: Merge anv_attachment_view into anv_image_view
...
This prepares for merging VkAttachmentView into VkImageView.
2015-10-06 12:13:03 -07:00
Chad Versace
6b5ce5daf5
vk: Update comments for anv_image_view
...
- Document the extent member. It's the extent of the view's base level.
- s/VkAttachmentView/VkImageView/
2015-10-06 12:12:52 -07:00
Jason Ekstrand
19018c9f13
vk/0.170.2: Add a stage field to ShaderCreateInfo
2015-10-06 10:20:10 -07:00
Jason Ekstrand
cc389b1482
vk/0.170.2: Rename cs to stage in ComputePipelineCreateInfo
2015-10-06 10:11:50 -07:00
Jason Ekstrand
588d40e97a
vk/0.170.2: Use ImageSubresourceCopy in ImageResolve
2015-10-06 10:09:47 -07:00
Jason Ekstrand
bd4cde708a
vk/0.170.2: Rename fields in VkClearColorValue
2015-10-06 10:07:47 -07:00
Jason Ekstrand
81c7fa8772
vk/0.170.2: Rework blits to use ImageSubresourceCopy
2015-10-06 10:04:04 -07:00
Jason Ekstrand
ba2254aa79
vulkan.h: Move stuff around
...
This has no functional change but substantially decreases the diff with the
0.170.2 header.
2015-10-06 09:50:04 -07:00
Jason Ekstrand
d1908d2c33
vk/0.170.2: Rework parameters to CmdClearDepthStencil functions
2015-10-06 09:40:39 -07:00
Jason Ekstrand
02a9be31d6
vk/0.170.2: Add the flags parameter to GetPhysicalDeviceImageFormatProperties
2015-10-06 09:37:21 -07:00
Jason Ekstrand
a145acd812
vk/0.170.2: Remove the pCount parameter from AllocDescriptorSets
2015-10-06 09:32:01 -07:00
Jason Ekstrand
8ba684cbad
vk/0.170.2: Rename extension and layer query functions
2015-10-06 09:25:03 -07:00
Jason Ekstrand
a6eba403e2
vk/0.170.2: Update to the new queue family properties query
2015-10-05 21:17:12 -07:00
Jason Ekstrand
65964cd49b
vk/0.170.2: Re-arrange parameters of vkCmdDraw[Indexed]
2015-10-05 21:10:20 -07:00
Jason Ekstrand
05a26a60c8
vk/0.170.2: Make destructors return void
2015-10-05 20:50:51 -07:00
Jason Ekstrand
460676122f
vk/0.170.2: Rename VkClearValue.ds to depthStencil
2015-10-05 20:35:08 -07:00
Jason Ekstrand
8e1ef639b6
vk/0.170.2: Add the subpass field to VkCmdBufferBeginInfo
2015-10-05 20:30:53 -07:00
Jason Ekstrand
757166592e
vk/0.170.2: Rename pointer parameters of VkSubpassDescription
2015-10-05 20:26:21 -07:00