Lines Matching defs:surf

65       struct crocus_surface *surf = (void *) cso_fb->cbufs[i];
66 if (!surf)
69 struct crocus_resource *rb_res = (void *) surf->base.texture;
72 surf->base.u.tex.level >= min_level &&
73 surf->base.u.tex.level < min_level + num_levels) {
166 struct crocus_surface *surf,
172 info.src.resource = copy_to_wa ? surf->base.texture : surf->align_res;
173 info.src.level = copy_to_wa ? surf->base.u.tex.level : 0;
174 u_box_2d_zslice(0, 0, copy_to_wa ? surf->base.u.tex.first_layer : 0,
175 u_minify(surf->base.texture->width0, surf->base.u.tex.level),
176 u_minify(surf->base.texture->height0, surf->base.u.tex.level), &info.src.box);
177 info.src.format = surf->base.texture->format;
178 info.dst.resource = copy_to_wa ? surf->align_res : surf->base.texture;
179 info.dst.level = copy_to_wa ? 0 : surf->base.u.tex.level;
181 info.dst.box.z = copy_to_wa ? 0 : surf->base.u.tex.first_layer;
182 info.dst.format = surf->base.texture->format;
183 info.mask = util_format_is_depth_or_stencil(surf->base.texture->format) ? PIPE_MASK_ZS : PIPE_MASK_RGBA;
259 struct crocus_surface *surf = (void *) cso_fb->cbufs[i];
262 crocus_resource_prepare_texture(ice, res, surf->view.format,
263 surf->view.base_level, 1,
264 surf->view.base_array_layer,
265 surf->view.array_len);
272 struct crocus_surface *surf = (void *) cso_fb->cbufs[i];
273 if (!surf)
276 struct crocus_resource *res = (void *) surf->base.texture;
278 if (surf->align_res)
279 crocus_update_align_res(batch, surf, true);
282 crocus_resource_render_aux_usage(ice, res, surf->view.base_level,
283 surf->view.format,
292 crocus_resource_prepare_render(ice, res, surf->view.base_level,
293 surf->view.base_array_layer,
294 surf->view.array_len,
297 crocus_cache_flush_for_render(batch, res->bo, surf->view.format,
366 struct crocus_surface *surf = (void *) cso_fb->cbufs[i];
367 if (!surf)
370 if (surf->align_res)
371 crocus_update_align_res(batch, surf, false);
372 struct crocus_resource *res = (void *) surf->base.texture;
375 crocus_render_cache_add_bo(batch, res->bo, surf->view.format,
379 union pipe_surface_desc *desc = &surf->base.u;
534 struct blorp_surf surf;
535 crocus_blorp_surf_for_resource(&screen->vtbl, &batch->screen->isl_dev, &surf,
557 blorp_ccs_resolve(&blorp_batch, &surf, level, layer, 1,
558 isl_format_srgb_to_linear(res->surf.format),
581 struct blorp_surf surf;
582 crocus_blorp_surf_for_resource(&screen->vtbl, &batch->screen->isl_dev, &surf,
587 blorp_mcs_partial_resolve(&blorp_batch, &surf,
588 isl_format_srgb_to_linear(res->surf.format),
684 struct blorp_surf surf;
685 crocus_blorp_surf_for_resource(&screen->vtbl, &batch->screen->isl_dev, &surf,
692 blorp_hiz_op(&blorp_batch, &surf, level, start_layer, num_layers, op);
745 return level < res->aux.surf.levels;
753 assert(level < res->surf.levels);
761 assert(start_level < res->surf.levels);
764 num_levels = res->surf.levels;
768 assert(start_level + num_levels <= res->surf.levels);
976 if (!isl_formats_are_fast_clear_compatible(res->surf.format, view_format))
1009 assert(render_format == res->surf.format);