struct iris_bo *bo,
void *map,
enum isl_format format,
+ struct isl_swizzle swizzle,
unsigned offset,
unsigned size)
{
.address = bo->gtt_offset + offset,
.size_B = final_size,
.format = format,
- .swizzle = ISL_SWIZZLE_IDENTITY,
+ .swizzle = swizzle,
.stride_B = cpp,
.mocs = mocs(bo));
}
}
} else {
fill_buffer_surface_state(&screen->isl_dev, isv->res->bo, map,
- isv->view.format, tmpl->u.buf.offset,
- tmpl->u.buf.size);
+ isv->view.format, ISL_SWIZZLE_IDENTITY,
+ tmpl->u.buf.offset, tmpl->u.buf.size);
}
return &isv->base;
if (untyped_fallback) {
fill_buffer_surface_state(&screen->isl_dev, res->bo, map,
- isl_fmt, 0, res->bo->size);
+ isl_fmt, ISL_SWIZZLE_IDENTITY,
+ 0, res->bo->size);
} else {
/* Images don't support compression */
unsigned aux_modes = 1 << ISL_AUX_USAGE_NONE;
&res->surf, &view);
} else {
fill_buffer_surface_state(&screen->isl_dev, res->bo, map,
- isl_fmt, img->u.buf.offset,
- img->u.buf.size);
+ isl_fmt, ISL_SWIZZLE_IDENTITY,
+ img->u.buf.offset, img->u.buf.size);
fill_buffer_image_param(&shs->image[start_slot + i].param,
img->format, img->u.buf.size);
}