/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_resource.c | 612 res->mod_info = isl_drm_modifier_get_info(modifier); in iris_resource_configure_main() 614 if (modifier != DRM_FORMAT_MOD_INVALID && res->mod_info == NULL) in iris_resource_configure_main() 619 if (res->mod_info != NULL) { in iris_resource_configure_main() 620 tiling_flags = 1 << res->mod_info->tiling; in iris_resource_configure_main() 731 assert(!res->mod_info || in iris_resource_configure_aux() 732 res->mod_info->aux_usage == ISL_AUX_USAGE_NONE || in iris_resource_configure_aux() 733 res->mod_info->aux_usage == ISL_AUX_USAGE_CCS_E || in iris_resource_configure_aux() 734 res->mod_info->aux_usage == ISL_AUX_USAGE_GFX12_CCS_E || in iris_resource_configure_aux() 735 res->mod_info->aux_usage == ISL_AUX_USAGE_MC); in iris_resource_configure_aux() 737 const bool has_mcs = !res->mod_info && in iris_resource_configure_aux() [all …]
|
D | iris_resolve.c | 844 if (res->mod_info && !res->mod_info->supports_clear_color) { in iris_resource_set_aux_state() 845 assert(res->mod_info->aux_usage != ISL_AUX_USAGE_NONE); in iris_resource_set_aux_state()
|
D | iris_resource.h | 180 const struct isl_drm_modifier_info *mod_info; member
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_resource.c | 188 res->mod_info = isl_drm_modifier_get_info(modifier); in crocus_resource_configure_main() 190 tiling_flags = 1 << res->mod_info->tiling; in crocus_resource_configure_main() 194 res->mod_info = isl_drm_modifier_get_info(modifier); in crocus_resource_configure_main() 195 tiling_flags = 1 << res->mod_info->tiling; in crocus_resource_configure_main() 431 assert(!res->mod_info || res->mod_info->aux_usage == ISL_AUX_USAGE_NONE); in crocus_resource_configure_aux() 433 const bool has_mcs = devinfo->ver >= 7 && !res->mod_info && in crocus_resource_configure_aux() 436 const bool has_hiz = devinfo->ver >= 6 && !res->mod_info && in crocus_resource_configure_aux() 441 ((devinfo->ver >= 7 && !res->mod_info && !INTEL_DEBUG(DEBUG_NO_RBC)) || in crocus_resource_configure_aux() 442 (res->mod_info && res->mod_info->aux_usage != ISL_AUX_USAGE_NONE)) && in crocus_resource_configure_aux() 449 if (res->mod_info && has_ccs) { in crocus_resource_configure_aux() [all …]
|
D | crocus_resource.h | 195 const struct isl_drm_modifier_info *mod_info; member 509 return res->base.b.next != NULL && res->mod_info && in crocus_resource_unfinished_aux_import() 510 res->mod_info->aux_usage != ISL_AUX_USAGE_NONE; in crocus_resource_unfinished_aux_import()
|
D | crocus_bufmgr.c | 1258 const struct isl_drm_modifier_info *mod_info = in crocus_bo_import_dmabuf() local 1260 if (mod_info) { in crocus_bo_import_dmabuf() 1261 bo->tiling_mode = isl_tiling_to_i915_tiling(mod_info->tiling); in crocus_bo_import_dmabuf()
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_image.c | 138 const VkImageDrmFormatModifierListCreateInfoEXT *mod_info = in panvk_image_select_mod() local 145 assert(mod_info || drm_explicit_info); in panvk_image_select_mod() 149 if (mod_info) { in panvk_image_select_mod() 151 for (unsigned i = 0; i < mod_info->drmFormatModifierCount; i++) { in panvk_image_select_mod() 152 if (drm_is_afbc(mod_info->pDrmFormatModifiers[i]) && !noafbc) { in panvk_image_select_mod() 153 modifier = mod_info->pDrmFormatModifiers[i]; in panvk_image_select_mod()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_image.c | 270 const VkImageDrmFormatModifierListCreateInfoEXT *mod_info = in create_image() local 276 assert(mod_info || explicit_mod_info); in create_image() 278 if (mod_info) { in create_image() 279 for (uint32_t i = 0; i < mod_info->drmFormatModifierCount; i++) { in create_image() 280 switch (mod_info->pDrmFormatModifiers[i]) { in create_image()
|
/third_party/mesa3d/src/intel/isl/ |
D | isl.h | 2163 const struct isl_drm_modifier_info *mod_info = in isl_drm_modifier_get_default_aux_state() local 2166 if (!mod_info || mod_info->aux_usage == ISL_AUX_USAGE_NONE) in isl_drm_modifier_get_default_aux_state() 2169 assert(mod_info->aux_usage == ISL_AUX_USAGE_CCS_E || in isl_drm_modifier_get_default_aux_state() 2170 mod_info->aux_usage == ISL_AUX_USAGE_GFX12_CCS_E || in isl_drm_modifier_get_default_aux_state() 2171 mod_info->aux_usage == ISL_AUX_USAGE_MC); in isl_drm_modifier_get_default_aux_state() 2172 return mod_info->supports_clear_color ? ISL_AUX_STATE_COMPRESSED_CLEAR : in isl_drm_modifier_get_default_aux_state()
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_mipmap_tree.c | 785 const struct isl_drm_modifier_info *mod_info = in brw_miptree_create_for_dri_image() local 789 mod_info ? mod_info->tiling : isl_tiling_from_i915_tiling(bo_tiling); in brw_miptree_create_for_dri_image() 827 if (mod_info && mod_info->aux_usage != ISL_AUX_USAGE_NONE) in brw_miptree_create_for_dri_image() 863 if (mod_info && mod_info->aux_usage != ISL_AUX_USAGE_NONE) { in brw_miptree_create_for_dri_image() 864 assert(mod_info->aux_usage == ISL_AUX_USAGE_CCS_E); in brw_miptree_create_for_dri_image() 866 mt->aux_usage = mod_info->aux_usage; in brw_miptree_create_for_dri_image() 872 allow_internal_aux || mod_info->supports_clear_color; in brw_miptree_create_for_dri_image() 2108 const struct isl_drm_modifier_info *mod_info = in brw_miptree_prepare_external() local 2111 if (mod_info && mod_info->aux_usage != ISL_AUX_USAGE_NONE) { in brw_miptree_prepare_external() 2115 assert(mod_info->aux_usage == ISL_AUX_USAGE_CCS_E); in brw_miptree_prepare_external() [all …]
|
D | brw_screen.c | 768 const struct isl_drm_modifier_info *mod_info = in brw_create_image_common() local 786 .tiling_flags = (1 << mod_info->tiling)); in brw_create_image_common() 794 if (mod_info->aux_usage == ISL_AUX_USAGE_CCS_E) { in brw_create_image_common() 801 assert(mod_info->aux_usage == ISL_AUX_USAGE_NONE); in brw_create_image_common() 817 isl_tiling_to_i915_tiling(mod_info->tiling), in brw_create_image_common() 1137 const struct isl_drm_modifier_info *mod_info = in brw_create_image_from_fds_common() local 1139 uint32_t tiling = isl_tiling_to_i915_tiling(mod_info->tiling); in brw_create_image_from_fds_common() 1169 const struct isl_drm_modifier_info *mod_info = in brw_create_image_from_fds_common() local 1199 .tiling_flags = (1 << mod_info->tiling)); in brw_create_image_from_fds_common() 1211 if (mod_info->aux_usage == ISL_AUX_USAGE_CCS_E) { in brw_create_image_from_fds_common() [all …]
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_image.c | 1515 const struct VkImageDrmFormatModifierExplicitCreateInfoEXT *mod_info, in radv_image_create_layout() argument 1527 assert(!mod_info || mod_info->drmFormatModifierPlaneCount >= image->plane_count); in radv_image_create_layout() 1551 if (create_info.bo_metadata && !mod_info && in radv_image_create_layout() 1559 !mod_info) in radv_image_create_layout() 1562 if (mod_info) { in radv_image_create_layout() 1563 if (mod_info->pPlaneLayouts[plane].rowPitch % image->planes[plane].surface.bpe || in radv_image_create_layout() 1564 !mod_info->pPlaneLayouts[plane].rowPitch) in radv_image_create_layout() 1567 offset = mod_info->pPlaneLayouts[plane].offset; in radv_image_create_layout() 1568 stride = mod_info->pPlaneLayouts[plane].rowPitch / image->planes[plane].surface.bpe; in radv_image_create_layout() 1580 if (image->plane_count == 1 && mod_info) { in radv_image_create_layout() [all …]
|
D | radv_formats.c | 1471 const VkPhysicalDeviceImageDrmFormatModifierInfoEXT *mod_info = in radv_get_image_format_properties() local 1482 mod_info->drmFormatModifier, &format_props); in radv_get_image_format_properties() 1632 if (mod_info) { in radv_get_image_format_properties() 1634 mod_info->drmFormatModifier); in radv_get_image_format_properties()
|
D | radv_private.h | 2301 const struct VkImageDrmFormatModifierExplicitCreateInfoEXT *mod_info,
|
/third_party/mesa3d/src/freedreno/vulkan/ |
D | tu_image.c | 529 const VkImageDrmFormatModifierListCreateInfoEXT *mod_info = in tu_CreateImage() local 536 assert(mod_info || drm_explicit_info); in tu_CreateImage() 538 if (mod_info) { in tu_CreateImage() 540 for (unsigned i = 0; i < mod_info->drmFormatModifierCount; i++) { in tu_CreateImage() 541 if (mod_info->pDrmFormatModifiers[i] == DRM_FORMAT_MOD_QCOM_COMPRESSED) in tu_CreateImage()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_resource.c | 192 VkPhysicalDeviceImageDrmFormatModifierInfoEXT mod_info; in check_ici() local 194 mod_info.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT; in check_ici() 195 mod_info.pNext = NULL; in check_ici() 196 mod_info.drmFormatModifier = modifier; in check_ici() 197 mod_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; in check_ici() 198 mod_info.queueFamilyIndexCount = 0; in check_ici() 199 info.pNext = &mod_info; in check_ici()
|
/third_party/mesa3d/src/vulkan/wsi/ |
D | wsi_common_drm.c | 216 VkPhysicalDeviceImageDrmFormatModifierInfoEXT mod_info = { in wsi_create_native_image() local 243 __vk_append_struct(&format_info, &mod_info); in wsi_create_native_image()
|