aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorIván Briano <[email protected]>2019-09-16 15:41:45 -0700
committerJason Ekstrand <[email protected]>2020-01-15 08:34:57 -0600
commit4ef3f7e3d37ece7b4339870282cb52c5e334a68d (patch)
treed9461e1dfe9e0c4310c0980674269e8e970b0776 /src/intel
parentc616627f63d19c9a4dc8462e880079ebcb76c5e4 (diff)
anv: Enable Vulkan 1.2 support
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_device.c10
-rw-r--r--src/intel/vulkan/anv_extensions.py1
-rw-r--r--src/intel/vulkan/anv_pass.c4
-rw-r--r--src/intel/vulkan/anv_queue.c6
-rw-r--r--src/intel/vulkan/genX_cmd_buffer.c10
-rw-r--r--src/intel/vulkan/genX_query.c2
-rw-r--r--src/intel/vulkan/genX_state.c6
7 files changed, 20 insertions, 19 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 76b24e9ff26..26c8b87ab04 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1614,8 +1614,8 @@ anv_get_physical_device_properties_1_2(struct anv_physical_device *pdevice,
"Mesa " PACKAGE_VERSION MESA_GIT_SHA1);
p->conformanceVersion = (VkConformanceVersionKHR) {
.major = 1,
- .minor = 1,
- .subminor = 2,
+ .minor = 2,
+ .subminor = 0,
.patch = 0,
};
@@ -4189,7 +4189,7 @@ void anv_DestroyBuffer(
vk_free2(&device->alloc, pAllocator, buffer);
}
-VkDeviceAddress anv_GetBufferDeviceAddressKHR(
+VkDeviceAddress anv_GetBufferDeviceAddress(
VkDevice device,
const VkBufferDeviceAddressInfoKHR* pInfo)
{
@@ -4201,14 +4201,14 @@ VkDeviceAddress anv_GetBufferDeviceAddressKHR(
return anv_address_physical(buffer->address);
}
-uint64_t anv_GetBufferOpaqueCaptureAddressKHR(
+uint64_t anv_GetBufferOpaqueCaptureAddress(
VkDevice device,
const VkBufferDeviceAddressInfoKHR* pInfo)
{
return 0;
}
-uint64_t anv_GetDeviceMemoryOpaqueCaptureAddressKHR(
+uint64_t anv_GetDeviceMemoryOpaqueCaptureAddress(
VkDevice device,
const VkDeviceMemoryOpaqueCaptureAddressInfoKHR* pInfo)
{
diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py
index 6b721ab011c..99076f4d16e 100644
--- a/src/intel/vulkan/anv_extensions.py
+++ b/src/intel/vulkan/anv_extensions.py
@@ -54,6 +54,7 @@ API_PATCH_VERSION = 131
API_VERSIONS = [
ApiVersion('1.0', True),
ApiVersion('1.1', True),
+ ApiVersion('1.2', True),
]
MAX_API_VERSION = None # Computed later
diff --git a/src/intel/vulkan/anv_pass.c b/src/intel/vulkan/anv_pass.c
index a43af07317f..69a66478c56 100644
--- a/src/intel/vulkan/anv_pass.c
+++ b/src/intel/vulkan/anv_pass.c
@@ -339,7 +339,7 @@ VkResult anv_CreateRenderPass(
for (uint32_t i = 0; i < pCreateInfo->dependencyCount; i++) {
/* Convert to a Dependency2KHR */
- VkSubpassDependency2KHR dep2 = {
+ VkSubpassDependency2 dep2 = {
.srcSubpass = pCreateInfo->pDependencies[i].srcSubpass,
.dstSubpass = pCreateInfo->pDependencies[i].dstSubpass,
.srcStageMask = pCreateInfo->pDependencies[i].srcStageMask,
@@ -392,7 +392,7 @@ num_subpass_attachments2(const VkSubpassDescription2KHR *desc)
(ds_resolve && ds_resolve->pDepthStencilResolveAttachment);
}
-VkResult anv_CreateRenderPass2KHR(
+VkResult anv_CreateRenderPass2(
VkDevice _device,
const VkRenderPassCreateInfo2KHR* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c
index 40f1dc7c5fd..8060ead5706 100644
--- a/src/intel/vulkan/anv_queue.c
+++ b/src/intel/vulkan/anv_queue.c
@@ -2145,7 +2145,7 @@ VkResult anv_GetSemaphoreFdKHR(
return VK_SUCCESS;
}
-VkResult anv_GetSemaphoreCounterValueKHR(
+VkResult anv_GetSemaphoreCounterValue(
VkDevice _device,
VkSemaphore _semaphore,
uint64_t* pValue)
@@ -2277,7 +2277,7 @@ anv_timelines_wait(struct anv_device *device,
}
}
-VkResult anv_WaitSemaphoresKHR(
+VkResult anv_WaitSemaphores(
VkDevice _device,
const VkSemaphoreWaitInfoKHR* pWaitInfo,
uint64_t timeout)
@@ -2329,7 +2329,7 @@ VkResult anv_WaitSemaphoresKHR(
return result;
}
-VkResult anv_SignalSemaphoreKHR(
+VkResult anv_SignalSemaphore(
VkDevice _device,
const VkSemaphoreSignalInfoKHR* pSignalInfo)
{
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index a573a79fe27..fa3476095a5 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -3494,7 +3494,7 @@ emit_draw_count_predicate_with_conditional_render(
}
#endif
-void genX(CmdDrawIndirectCountKHR)(
+void genX(CmdDrawIndirectCount)(
VkCommandBuffer commandBuffer,
VkBuffer _buffer,
VkDeviceSize offset,
@@ -3560,7 +3560,7 @@ void genX(CmdDrawIndirectCountKHR)(
}
}
-void genX(CmdDrawIndexedIndirectCountKHR)(
+void genX(CmdDrawIndexedIndirectCount)(
VkCommandBuffer commandBuffer,
VkBuffer _buffer,
VkDeviceSize offset,
@@ -5249,7 +5249,7 @@ void genX(CmdBeginRenderPass)(
cmd_buffer_begin_subpass(cmd_buffer, 0);
}
-void genX(CmdBeginRenderPass2KHR)(
+void genX(CmdBeginRenderPass2)(
VkCommandBuffer commandBuffer,
const VkRenderPassBeginInfo* pRenderPassBeginInfo,
const VkSubpassBeginInfoKHR* pSubpassBeginInfo)
@@ -5274,7 +5274,7 @@ void genX(CmdNextSubpass)(
cmd_buffer_begin_subpass(cmd_buffer, prev_subpass + 1);
}
-void genX(CmdNextSubpass2KHR)(
+void genX(CmdNextSubpass2)(
VkCommandBuffer commandBuffer,
const VkSubpassBeginInfoKHR* pSubpassBeginInfo,
const VkSubpassEndInfoKHR* pSubpassEndInfo)
@@ -5306,7 +5306,7 @@ void genX(CmdEndRenderPass)(
cmd_buffer->state.subpass = NULL;
}
-void genX(CmdEndRenderPass2KHR)(
+void genX(CmdEndRenderPass2)(
VkCommandBuffer commandBuffer,
const VkSubpassEndInfoKHR* pSubpassEndInfo)
{
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c
index aa02db9ab05..e7b6bc5bdab 100644
--- a/src/intel/vulkan/genX_query.c
+++ b/src/intel/vulkan/genX_query.c
@@ -544,7 +544,7 @@ void genX(CmdResetQueryPool)(
}
}
-void genX(ResetQueryPoolEXT)(
+void genX(ResetQueryPool)(
VkDevice _device,
VkQueryPool queryPool,
uint32_t firstQuery,
diff --git a/src/intel/vulkan/genX_state.c b/src/intel/vulkan/genX_state.c
index d96764919bb..83fd95cccb2 100644
--- a/src/intel/vulkan/genX_state.c
+++ b/src/intel/vulkan/genX_state.c
@@ -446,9 +446,9 @@ VkResult genX(CreateSampler)(
break;
}
#if GEN_GEN >= 9
- case VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO_EXT: {
- VkSamplerReductionModeCreateInfoEXT *sampler_reduction =
- (VkSamplerReductionModeCreateInfoEXT *) ext;
+ case VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO: {
+ VkSamplerReductionModeCreateInfo *sampler_reduction =
+ (VkSamplerReductionModeCreateInfo *) ext;
sampler_reduction_mode =
vk_to_gen_sampler_reduction_mode[sampler_reduction->reductionMode];
enable_sampler_reduction = true;