Lines Matching defs:view

388     *     - Texture view rendering (including blorp_copy calls)
449 * make an image view with a format that does use atomics.
2481 struct isl_view view = *view_in;
2482 view.usage |= view_usage;
2490 isl_format_is_compressed(view.format) &&
2509 view.swizzle = anv_swizzle_for_render(view.swizzle);
2513 view.swizzle = ISL_SWIZZLE_IDENTITY;
2530 view.format)) {
2554 isl_lower_storage_image_format(&device->info, view.format);
2559 view.format,
2568 view.format) ||
2569 isl_swizzle_is_identity_for_format(view.format, view.swizzle));
2571 view.format = lower_format;
2580 !isl_format_is_compressed(view.format)) {
2581 /* We're creating an uncompressed view of a compressed surface. This
2585 assert(view.levels == 1);
2586 assert(view.array_len == 1);
2589 isl_surf_get_uncompressed_surf(&device->isl_dev, isl_surf, &view,
2590 &tmp_surf, &view,
2617 .view = &view,
2652 &surface->isl, &view);
2706 * view format from the passed conversion info.
2712 * planes in the image view.
2878 struct anv_buffer_view *view;
2880 view = vk_object_alloc(&device->vk, pAllocator, sizeof(*view),
2882 if (!view)
2890 view->range = vk_buffer_range(&buffer->vk, pCreateInfo->offset,
2892 view->range = align_down_npot_u32(view->range, format_bs);
2894 view->address = anv_address_add(buffer->address, pCreateInfo->offset);
2897 view->surface_state = alloc_surface_state(device);
2899 anv_fill_buffer_surface_state(device, view->surface_state,
2902 view->address, view->range, format_bs);
2904 view->surface_state = (struct anv_state){ 0 };
2908 view->storage_surface_state = alloc_surface_state(device);
2909 view->lowered_storage_surface_state = alloc_surface_state(device);
2911 anv_fill_buffer_surface_state(device, view->storage_surface_state,
2914 view->address, view->range, format_bs);
2930 anv_fill_buffer_surface_state(device, view->lowered_storage_surface_state,
2933 view->address, view->range,
2938 &view->lowered_storage_image_param,
2939 format.isl_format, view->range);
2941 view->storage_surface_state = (struct anv_state){ 0 };
2942 view->lowered_storage_surface_state = (struct anv_state){ 0 };
2945 *pView = anv_buffer_view_to_handle(view);
2955 ANV_FROM_HANDLE(anv_buffer_view, view, bufferView);
2957 if (!view)
2960 if (view->surface_state.alloc_size > 0)
2962 view->surface_state);
2964 if (view->storage_surface_state.alloc_size > 0)
2966 view->storage_surface_state);
2968 if (view->lowered_storage_surface_state.alloc_size > 0)
2970 view->lowered_storage_surface_state);
2972 vk_object_free(&device->vk, pAllocator, view);