mesa/src/intel/vulkan
Andres Gomez 5352174d49 anv: FORMAT_FEATURE_TRANSFER_SRC/DST_BIT_KHR not used with VkFormatProperties.bufferFeatures
VK_FORMAT_FEATURE_TRANSFER_[SRC|DST]_BIT_KHR is a flag value of the
VkFormatFeatureFlagBits enum that can only be hold and checked against
the linearTilingFeatures or optimalTilingFeatures members of the
VkFormatProperties struct but not the bufferFeatures member.

>From the Vulkan® 1.0.51, with the VK_KHR_maintenance1 extension,
section 32.3.2 docs for VkFormatProperties:

   "* linearTilingFeatures is a bitmask of VkFormatFeatureFlagBits
      specifying features supported by images created with a tiling
      parameter of VK_IMAGE_TILING_LINEAR.

    * optimalTilingFeatures is a bitmask of VkFormatFeatureFlagBits
      specifying features supported by images created with a tiling
      parameter of VK_IMAGE_TILING_OPTIMAL.

    * bufferFeatures is a bitmask of VkFormatFeatureFlagBits
      specifying features supported by buffers."

    ...

    Bits which can be set in the VkFormatProperties features
    linearTilingFeatures, optimalTilingFeatures, and bufferFeatures
    are:

    typedef enum VkFormatFeatureFlagBits {

    ...

      VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR = 0x00004000,
      VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR = 0x00008000,

    ...

    } VkFormatFeatureFlagBits;

    ...

    The following bits may be set in linearTilingFeatures and
    optimalTilingFeatures, specifying that the features are supported
    by images or image views created with the queried
    vkGetPhysicalDeviceFormatProperties::format:

    ...

    * VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR specifies that an image
      can be used as a source image for copy commands.

    * VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR specifies that an image
      can be used as a destination image for copy commands and clear
      commands."

Cc: Jason Ekstrand <jason.ekstrand@intel.com>
Cc: Iago Toral Quiroga <itoral@igalia.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2017-06-22 13:45:22 +03:00
..
tests anv/allocator: Add the capability to allocate blocks of different sizes 2017-05-04 19:07:54 -07:00
.gitignore anv: Suffix the intel_icd file with the host CPU 2016-10-21 09:30:20 -07:00
anv_allocator.c anv: Stop setting BO flags in bo_init_new 2017-05-23 16:46:38 -07:00
anv_batch_chain.c anv: check return value of anv_execbuf_add_bo 2017-05-08 14:38:27 +01:00
anv_blorp.c anv/blorp: Move the depth cache flush outside of BLORP 2017-06-07 08:54:54 -07:00
anv_cmd_buffer.c anv/allocator: Convert the state stream to pull from a state pool 2017-05-04 19:07:54 -07:00
anv_descriptor_set.c anv/allocator: Convert the state stream to pull from a state pool 2017-05-04 19:07:54 -07:00
anv_device.c intel: common: express timestamps units in frequency 2017-06-19 22:11:00 +01:00
anv_dump.c anv/cmd_buffer: Move Begin/End/Execute to genX_cmd_buffer.c 2016-10-17 17:41:35 -07:00
anv_entrypoints_gen.py anv: Implement VK_KHR_get_surface_capabilities2 2017-05-16 08:38:46 -07:00
anv_formats.c anv: FORMAT_FEATURE_TRANSFER_SRC/DST_BIT_KHR not used with VkFormatProperties.bufferFeatures 2017-06-22 13:45:22 +03:00
anv_gem.c anv: document that anv_gem_mmap returns MAP_FAILED on error 2017-05-11 13:58:20 +01:00
anv_gem_stubs.c anv: Get rid of a bunch of uses of size_t 2017-05-04 19:07:54 -07:00
anv_genX.h anv: Add support for the PMA fix on Broadwell 2017-02-14 14:18:55 -08:00
anv_image.c anv/image: Get rid of the memset(aux, 0, sizeof(aux)) hack 2017-05-23 16:46:22 -07:00
anv_intel.c anv: Use the BO cache for DeviceMemory allocations 2017-04-27 20:08:46 -07:00
anv_nir.h anv/pipeline: Add shader lowering for multiview 2017-05-03 11:25:46 -07:00
anv_nir_apply_pipeline_layout.c anv: Add support for shaderStorageImageWriteWithoutFormat 2017-02-14 08:16:52 -08:00
anv_nir_lower_input_attachments.c nir: Rework conversion opcodes 2017-03-14 07:36:40 -07:00
anv_nir_lower_multiview.c anv/pipeline: Add shader lowering for multiview 2017-05-03 11:25:46 -07:00
anv_nir_lower_push_constants.c spirv: compute push constant access offset & range 2017-01-04 21:14:17 +00:00
anv_pass.c util/vulkan: Move Vulkan utilities to src/vulkan/util 2017-06-06 08:17:13 -07:00
anv_pipeline.c intel/compiler/vs: Move inputs_read handling to generic code 2017-05-09 15:08:03 -07:00
anv_pipeline_cache.c anv: Move shader hashing to anv_pipeline 2017-05-03 11:25:46 -07:00
anv_private.h util/vulkan: Move Vulkan utilities to src/vulkan/util 2017-06-06 08:17:13 -07:00
anv_queue.c util/vulkan: Move Vulkan utilities to src/vulkan/util 2017-06-06 08:17:13 -07:00
anv_util.c anv: Add an option to abort on device loss 2017-05-18 16:32:11 -07:00
anv_wsi.c util/vulkan: Move Vulkan utilities to src/vulkan/util 2017-06-06 08:17:13 -07:00
anv_wsi_wayland.c anv/wsi: Don't include wayland headers 2017-03-13 11:16:30 +00:00
anv_wsi_x11.c vulkan/wsi/radv: add initial prime support (v1.1) 2017-02-27 05:42:16 +10:00
dev_icd.json.in anv: Replace "abi_versions" with correct "api_version". 2016-10-25 12:55:39 -07:00
gen7_cmd_buffer.c anv: Get rid of the stub() macros 2017-03-07 15:22:16 -08:00
gen8_cmd_buffer.c anv/allocator: Embed the block_pool in the state_pool 2017-05-04 19:07:54 -07:00
genX_blorp_exec.c intel/blorp: Plumb through access to the workaround BO 2017-06-07 08:54:54 -07:00
genX_cmd_buffer.c anv: Fix L3 cache programming on Bay Trail 2017-06-19 12:05:52 -07:00
genX_gpu_memcpy.c anv: Disable VF statistics for blorp and SOL memcpy 2017-03-17 12:12:50 -07:00
genX_pipeline.c anv: Use BRW_BARYCENTRIC_NONPERSPECTIVE_BITS from common header. 2017-05-03 16:58:55 -07:00
genX_query.c anv: Stop setting BO flags in bo_init_new 2017-05-23 16:46:38 -07:00
genX_state.c anv: Port over CACHE_MODE_1 optimization fix enables from brw. 2017-05-30 14:59:31 -07:00
intel_icd.json.in anv: Replace "abi_versions" with correct "api_version". 2016-10-25 12:55:39 -07:00
TODO anv: Implement pipeline statistics queries 2017-03-17 12:12:50 -07:00
vk_format_info.h anv: Set up binding tables and surface states for input attachments 2016-11-22 13:44:55 -08:00