Lines Matching defs:imgv

64    struct lvp_image_view *imgv;
1541 struct lvp_image_view *imgv,
1547 vk_image_view_subresource_range(&imgv->vk);
1549 return create_img_surface_bo(state, &imgv_subres, imgv->image->bo,
1555 struct lvp_image_view *imgv, int width, int height,
1558 if (imgv->surface) {
1559 if (imgv->surface->width != width ||
1560 imgv->surface->height != height ||
1561 (imgv->surface->u.tex.last_layer - imgv->surface->u.tex.first_layer) != (layer_count - 1))
1562 pipe_surface_reference(&imgv->surface, NULL);
1565 if (!imgv->surface) {
1566 imgv->surface = create_img_surface(state, imgv, imgv->vk.format,
1587 struct lvp_image_view *imgv,
1595 imgv,
1596 imgv->vk.format,
1633 struct lvp_image_view *imgv = state->color_att[i].imgv;
1634 assert(imgv->surface);
1638 clear_attachment_layers(state, imgv, &state->render_area,
1642 imgv->surface,
1745 destroy_multisample_surface(struct rendering_state *state, struct lvp_image_view *imgv)
1747 assert(imgv->image->vk.samples > 1);
1748 struct lvp_image_view *base = imgv->multisample;
1750 free((void*)imgv->image);
1751 pipe_surface_reference(&imgv->surface, NULL);
1752 free(imgv);
1830 !(multi && state->forced_sample_count && state->color_att[i].imgv))
1833 struct lvp_image_view *src_imgv = state->color_att[i].imgv;
1865 struct lvp_image_view *src_imgv = state->color_att[i].imgv;
1867 state->color_att[i].imgv = destroy_multisample_surface(state, src_imgv);
1895 create_multisample_surface(struct rendering_state *state, struct lvp_image_view *imgv, uint32_t samples, bool replicate)
1897 assert(!imgv->multisample);
1899 struct pipe_resource templ = *imgv->surface->texture;
1901 struct lvp_image *image = mem_dup(imgv->image, sizeof(struct lvp_image));
1906 struct lvp_image_view *multi = mem_dup(imgv, sizeof(struct lvp_image_view));
1908 multi->surface = state->pctx->create_surface(state->pctx, image->bo, imgv->surface);
1911 imgv->multisample = multi;
1912 multi->multisample = imgv;
1914 replicate_attachment(state, imgv, multi);
1919 att_needs_replicate(const struct rendering_state *state, const struct lvp_image_view *imgv, VkAttachmentLoadOp load_op)
1925 if (state->render_area.extent.width < imgv->image->vk.extent.width ||
1926 state->render_area.extent.height < imgv->image->vk.extent.height)
1942 .imgv = lvp_image_view_from_handle(vk_att->imageView),
1986 if (state->color_att[i].imgv) {
1987 struct lvp_image_view *imgv = state->color_att[i].imgv;
1988 add_img_view_surface(state, imgv,
1991 if (state->forced_sample_count && imgv->image->vk.samples == 1)
1992 state->color_att[i].imgv = create_multisample_surface(state, imgv, state->forced_sample_count,
1993 att_needs_replicate(state, imgv, state->color_att[i].load_op));
1994 state->framebuffer.cbufs[i] = state->color_att[i].imgv->surface;
2002 if (state->depth_att.imgv || state->stencil_att.imgv) {
2003 assert(state->depth_att.imgv == NULL ||
2004 state->stencil_att.imgv == NULL ||
2005 state->depth_att.imgv == state->stencil_att.imgv);
2006 state->ds_imgv = state->depth_att.imgv ? state->depth_att.imgv :
2007 state->stencil_att.imgv;
2008 struct lvp_image_view *imgv = state->ds_imgv;
2009 add_img_view_surface(state, imgv,
2012 if (state->forced_sample_count && imgv->image->vk.samples == 1) {
2022 state->ds_imgv = create_multisample_surface(state, imgv, state->forced_sample_count,
2023 att_needs_replicate(state, imgv, load_op));
3140 struct lvp_image_view *imgv;
3143 imgv = state->color_att[att->colorAttachment].imgv;
3145 imgv = state->ds_imgv;
3147 if (!imgv)
3177 clear_attachment_layers(state, imgv, &rect->rect,
3182 clear_attachment_layers(state, imgv, &rect->rect,