diff options
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/anv_device.c | 2 | ||||
-rw-r--r-- | src/vulkan/anv_dump.c | 2 | ||||
-rw-r--r-- | src/vulkan/anv_formats.c | 14 | ||||
-rw-r--r-- | src/vulkan/anv_image.c | 4 | ||||
-rw-r--r-- | src/vulkan/anv_pipeline.c | 22 | ||||
-rw-r--r-- | src/vulkan/anv_wsi_wayland.c | 2 | ||||
-rw-r--r-- | src/vulkan/anv_wsi_x11.c | 2 | ||||
-rw-r--r-- | src/vulkan/gen7_pipeline.c | 14 | ||||
-rw-r--r-- | src/vulkan/genX_cmd_buffer.c | 4 |
9 files changed, 26 insertions, 40 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index aca082ac1b5..ebb86c09001 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -533,7 +533,7 @@ VkResult anv_GetPhysicalDeviceQueueFamilyProperties( *pQueueFamilyProperties = (VkQueueFamilyProperties) { .queueFlags = VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | - VK_QUEUE_DMA_BIT, + VK_QUEUE_TRANSFER_BIT, .queueCount = 1, .supportsTimestamps = true, }; diff --git a/src/vulkan/anv_dump.c b/src/vulkan/anv_dump.c index 3878941896c..3634ae68732 100644 --- a/src/vulkan/anv_dump.c +++ b/src/vulkan/anv_dump.c @@ -52,7 +52,7 @@ anv_dump_image_to_ppm(struct anv_device *device, .arraySize = 1, .samples = 1, .tiling = VK_IMAGE_TILING_LINEAR, - .usage = VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT, + .usage = VK_IMAGE_USAGE_TRANSFER_DST_BIT, .flags = 0, }, ©_image); assert(result == VK_SUCCESS); diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c index f1c8da00b3c..8d5eae4c12e 100644 --- a/src/vulkan/anv_formats.c +++ b/src/vulkan/anv_formats.c @@ -260,10 +260,10 @@ anv_physical_device_get_format_properties(struct anv_physical_device *physical_d tiled |= VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT; if (physical_device->info->gen >= 8) { tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT; - tiled |= VK_FORMAT_FEATURE_BLIT_SOURCE_BIT; + tiled |= VK_FORMAT_FEATURE_BLIT_SRC_BIT; } if (format->depth_format) { - tiled |= VK_FORMAT_FEATURE_BLIT_DESTINATION_BIT; + tiled |= VK_FORMAT_FEATURE_BLIT_DST_BIT; } } else { /* The surface_formats table only contains color formats */ @@ -273,13 +273,13 @@ anv_physical_device_get_format_properties(struct anv_physical_device *physical_d if (info->sampling <= gen) { flags = VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT | - VK_FORMAT_FEATURE_BLIT_SOURCE_BIT; + VK_FORMAT_FEATURE_BLIT_SRC_BIT; linear |= flags; tiled |= flags; } if (info->render_target <= gen) { flags = VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT | - VK_FORMAT_FEATURE_BLIT_DESTINATION_BIT; + VK_FORMAT_FEATURE_BLIT_DST_BIT; linear |= flags; tiled |= flags; } @@ -387,19 +387,19 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties( break; } - if (usage & VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT) { + if (usage & VK_IMAGE_USAGE_TRANSFER_SRC_BIT) { /* Meta implements transfers by sampling from the source image. */ if (!(format_feature_flags & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT)) { goto unsupported; } } - if (usage & VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT) { + if (usage & VK_IMAGE_USAGE_TRANSFER_DST_BIT) { if (format->has_stencil) { /* Not yet implemented because copying to a W-tiled surface is crazy * hard. */ - anv_finishme("support VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT for " + anv_finishme("support VK_IMAGE_USAGE_TRANSFER_DST_BIT for " "stencil format"); goto unsupported; } diff --git a/src/vulkan/anv_image.c b/src/vulkan/anv_image.c index d344fcc2bea..973e8bd609a 100644 --- a/src/vulkan/anv_image.c +++ b/src/vulkan/anv_image.c @@ -274,12 +274,12 @@ anv_image_get_full_usage(const VkImageCreateInfo *info) { VkImageUsageFlags usage = info->usage; - if (usage & VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT) { + if (usage & VK_IMAGE_USAGE_TRANSFER_SRC_BIT) { /* Meta will transfer from the image by binding it as a texture. */ usage |= VK_IMAGE_USAGE_SAMPLED_BIT; } - if (usage & VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT) { + if (usage & VK_IMAGE_USAGE_TRANSFER_DST_BIT) { /* Meta will transfer to the image by binding it as a color attachment, * even if the image format is not a color format. */ diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c index a0606adaea6..a61f0c16757 100644 --- a/src/vulkan/anv_pipeline.c +++ b/src/vulkan/anv_pipeline.c @@ -239,17 +239,17 @@ void anv_DestroyPipeline( } static const uint32_t vk_to_gen_primitive_type[] = { - [VK_PRIMITIVE_TOPOLOGY_POINT_LIST] = _3DPRIM_POINTLIST, - [VK_PRIMITIVE_TOPOLOGY_LINE_LIST] = _3DPRIM_LINELIST, - [VK_PRIMITIVE_TOPOLOGY_LINE_STRIP] = _3DPRIM_LINESTRIP, - [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST] = _3DPRIM_TRILIST, - [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP] = _3DPRIM_TRISTRIP, - [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN] = _3DPRIM_TRIFAN, - [VK_PRIMITIVE_TOPOLOGY_LINE_LIST_ADJ] = _3DPRIM_LINELIST_ADJ, - [VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_ADJ] = _3DPRIM_LINESTRIP_ADJ, - [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_ADJ] = _3DPRIM_TRILIST_ADJ, - [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_ADJ] = _3DPRIM_TRISTRIP_ADJ, -/* [VK_PRIMITIVE_TOPOLOGY_PATCH] = _3DPRIM_PATCHLIST_1 */ + [VK_PRIMITIVE_TOPOLOGY_POINT_LIST] = _3DPRIM_POINTLIST, + [VK_PRIMITIVE_TOPOLOGY_LINE_LIST] = _3DPRIM_LINELIST, + [VK_PRIMITIVE_TOPOLOGY_LINE_STRIP] = _3DPRIM_LINESTRIP, + [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST] = _3DPRIM_TRILIST, + [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP] = _3DPRIM_TRISTRIP, + [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN] = _3DPRIM_TRIFAN, + [VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY] = _3DPRIM_LINELIST_ADJ, + [VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY] = _3DPRIM_LINESTRIP_ADJ, + [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY] = _3DPRIM_TRILIST_ADJ, + [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY] = _3DPRIM_TRISTRIP_ADJ, +/* [VK_PRIMITIVE_TOPOLOGY_PATCH_LIST] = _3DPRIM_PATCHLIST_1 */ }; static void diff --git a/src/vulkan/anv_wsi_wayland.c b/src/vulkan/anv_wsi_wayland.c index f32fda20c09..d226c8d06c1 100644 --- a/src/vulkan/anv_wsi_wayland.c +++ b/src/vulkan/anv_wsi_wayland.c @@ -330,7 +330,7 @@ wsi_wl_get_surface_properties(struct anv_wsi_implementation *impl, props->currentTransform = VK_SURFACE_TRANSFORM_NONE_KHR; props->maxImageArraySize = 1; props->supportedUsageFlags = - VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT | + VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; return VK_SUCCESS; diff --git a/src/vulkan/anv_wsi_x11.c b/src/vulkan/anv_wsi_x11.c index 9a5e41d025a..4beffce3ce5 100644 --- a/src/vulkan/anv_wsi_x11.c +++ b/src/vulkan/anv_wsi_x11.c @@ -82,7 +82,7 @@ x11_get_surface_properties(struct anv_wsi_implementation *impl, props->currentTransform = VK_SURFACE_TRANSFORM_NONE_KHR; props->maxImageArraySize = 1; props->supportedUsageFlags = - VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT | + VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; return VK_SUCCESS; diff --git a/src/vulkan/gen7_pipeline.c b/src/vulkan/gen7_pipeline.c index 7d44c72b1a2..2d26a0380c5 100644 --- a/src/vulkan/gen7_pipeline.c +++ b/src/vulkan/gen7_pipeline.c @@ -316,20 +316,6 @@ gen7_emit_cb_state(struct anv_pipeline *pipeline, .BlendStatePointer = pipeline->blend_state.offset); } -static const uint32_t vk_to_gen_primitive_type[] = { - [VK_PRIMITIVE_TOPOLOGY_POINT_LIST] = _3DPRIM_POINTLIST, - [VK_PRIMITIVE_TOPOLOGY_LINE_LIST] = _3DPRIM_LINELIST, - [VK_PRIMITIVE_TOPOLOGY_LINE_STRIP] = _3DPRIM_LINESTRIP, - [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST] = _3DPRIM_TRILIST, - [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP] = _3DPRIM_TRISTRIP, - [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN] = _3DPRIM_TRIFAN, - [VK_PRIMITIVE_TOPOLOGY_LINE_LIST_ADJ] = _3DPRIM_LINELIST_ADJ, - [VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_ADJ] = _3DPRIM_LINESTRIP_ADJ, - [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_ADJ] = _3DPRIM_TRILIST_ADJ, - [VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_ADJ] = _3DPRIM_TRISTRIP_ADJ, - [VK_PRIMITIVE_TOPOLOGY_PATCH] = _3DPRIM_PATCHLIST_1 -}; - static inline uint32_t scratch_space(const struct brw_stage_prog_data *prog_data) { diff --git a/src/vulkan/genX_cmd_buffer.c b/src/vulkan/genX_cmd_buffer.c index cba0515161a..31dcdcd8dd5 100644 --- a/src/vulkan/genX_cmd_buffer.c +++ b/src/vulkan/genX_cmd_buffer.c @@ -164,8 +164,8 @@ void genX(CmdPipelineBarrier)( VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT | VK_PIPELINE_STAGE_VERTEX_INPUT_BIT | VK_PIPELINE_STAGE_VERTEX_SHADER_BIT | - VK_PIPELINE_STAGE_TESS_CONTROL_SHADER_BIT | - VK_PIPELINE_STAGE_TESS_EVALUATION_SHADER_BIT | + VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT | + VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT | VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT | VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT | VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | |