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
Jason Ekstrand
57f500324b
vk/0.170.2: Add unnormalizedCoordinates to VkSamplerCreateInfo
2015-10-05 20:17:24 -07:00
Jason Ekstrand
f7c3519aaf
vk/0.170.2: Rename VkTexAddress to VkTexAddressMode
2015-10-05 20:15:06 -07:00
Jason Ekstrand
39a19e88a3
vulkan.h: Various cosmetic changes
...
These don't affect the driver in any way.
2015-10-05 20:06:30 -07:00
Chad Versace
9357062348
vk: Merge anv_*_attachment_view into anv_attachment_view
...
Remove anv_color_attachment_view and anv_depth_stencil_view, merging
them into anv_attachment_view. This prepares for merging
VkAttachmentView into VkImageView.
2015-10-05 17:46:04 -07:00
Chad Versace
ae30535602
vk: Drop anv_attachment_view::extent
...
It's duplicated by anv_attachment_view::image_view::extent.
2015-10-05 17:46:04 -07:00
Chad Versace
f0f4dfa9cc
vk: Drop anv_surface_view
...
Push the members of struct anv_surface_view into anv_image_view and
anv_buffer_view, then remove struct anv_surface_view. Observe that
anv_surface_view::range is not needed for anv_image_view, and so was
dropped there.
This prepares for the merge of VkAttachmentView into VkImageView. Remove
the common parent of anv_buffer_view and anv_image_view (that is,
anv_surface_view) will make the merge easier.
2015-10-05 17:46:04 -07:00
Chad Versace
74193a880f
vk: Use consistent names for anv_*_view variables
...
Rename all anv_*_view variables to follow this convention:
- sview -> anv_surface_view
- bview -> anv_buffer_view
- iview -> anv_image_view
- aview -> anv_attachment_view
- cview -> anv_color_attachment_view
- ds_view -> anv_depth_stencil_attachment_view
This clarifies existing code. And it will reduce noise in the upcoming
commits that merge VkAttachmentView into VkImageView.
2015-10-05 17:46:04 -07:00
Chad Versace
ffd051830d
vk: Unionize anv_desciptor
...
For a given struct anv_descriptor, all members are NULL (in which case
the descriptor is empty) or exactly one member is non-NULL.
To make struct anv_descriptor better reflect its set of valid states,
convert the struct into a tagged union.
2015-10-05 17:46:04 -07:00
Chad Versace
63439953d7
vk: Drop dependency on no longer extant header
...
anv_meta no longer uses GLSL shaders, and the build system no longer
converts them to SPIR-V. So remove anv_meta_spirv_autogen.h from
Makefile.am.
(cherry picked from commit 2fc8122f66 )
2015-10-05 17:06:19 -07:00
Chad Versace
8bf021cf3d
vk: Return anv_image_view_info by value
...
The struct is only 2 bytes. Returning it on the stack is better than
returning a reference into the ELF .data segment.
2015-10-05 13:22:44 -07:00
Chad Versace
4ffb4549e0
vk/image: Document a Vulkan spec requirement for depthstencil
...
The Vulkan spec (git a511ba2) requires support for some combined depth
stencil formats.
2015-10-05 13:18:44 -07:00
Chad Versace
3530224063
vk: Annotate anv_cmd_state::gen7::index_type
...
It's the value of 3DSTATE_INDEX_BUFFER.IndexFormat.
2015-10-05 08:58:35 -07:00
Chad Versace
9c93aa9141
vk: Better types for VkShaderStage, VkShaderStageFlags vars
...
In most places, the variable type was the uninformative uint32_t.
2015-10-05 08:55:09 -07:00
Chad Versace
6317c3144d
vk/0.170.2: Drop VK_BUFFER_USAGE_GENERAL
2015-10-05 08:12:59 -07:00
Chad Versace
4744f60e79
vk/0.170.2: Drop enum VkBufferViewType
2015-10-05 08:12:58 -07:00
Chad Versace
7a089bd1a6
vk/0.170.2: Update VkImageSubresourceRange
...
Replace 'aspect' with 'aspectMask'.
2015-10-05 08:10:57 -07:00
Chad Versace
568654d606
vk/0.170.2: Drop VK_IMAGE_USAGE_GENERAL
2015-10-05 08:09:33 -07:00
Chad Versace
6a40af1b08
vk/0.170.2: Update VkPipelineMultisampleStateCreateInfo
2015-10-04 10:00:25 -07:00
Chad Versace
dd04be491d
vk/0.170.2: Update Vk VkPipelineDepthStencilStateCreateInfo
...
Rename member depthBoundsEnable -> depthBoundsTestEnable.
2015-10-04 09:41:46 -07:00
Chad Versace
8cb2e27c62
vk/0.170.2: Update VkRenderPassBeginInfo
...
Rename members:
attachmentCount -> clearValueCount
pAttachmentClearValues -> pClearValues
2015-10-04 09:26:25 -07:00
Chad Versace
3694518be5
vk/0.170.2: Drop VkBufferViewCreateInfo::viewType
2015-10-04 09:14:57 -07:00
Chad Versace
216d9f248d
vk: Copy current header to vulkan-0.138.2.h
...
While upgrading Mesa to the new 0.170.2 API, it's convenient to have all
three headers available in the tree:
- vulkan-0.138.2.h, the old one
- vulkan-0.170.2.h, the new one
- vulkan.h, the one in transition
2015-10-04 09:09:35 -07:00