Lines Matching defs:surf

2858    struct crocus_surface *surf = calloc(1, sizeof(struct crocus_surface));
2859 struct pipe_surface *psurf = &surf->base;
2862 if (!surf)
2878 struct isl_view *view = &surf->view;
2890 struct isl_view *read_view = &surf->read_view;
2902 surf->clear_color = res->aux.clear_color;
2905 if (res->surf.usage & (ISL_SURF_USAGE_DEPTH_BIT |
2909 if (!isl_format_is_compressed(res->surf.format)) {
2913 memcpy(&surf->surf, &res->surf, sizeof(surf->surf));
2917 isl_surf_get_image_offset_B_tile_sa(&res->surf, tmpl->u.tex.level,
2936 surf->align_res = screen->base.resource_create(&screen->base, &wa_templ);
2940 struct crocus_resource *align_res = (struct crocus_resource *)surf->align_res;
2941 memcpy(&surf->surf, &align_res->surf, sizeof(surf->surf));
2955 assert(res->surf.samples == 1);
2982 const bool is_3d = res->surf.dim == ISL_SURF_DIM_3D;
2983 isl_surf_get_image_surf(&screen->isl_dev, &res->surf,
2987 &surf->surf,
3000 memcpy(&surf->surf, &res->surf, sizeof(surf->surf));
3005 isl_format_get_layout(res->surf.format);
3006 surf->surf.format = fmt.fmt;
3007 surf->surf.logical_level0_px = isl_surf_get_logical_level0_el(&surf->surf);
3008 surf->surf.phys_level0_sa = isl_surf_get_phys_level0_el(&surf->surf);
3012 psurf->width = surf->surf.logical_level0_px.width;
3013 psurf->height = surf->surf.logical_level0_px.height;
3111 &res->surf, &view);
3220 struct crocus_surface *surf = (void *) p_surf;
3223 pipe_resource_reference(&surf->align_res, NULL);
3224 free(surf);
4924 uint32_t *surf = stream_state(batch, isl_dev->ss.size,
4928 isl_null_fill_state(isl_dev, surf,
4991 struct isl_surf surf = *in_surf;
4998 &surf, &offset_B,
5006 &surf, &offset_B,
5011 surf.dim = ISL_SURF_DIM_2D;
5019 aux_surf = &res->aux.surf;
5027 .surf = &surf,
5075 struct crocus_surface *surf,
5081 struct crocus_resource *res = (struct crocus_resource *)surf->base.texture;
5082 struct isl_view *view = &surf->view;
5090 if (surf->align_res)
5091 res = (struct crocus_resource *)surf->align_res;
5095 emit_surface_state(batch, res, &surf->surf, adjust_surf, view, true,
5104 struct crocus_surface *surf,
5108 struct crocus_resource *res = (struct crocus_resource *)surf->base.texture;
5109 struct isl_view *view = &surf->read_view;
5113 emit_surface_state(batch, res, &surf->surf, true, view, false,
5223 emit_surface_state(batch, isv->res, &isv->res->surf, false,
5276 &res->surf, false, &iv->view,
7133 sf.DepthBufferSurfaceFormat = zres ? isl_format_get_depth_format(zres->surf.format, false) : D16_UNORM;
7474 info.depth_surf = &zres->surf;
7480 view.format = zres->surf.format;
7484 info.hiz_surf = &zres->aux.surf;
7492 isl_surf_get_image_offset_B_tile_sa(&zres->aux.surf,
7508 info.stencil_surf = &sres->surf;
7516 isl_surf_get_image_offset_B_tile_sa(&sres->surf,
7525 view.format = sres->surf.format;