static void
img_init_alignments(struct ilo_image *img,
- struct ilo_image_params *params)
+ const struct ilo_image_params *params)
{
const struct pipe_resource *templ = params->templ;
static void
img_init_tiling(struct ilo_image *img,
- struct ilo_image_params *params)
+ const struct ilo_image_params *params)
{
const struct pipe_resource *templ = params->templ;
unsigned preferred_tilings;
static void
img_init_walk_gen7(struct ilo_image *img,
- struct ilo_image_params *params)
+ const struct ilo_image_params *params)
{
const struct pipe_resource *templ = params->templ;
static void
img_init_walk_gen6(struct ilo_image *img,
- struct ilo_image_params *params)
+ const struct ilo_image_params *params)
{
/*
* From the Sandy Bridge PRM, volume 1 part 1, page 115:
static void
img_init_walk(struct ilo_image *img,
- struct ilo_image_params *params)
+ const struct ilo_image_params *params)
{
if (ilo_dev_gen(params->dev) >= ILO_GEN(7))
img_init_walk_gen7(img, params);
}
static bool
-img_want_mcs(struct ilo_image *img,
- struct ilo_image_params *params)
+img_want_mcs(const struct ilo_image *img,
+ const struct ilo_image_params *params)
{
const struct pipe_resource *templ = params->templ;
bool want_mcs = false;
static void
img_init_aux(struct ilo_image *img,
- struct ilo_image_params *params)
+ const struct ilo_image_params *params)
{
if (img_want_hiz(img, params))
img->aux.type = ILO_IMAGE_AUX_HIZ;
/* note that this may force the texture to be linear */
static void
img_calculate_bo_size(struct ilo_image *img,
- struct ilo_image_params *params)
+ const struct ilo_image_params *params)
{
assert(params->max_x % img->block_width == 0);
assert(params->max_y % img->block_height == 0);
static void
img_calculate_hiz_size(struct ilo_image *img,
- struct ilo_image_params *params)
+ const struct ilo_image_params *params)
{
const struct pipe_resource *templ = params->templ;
const unsigned hz_align_j = 8;
static void
img_calculate_mcs_size(struct ilo_image *img,
- struct ilo_image_params *params)
+ const struct ilo_image_params *params)
{
const struct pipe_resource *templ = params->templ;
int mcs_width, mcs_height, mcs_cpp;