break;
}
case VK_OBJECT_TYPE_IMAGE: {
- struct anv_image *image = anv_buffer_from_handle(object);
+ struct anv_image *image = anv_image_from_handle(object);
pMemoryRequirements->size = image->size;
pMemoryRequirements->alignment = image->alignment;
break;
case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE:
for (uint32_t j = 0; j < write->count; j++) {
set->descriptors[write->destBinding + j].view =
- anv_surface_view_from_handle(write->pDescriptors[j].imageView);
+ (struct anv_surface_view *)write->pDescriptors[j].imageView;
}
break;
case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC:
for (uint32_t j = 0; j < write->count; j++) {
set->descriptors[write->destBinding + j].view =
- anv_surface_view_from_handle(write->pDescriptors[j].bufferView);
+ (struct anv_surface_view *)write->pDescriptors[j].bufferView;
}
default:
}
}
- *pState = anv_descriptor_set_to_handle(state);
+ *pState = anv_dynamic_vp_state_to_handle(state);
return VK_SUCCESS;
}
cmd_buffer->rs_state = NULL;
cmd_buffer->ds_state = NULL;
- *pState = anv_cmd_buffer_to_handle(cmd_buffer);
+ *pCmdBuffer = anv_cmd_buffer_to_handle(cmd_buffer);
return VK_SUCCESS;
ANV_DEFINE_CASTS(anv_shader, VkShader)
ANV_DEFINE_CASTS(anv_pipeline, VkPipeline)
ANV_DEFINE_CASTS(anv_image, VkImage)
+ANV_DEFINE_CASTS(anv_sampler, VkSampler)
ANV_DEFINE_CASTS(anv_depth_stencil_view, VkDepthStencilView)
ANV_DEFINE_CASTS(anv_framebuffer, VkFramebuffer)
ANV_DEFINE_CASTS(anv_render_pass, VkRenderPass)