PAN_BO_ACCESS_SHARED | PAN_BO_ACCESS_READ |
panfrost_bo_access_for_stage(st));
- panfrost_batch_add_bo(batch, view->midgard_bo,
+ panfrost_batch_add_bo(batch, view->bo,
PAN_BO_ACCESS_SHARED | PAN_BO_ACCESS_READ |
panfrost_bo_access_for_stage(st));
- return view->midgard_bo->gpu;
+ return view->bo->gpu;
}
static void
{
struct panfrost_resource *rsrc = pan_resource(view->base.texture);
if (view->layout != rsrc->layout) {
- panfrost_bo_unreference(view->midgard_bo);
+ panfrost_bo_unreference(view->bo);
panfrost_create_sampler_view_bo(view, pctx, &rsrc->base);
}
}
PAN_BO_ACCESS_SHARED | PAN_BO_ACCESS_READ |
panfrost_bo_access_for_stage(stage));
- panfrost_batch_add_bo(batch, view->bifrost_bo,
+ panfrost_batch_add_bo(batch, view->bo,
PAN_BO_ACCESS_SHARED | PAN_BO_ACCESS_READ |
panfrost_bo_access_for_stage(stage));
so->base.u.tex.last_layer,
type, prsrc->layout);
- so->bifrost_bo = pan_bo_create(device, size, 0);
+ so->bo = pan_bo_create(device, size, 0);
so->bifrost_descriptor = rzalloc(pctx, struct bifrost_texture_descriptor);
panfrost_new_texture_bifrost(
panfrost_translate_swizzle_4(composed_swizzle),
prsrc->bo->gpu,
prsrc->slices,
- so->bifrost_bo);
+ so->bo);
} else {
unsigned size = panfrost_estimate_texture_payload_size(
so->base.u.tex.first_level,
type, prsrc->layout);
size += sizeof(struct mali_texture_descriptor);
- so->midgard_bo = pan_bo_create(device, size, 0);
+ so->bo = pan_bo_create(device, size, 0);
panfrost_new_texture(
- so->midgard_bo->cpu,
+ so->bo->cpu,
texture->width0, texture->height0,
texture->depth0, array_size,
so->base.format,
struct panfrost_sampler_view *view = (struct panfrost_sampler_view *) pview;
pipe_resource_reference(&pview->texture, NULL);
- panfrost_bo_unreference(view->midgard_bo);
- panfrost_bo_unreference(view->bifrost_bo);
+ panfrost_bo_unreference(view->bo);
if (view->bifrost_descriptor)
ralloc_free(view->bifrost_descriptor);
ralloc_free(view);
struct panfrost_sampler_view {
struct pipe_sampler_view base;
- struct panfrost_bo *midgard_bo;
- struct panfrost_bo *bifrost_bo;
+ struct panfrost_bo *bo;
struct bifrost_texture_descriptor *bifrost_descriptor;
enum mali_texture_layout layout;
};