Home
last modified time | relevance | path

Searched refs:mod_info (Results 1 – 17 of 17) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/iris/
Diris_resource.c612 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 …]
Diris_resolve.c844 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()
Diris_resource.h180 const struct isl_drm_modifier_info *mod_info; member
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_resource.c188 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 …]
Dcrocus_resource.h195 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()
Dcrocus_bufmgr.c1258 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/
Dpanvk_image.c138 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/
Dv3dv_image.c270 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/
Disl.h2163 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/
Dbrw_mipmap_tree.c785 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 …]
Dbrw_screen.c768 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/
Dradv_image.c1515 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 …]
Dradv_formats.c1471 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()
Dradv_private.h2301 const struct VkImageDrmFormatModifierExplicitCreateInfoEXT *mod_info,
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_image.c529 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/
Dzink_resource.c192 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/
Dwsi_common_drm.c216 VkPhysicalDeviceImageDrmFormatModifierInfoEXT mod_info = { in wsi_create_native_image() local
243 __vk_append_struct(&format_info, &mod_info); in wsi_create_native_image()