*/
struct iris_sampler_view {
// XXX: just store the resource, not the rest of this
- struct pipe_sampler_view pipe;
+ struct pipe_sampler_view base;
struct isl_view view;
/** The resource (BO) holding our SURFACE_STATE. */
return NULL;
/* initialize base object */
- isv->pipe = *tmpl;
- isv->pipe.context = ctx;
- isv->pipe.texture = NULL;
- pipe_reference_init(&isv->pipe.reference, 1);
- pipe_resource_reference(&isv->pipe.texture, tex);
+ isv->base = *tmpl;
+ isv->base.context = ctx;
+ isv->base.texture = NULL;
+ pipe_reference_init(&isv->base.reference, 1);
+ pipe_resource_reference(&isv->base.texture, tex);
void *map = upload_state(ice->state.surface_uploader, &isv->surface_state,
4 * GENX(RENDER_SURFACE_STATE_length), 64);
.mocs = MOCS_WB);
}
- return &isv->pipe;
+ return &isv->base;
}
static void
struct iris_screen *screen = (struct iris_screen *)ctx->screen;
const struct gen_device_info *devinfo = &screen->devinfo;
struct iris_surface *surf = calloc(1, sizeof(struct iris_surface));
- struct pipe_surface *psurf = &surf->pipe;
+ struct pipe_surface *psurf = &surf->base;
struct iris_resource *res = (struct iris_resource *) tex;
if (!surf)
static uint32_t
use_sampler_view(struct iris_batch *batch, struct iris_sampler_view *isv)
{
- iris_use_pinned_bo(batch, iris_resource_bo(isv->pipe.texture), false);
+ iris_use_pinned_bo(batch, iris_resource_bo(isv->base.texture), false);
iris_use_pinned_bo(batch, iris_resource_bo(isv->surface_state.res), false);
return isv->surface_state.offset;