Lines Matching defs:view
2728 isv->view = (struct isl_view) {
2744 /* Fill out SURFACE_STATE for this view. */
2746 isv->view.base_level = tmpl->u.tex.first_level;
2747 isv->view.levels = tmpl->u.tex.last_level - tmpl->u.tex.first_level + 1;
2753 isv->view.base_array_layer = tmpl->u.tex.first_layer;
2754 isv->view.array_len =
2758 /* just create a second view struct for texture gather just in case */
2759 isv->gather_view = isv->view;
2805 /* Fill out SURFACE_STATE for this view. */
2827 * In Gallium nomenclature, "surfaces" are a view of a resource that
2878 struct isl_view *view = &surf->view;
2879 *view = (struct isl_view) {
2937 view->base_level = 0;
2938 view->base_array_layer = 0;
2939 view->array_len = 1;
2947 * have a renderable view format. We must be attempting to upload blocks
2948 * of compressed data via an uncompressed view.
2952 * and create an uncompressed view with multiple layers, however.
2956 assert(view->levels == 1);
2964 if (view->base_level > 0) {
2979 if (view->array_len > 1 || GFX_VER == 7)
2984 view->base_level,
2985 is_3d ? 0 : view->base_array_layer,
2986 is_3d ? view->base_array_layer : 0,
2993 view->base_array_layer = 0;
2994 view->base_level = 0;
3097 struct isl_view view = {
3107 iv->view = view;
3111 &res->surf, &view);
3113 struct isl_view view = {
3118 iv->view = view;
3172 struct crocus_sampler_view *view = (void *) pview;
3173 if (view) {
3174 view->res->bind_history |= PIPE_BIND_SAMPLER_VIEW;
3175 view->res->bind_stages |= 1 << stage;
4992 struct isl_view view = *in_view;
4994 if (res->base.b.target == PIPE_TEXTURE_3D && view.array_len == 1) {
4996 view.base_level, 0,
4997 view.base_array_layer,
5000 view.base_array_layer = 0;
5001 view.base_level = 0;
5004 view.base_level, view.base_array_layer,
5008 view.base_array_layer = 0;
5009 view.base_level = 0;
5028 .view = &view,
5082 struct isl_view *view = &surf->view;
5095 emit_surface_state(batch, res, &surf->surf, adjust_surf, view, true,
5109 struct isl_view *view = &surf->read_view;
5113 emit_surface_state(batch, res, &surf->surf, true, view, false,
5204 const struct isl_format_layout *fmtl = isl_format_get_layout(isv->view.format);
5205 const unsigned cpp = isv->view.format == ISL_FORMAT_RAW ? 1 : fmtl->bpb / 8;
5214 .format = isv->view.format,
5215 .swizzle = isv->view.swizzle,
5224 for_gather ? &isv->gather_view : &isv->view,
5245 const struct isl_format_layout *fmtl = isl_format_get_layout(iv->view.format);
5246 const unsigned cpp = iv->view.format == ISL_FORMAT_RAW ? 1 : fmtl->bpb / 8;
5255 .format = iv->view.format,
5256 .swizzle = iv->view.swizzle,
5261 if (iv->view.format == ISL_FORMAT_RAW) {
5267 .format = iv->view.format,
5268 .swizzle = iv->view.swizzle,
5276 &res->surf, false, &iv->view,
5456 struct crocus_sampler_view *view = shs->textures[i];
5457 if (view)
5458 surf_offsets[s] = emit_sampler_view(ice, batch, false, view);
5467 struct crocus_sampler_view *view = shs->textures[i];
5468 if (view)
5469 surf_offsets[s] = emit_sampler_view(ice, batch, true, view);
5478 struct crocus_image_view *view = &shs->image[i];
5479 if (view->base.resource)
5480 surf_offsets[s] = emit_image_view(ice, batch, view);
7449 struct isl_view view = {
7457 .view = &view,
7467 view.base_level = cso->zsbuf->u.tex.level;
7468 view.base_array_layer = cso->zsbuf->u.tex.first_layer;
7469 view.array_len = cso->zsbuf->u.tex.last_layer - cso->zsbuf->u.tex.first_layer + 1;
7472 view.usage |= ISL_SURF_USAGE_DEPTH_BIT;
7480 view.format = zres->surf.format;
7482 if (crocus_resource_level_has_hiz(zres, view.base_level)) {
7493 view.base_level, 0, 0,
7506 view.usage |= ISL_SURF_USAGE_STENCIL_BIT;
7517 view.base_level, 0, 0,
7525 view.format = sres->surf.format;