Chad Versace
84a5bc25e3
vk: Pull in remaining 0.130 handle types
...
This pulls in the definition of VkShaderModule and VkPipelineCache,
which nowhere used yet.
2015-07-07 15:13:01 -07:00
Chad Versace
f2899b1af2
vk: Pull in #defines from 0.130 header
...
Despite not being used yet, pulling in the macros does diminish the
header diff.
2015-07-07 15:11:30 -07:00
Jason Ekstrand
962d6932fa
vk/vulkan.h: Rename (min|max)Depth to (min|max)DepthBounds
2015-07-07 12:37:54 -07:00
Jason Ekstrand
1fb859e4b2
vk/vulkan.h: Remove client-settable pointSize from DynamicRsState
2015-07-07 12:35:32 -07:00
Jason Ekstrand
245583075c
vk/vulkan.h: Remove UINT8 index buffers
2015-07-07 11:26:49 -07:00
Jason Ekstrand
0a42332904
vk/vulkan.h: Re-order the object declarations
2015-07-07 11:26:49 -07:00
Kristian Høgsberg Kristensen
a1eea996d4
vk: Emit 3DSTATE_SAMPLE_MASK
...
This was missing and was causing the driver to not work with
execlists. Presumably we get a different initial hw context with
execlists enabled, that has sample mask 0 initially.
Set this to 0xffff for now. When we add MS support, we need to take the
value from VkPipelineMsStateCreateInfo::sampleMask.
2015-07-06 23:54:12 -07:00
Kristian Høgsberg Kristensen
c325bb24b5
vk: Pull in new generated headers
...
The new headers use stdbool for enable/disable fields which
implicitly converts expressions like (flags & 8) to 0 or 1.
Also handles MBO (must-be-one) fields by setting them to one,
corrects a bspec typo (_3DPRIM_LISTSTRIP_ADJ -> LINESTRIP) and
makes a few enum values less clashy.
2015-07-06 22:12:26 -07:00
Chad Versace
23075bccb3
vk/image: Validate vkCreateImageView more
...
Exhaustively validate the function input. If it's not validated and
doesn't have an anv_finishme(), then I overlooked it.
2015-07-06 18:28:26 -07:00
Chad Versace
69e11adecc
vk/image: Add more info to VkImageViewType table
...
Convert the table from the direct mapping
VkImageViewType -> SurfaceType
into a mapping to an info struct
VkImageViewType -> struct anv_image_view_info
2015-07-06 18:28:26 -07:00
Chad Versace
b844f542e0
vk: Update VkImageViewType to 0.130.0
...
This splits 1D and 1D_ARRAY, 2D and 2D_ARRAY, CUBE and CUBE_ARRAY.
The new tokens are unused. This is just a header update.
2015-07-06 18:28:26 -07:00
Chad Versace
5b04db71ff
vk/image: Move validation for vkCreateImageView
...
Move the validation from anv_CreateImageView() and anv_image_view_init()
to anv_validate_CreateImageView(). No new validation is added.
2015-07-06 18:27:14 -07:00
Jason Ekstrand
1f1b26bceb
vk/vulkan.h: Rename VkRect to VkRect2D
2015-07-06 17:47:18 -07:00
Jason Ekstrand
63c1190e47
vk/vulkan.h: Rename count to arraySize in VkDescriptorSetLayoutBinding
2015-07-06 17:43:58 -07:00
Jason Ekstrand
d84f3155b1
vk/vulkan.h: Remove the Vk(Memory|Semaphor|Image)OpenInfo structs
...
We already deleted the functions that need them. The structs are just
dangling uselessly.
2015-07-06 17:37:13 -07:00
Jason Ekstrand
65f9ccb4e7
vk/vulkan.h: Remove VK_MEMORY_PROPERTY_PREFER_HOST_LOCAL_BIT
...
We weren't doing anything with it, so this is a no-op
2015-07-06 17:33:45 -07:00
Jason Ekstrand
68fa750f2e
vk/vulkan.h: Replace DEVICE_COHERENT_BIT with DEVICE_NON_COHERENT_BIT
2015-07-06 17:32:28 -07:00
Jason Ekstrand
d5b5bd67f6
vk/vulkan.h: Use the query result bits from revision 130
...
None of the important bits or names actually changed. It just
added/removed some no-op names.
No functional change.
2015-07-06 17:27:11 -07:00
Jason Ekstrand
d843418c2e
vk/vulkan.h: One more quick enum refactor clean-up
2015-07-06 17:26:29 -07:00
Jason Ekstrand
2b37fc28d1
vk/vulkan.h: Get rid of VERTEX_INPUT_STEP_RATE_DRAW
...
We never supported it, so no functional change.
2015-07-06 17:24:26 -07:00
Jason Ekstrand
a75967b1bb
vk/vulkan.h: Remove the CLEAR_OPTIMAL image layout
2015-07-06 17:21:19 -07:00
Jason Ekstrand
2b404e5d00
vk: Rename CPU_READ/WRITE_BIT to HOST_READ/WRITE_BIT
2015-07-06 17:18:25 -07:00
Jason Ekstrand
c57ca3f16f
vk/vulkan.h: Remove VK_IMAGE_CREATE_CLONEABLE_BIT
2015-07-06 17:14:30 -07:00
Jason Ekstrand
2de388c49c
vk: Remove SHAREABLE bits
...
They were removed from the Vulkan API and we don't really use them because
there are no multi-GPU i965 systems.
2015-07-06 17:12:51 -07:00
Jason Ekstrand
1b0c47bba6
vk/vulkan.h: Re-order the logic op enums
2015-07-06 17:08:11 -07:00
Jason Ekstrand
c7cef662d0
vk/vulkan.h: Reformat a bunch of enums to match revision 130
...
In theory, no functional change.
2015-07-06 17:06:02 -07:00
Jason Ekstrand
8c5e48f307
vk: Rename NUM_SHADER_STAGE to SHADER_STAGE_NUM
...
This is a refactor of more than just the header but it lets us finish
reformating the shader stage enum.
2015-07-06 16:43:28 -07:00
Jason Ekstrand
d9176f2ec7
vk: Reformat a bunch of enums
...
This accounts for a number differences between the generated headers and
the hand-written header. Not all reformatting is done in this commit but
it does make the headers much more diffable.
In theory, no functional change.
2015-07-06 16:41:31 -07:00
Jason Ekstrand
e95bf93e5a
vk: Pull the VkResult enum from revision 130
2015-07-06 16:15:12 -07:00
Jason Ekstrand
1b7b580756
vk: re-arrange enums to match the order in revision 130
2015-07-06 16:11:05 -07:00
Jason Ekstrand
2fb524b369
vk: Rename a parameter in CmdBindDynamicStateObject
2015-07-06 15:37:17 -07:00
Jason Ekstrand
c5ffcc9958
vk: Remove multi-device stuff
2015-07-06 15:34:55 -07:00
Jason Ekstrand
c5ab5925df
vk: Remove ClearDescriptorSets
2015-07-06 15:32:40 -07:00
Jason Ekstrand
ea5fbe1957
vk: Remove begin/end descriptor pool update
2015-07-06 15:32:27 -07:00
Jason Ekstrand
9a798fa946
vk: Remove stub for CloneImageData
2015-07-06 15:30:05 -07:00
Jason Ekstrand
78a0d23d4e
vk: Remove the stub support for memory priorities
2015-07-06 15:28:10 -07:00
Jason Ekstrand
11cf214578
vk: Remove the stub support for explicit memory references
2015-07-06 15:27:58 -07:00
Jason Ekstrand
0dc7d4ac8a
vk/vulkan.h: Reformat structs to match revision 130
...
Structs in the old version were specified as
typedef struct VkSomeThing_
{
type field; // comment
} VkSomeThing;
However, in the generated headers, you have
typedef struct {
type field;
} VkSomeThing;
This commit also removes some unneeded whitespaces.
2015-07-06 15:19:12 -07:00
Jason Ekstrand
19aabb5730
vk/vulkah.h: Re-arrange structures to match the order in 130
2015-07-06 15:09:30 -07:00
Connor Abbott
f9dbc34a18
nir/spirv: fix some bugs
2015-07-06 15:00:37 -07:00
Connor Abbott
f3ea3b6e58
nir/spirv: add support for builtins inside structures
...
We may be able to revert this depending on the outcome of bug 14190, but
for now it gets vertex shaders working with SPIR-V.
2015-07-06 15:00:37 -07:00
Connor Abbott
15047514c9
nir/spirv: fix a bug with structure creation
...
We were creating 2 extra bogus fields.
2015-07-06 15:00:37 -07:00
Connor Abbott
73351c6a18
nir/spirv: fix a bad assertion in the decoration handling
...
We should be asserting that the parent decoration didn't hand us
a member if the child decoration did, but different child decorations
may obviously have different members.
2015-07-06 15:00:37 -07:00
Connor Abbott
70d2336e7e
nir/spirv: pull out logic for getting builtin locations
...
Also add support for more builtins.
2015-07-06 15:00:37 -07:00
Connor Abbott
aca5fc6af1
nir/spirv: plumb through the type of dereferences
...
We need this to know if a deref is of a builtin.
2015-07-06 15:00:37 -07:00
Connor Abbott
66375e2852
nir/spirv: handle structure member builtin decorations
2015-07-06 15:00:37 -07:00
Connor Abbott
23c179be75
nir/spirv: add a vtn_type struct
...
This will handle decorations that aren't in the glsl_type.
2015-07-06 15:00:37 -07:00
Connor Abbott
f9bb95ad4a
nir/spirv: move 'type' into the union
...
Since SSA values now have their own types, it's more convenient to make
'type' only used when we want to look up an actual SPIR-V type, since
we're going to change its type soon to support various decorations that
are handled at the SPIR-V -> NIR level.
2015-07-06 15:00:37 -07:00
Jason Ekstrand
d5dccc1e7a
vk: Move CreateFramebuffer and CreateRenderPass higher in the header
...
This matches where they are in the 130 header.
2015-07-06 14:41:43 -07:00
Jason Ekstrand
4a42f45514
vk: Remove atomic counters stubs
2015-07-06 14:38:45 -07:00