case VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER:
case VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE:
case VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT:
- surface_state = desc->image_view->nonrt_surface_state;
+ surface_state = desc->image_view->sampler_surface_state;
assert(surface_state.alloc_size);
bo = desc->image_view->bo;
bo_offset = desc->image_view->offset;
image->tiling = pCreateInfo->tiling;
if (image->usage & VK_IMAGE_USAGE_SAMPLED_BIT) {
- image->needs_nonrt_surface_state = true;
+ image->needs_sampler_surface_state = true;
}
if (image->usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) {
.depth = anv_minify(iview->level_0_extent.depth , range->baseMipLevel),
};
- if (image->needs_nonrt_surface_state) {
- iview->nonrt_surface_state = alloc_surface_state(device, cmd_buffer);
+ if (image->needs_sampler_surface_state) {
+ iview->sampler_surface_state = alloc_surface_state(device, cmd_buffer);
- anv_fill_image_surface_state(device, iview->nonrt_surface_state,
+ anv_fill_image_surface_state(device, iview->sampler_surface_state,
iview, &mCreateInfo,
VK_IMAGE_USAGE_SAMPLED_BIT);
} else {
- iview->nonrt_surface_state.alloc_size = 0;
+ iview->sampler_surface_state.alloc_size = 0;
}
if (image->needs_color_rt_surface_state) {
iview->color_rt_surface_state);
}
- if (iview->image->needs_nonrt_surface_state) {
+ if (iview->image->needs_sampler_surface_state) {
anv_state_pool_free(&device->surface_state_pool,
- iview->nonrt_surface_state);
+ iview->sampler_surface_state);
}
if (iview->image->needs_storage_surface_state) {
struct anv_bo *bo;
VkDeviceSize offset;
- bool needs_nonrt_surface_state:1;
+ bool needs_sampler_surface_state:1;
bool needs_color_rt_surface_state:1;
bool needs_storage_surface_state:1;
/** RENDER_SURFACE_STATE when using image as a color render target. */
struct anv_state color_rt_surface_state;
- /** RENDER_SURFACE_STATE when using image as a non render target. */
- struct anv_state nonrt_surface_state;
+ /** RENDER_SURFACE_STATE when using image as a sampler surface. */
+ struct anv_state sampler_surface_state;
/** RENDER_SURFACE_STATE when using image as a storage image. */
struct anv_state storage_surface_state;