Lines Matching defs:usage

227     * usage bits or else things will fall apart.
332 * VkImageStencilUsageCreateInfo, then @a usage must be stencilUsage.
724 assert(!(image->vk.usage & VK_IMAGE_USAGE_STORAGE_BIT));
729 if (!(image->vk.usage & VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT)) {
763 } else if (image->vk.usage & (VK_IMAGE_USAGE_SAMPLED_BIT |
832 /* Choose aux usage */
835 image->vk.usage, fmt_list)) {
863 assert(!(image->vk.usage & VK_IMAGE_USAGE_STORAGE_BIT));
906 .usage = ISL_SURF_USAGE_TEXTURE_BIT |
950 .usage = isl_usage,
1124 * superfluous, because usage of modifiers triggers numerous special cases
1180 /* The modifier's required aux usage mandates the image's aux usage.
1182 * usage, then we may enable a private aux surface.
1187 "usage");
1278 /* About valid usage in the Vulkan spec:
1291 * With aux usage,
1294 * Without aux usage,
1384 VkImageUsageFlags usage)
1386 /* Add TRANSFER_SRC usage for multisample attachment images. This is
1391 * Without this additional usage, we compute an incorrect AUX state in
1395 (usage & (VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT |
1397 usage |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT;
1398 return usage;
1436 image->vk.usage = anv_image_create_usage(pCreateInfo, image->vk.usage);
1672 VkFormat vk_format = vk_format_from_android(desc.format, desc.usage);
1978 "BO lacks implicit CCS. Disabling the CCS aux usage.");
2175 const VkImageUsageFlags usage =
2181 if ((usage & VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT) && !read_only) {
2197 if (usage & (VK_IMAGE_USAGE_TRANSFER_SRC_BIT |
2231 unreachable("Unsupported aux usage");
2280 unreachable("Unsupported aux usage");
2293 * @param usage The usage which describes how the image will be accessed.
2302 const VkImageUsageFlagBits usage,
2336 assert(util_is_power_of_two_or_zero(usage));
2337 if (usage == VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) {
2362 * @param usage The usage which describes how the image will be accessed.
2482 view.usage |= view_usage;
2747 iview->planes[vplane].isl.usage = ISL_SURF_USAGE_CUBE_BIT;
2749 iview->planes[vplane].isl.usage = 0;
2752 if (iview->vk.usage & (VK_IMAGE_USAGE_SAMPLED_BIT |
2784 if (iview->vk.usage & VK_IMAGE_USAGE_STORAGE_BIT) {
2896 if (buffer->vk.usage & VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT) {
2907 if (buffer->vk.usage & VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT) {