diff options
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/anv_dump.c | 2 | ||||
-rw-r--r-- | src/vulkan/anv_meta.c | 14 | ||||
-rw-r--r-- | src/vulkan/gen7_state.c | 22 | ||||
-rw-r--r-- | src/vulkan/gen8_state.c | 22 |
4 files changed, 30 insertions, 30 deletions
diff --git a/src/vulkan/anv_dump.c b/src/vulkan/anv_dump.c index 52b9ca17b43..6192361e491 100644 --- a/src/vulkan/anv_dump.c +++ b/src/vulkan/anv_dump.c @@ -126,7 +126,7 @@ anv_dump_image_to_ppm(struct anv_device *device, extent.height, 1 }, - }, VK_TEX_FILTER_NEAREST); + }, VK_FILTER_NEAREST); ANV_CALL(CmdPipelineBarrier)(cmd, VK_PIPELINE_STAGE_TRANSFER_BIT, diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index 3b4c8890b13..3f93e1d0b44 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -449,7 +449,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, struct anv_image_view *dest_iview, VkOffset3D dest_offset, VkExtent3D dest_extent, - VkTexFilter blit_filter) + VkFilter blit_filter) { struct anv_device *device = cmd_buffer->device; VkDescriptorPool dummy_desc_pool = (VkDescriptorPool)1; @@ -734,7 +734,7 @@ do_buffer_copy(struct anv_cmd_buffer *cmd_buffer, &dest_iview, (VkOffset3D) { 0, 0, 0 }, (VkExtent3D) { width, height, 1 }, - VK_TEX_FILTER_NEAREST); + VK_FILTER_NEAREST); anv_DestroyImage(vk_device, src_image); anv_DestroyImage(vk_device, dest_image); @@ -907,7 +907,7 @@ void anv_CmdCopyImage( dest_image, &dest_iview, dest_offset, pRegions[r].extent, - VK_TEX_FILTER_NEAREST); + VK_FILTER_NEAREST); } } @@ -922,7 +922,7 @@ void anv_CmdBlitImage( VkImageLayout destImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, - VkTexFilter filter) + VkFilter filter) { ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer); @@ -934,7 +934,7 @@ void anv_CmdBlitImage( struct anv_meta_saved_state saved_state; - anv_finishme("respect VkTexFilter"); + anv_finishme("respect VkFilter"); meta_prepare_blit(cmd_buffer, &saved_state); @@ -1141,7 +1141,7 @@ void anv_CmdCopyBufferToImage( &dest_iview, dest_offset, pRegions[r].imageExtent, - VK_TEX_FILTER_NEAREST); + VK_FILTER_NEAREST); /* Once we've done the blit, all of the actual information about * the image is embedded in the command buffer so we can just @@ -1244,7 +1244,7 @@ void anv_CmdCopyImageToBuffer( &dest_iview, (VkOffset3D) { 0, 0, 0 }, pRegions[r].imageExtent, - VK_TEX_FILTER_NEAREST); + VK_FILTER_NEAREST); /* Once we've done the blit, all of the actual information about * the image is embedded in the command buffer so we can just diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c index 8fff649bfea..a30de348732 100644 --- a/src/vulkan/gen7_state.c +++ b/src/vulkan/gen7_state.c @@ -64,22 +64,22 @@ genX(fill_buffer_surface_state)(void *state, const struct anv_format *format, } static const uint32_t vk_to_gen_tex_filter[] = { - [VK_TEX_FILTER_NEAREST] = MAPFILTER_NEAREST, - [VK_TEX_FILTER_LINEAR] = MAPFILTER_LINEAR + [VK_FILTER_NEAREST] = MAPFILTER_NEAREST, + [VK_FILTER_LINEAR] = MAPFILTER_LINEAR }; static const uint32_t vk_to_gen_mipmap_mode[] = { - [VK_TEX_MIPMAP_MODE_BASE] = MIPFILTER_NONE, - [VK_TEX_MIPMAP_MODE_NEAREST] = MIPFILTER_NEAREST, - [VK_TEX_MIPMAP_MODE_LINEAR] = MIPFILTER_LINEAR + [VK_SAMPLER_MIPMAP_MODE_BASE] = MIPFILTER_NONE, + [VK_SAMPLER_MIPMAP_MODE_NEAREST] = MIPFILTER_NEAREST, + [VK_SAMPLER_MIPMAP_MODE_LINEAR] = MIPFILTER_LINEAR }; static const uint32_t vk_to_gen_tex_address[] = { - [VK_TEX_ADDRESS_MODE_WRAP] = TCM_WRAP, - [VK_TEX_ADDRESS_MODE_MIRROR] = TCM_MIRROR, - [VK_TEX_ADDRESS_MODE_CLAMP] = TCM_CLAMP, - [VK_TEX_ADDRESS_MODE_MIRROR_ONCE] = TCM_MIRROR_ONCE, - [VK_TEX_ADDRESS_MODE_CLAMP_BORDER] = TCM_CLAMP_BORDER, + [VK_SAMPLER_ADDRESS_MODE_REPEAT] = TCM_WRAP, + [VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT] = TCM_MIRROR, + [VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE] = TCM_CLAMP, + [VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE] = TCM_MIRROR_ONCE, + [VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER] = TCM_CLAMP_BORDER, }; static const uint32_t vk_to_gen_compare_op[] = { @@ -134,7 +134,7 @@ VkResult genX(CreateSampler)( .SamplerDisable = false, .TextureBorderColorMode = DX10OGL, .BaseMipLevel = 0.0, - .MipModeFilter = vk_to_gen_mipmap_mode[pCreateInfo->mipMode], + .MipModeFilter = vk_to_gen_mipmap_mode[pCreateInfo->mipmapMode], .MagModeFilter = mag_filter, .MinModeFilter = min_filter, .TextureLODBias = pCreateInfo->mipLodBias * 256, diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c index 3fc985d52b7..092e1ae7822 100644 --- a/src/vulkan/gen8_state.c +++ b/src/vulkan/gen8_state.c @@ -283,22 +283,22 @@ VkResult genX(CreateSampler)( return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); static const uint32_t vk_to_gen_tex_filter[] = { - [VK_TEX_FILTER_NEAREST] = MAPFILTER_NEAREST, - [VK_TEX_FILTER_LINEAR] = MAPFILTER_LINEAR + [VK_FILTER_NEAREST] = MAPFILTER_NEAREST, + [VK_FILTER_LINEAR] = MAPFILTER_LINEAR }; static const uint32_t vk_to_gen_mipmap_mode[] = { - [VK_TEX_MIPMAP_MODE_BASE] = MIPFILTER_NONE, - [VK_TEX_MIPMAP_MODE_NEAREST] = MIPFILTER_NEAREST, - [VK_TEX_MIPMAP_MODE_LINEAR] = MIPFILTER_LINEAR + [VK_SAMPLER_MIPMAP_MODE_BASE] = MIPFILTER_NONE, + [VK_SAMPLER_MIPMAP_MODE_NEAREST] = MIPFILTER_NEAREST, + [VK_SAMPLER_MIPMAP_MODE_LINEAR] = MIPFILTER_LINEAR }; static const uint32_t vk_to_gen_tex_address[] = { - [VK_TEX_ADDRESS_MODE_WRAP] = TCM_WRAP, - [VK_TEX_ADDRESS_MODE_MIRROR] = TCM_MIRROR, - [VK_TEX_ADDRESS_MODE_CLAMP] = TCM_CLAMP, - [VK_TEX_ADDRESS_MODE_MIRROR_ONCE] = TCM_MIRROR_ONCE, - [VK_TEX_ADDRESS_MODE_CLAMP_BORDER] = TCM_CLAMP_BORDER, + [VK_SAMPLER_ADDRESS_MODE_REPEAT] = TCM_WRAP, + [VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT] = TCM_MIRROR, + [VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE] = TCM_CLAMP, + [VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE] = TCM_MIRROR_ONCE, + [VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER] = TCM_CLAMP_BORDER, }; static const uint32_t vk_to_gen_compare_op[] = { @@ -329,7 +329,7 @@ VkResult genX(CreateSampler)( #if ANV_GEN == 8 .BaseMipLevel = 0.0, #endif - .MipModeFilter = vk_to_gen_mipmap_mode[pCreateInfo->mipMode], + .MipModeFilter = vk_to_gen_mipmap_mode[pCreateInfo->mipmapMode], .MagModeFilter = mag_filter, .MinModeFilter = min_filter, .TextureLODBias = anv_clamp_f(pCreateInfo->mipLodBias, -16, 15.996), |