summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2015-05-02 14:24:04 +0800
committerChia-I Wu <[email protected]>2015-05-02 22:14:06 +0800
commit3f9415077b1c8abcf8f93231f8d72b5017ea6343 (patch)
treebb531413b68aebcafe99a65e5806a8175b08677d /src/gallium/drivers/ilo
parentc209aa7a8f08acb89f7294328589f47a88b44703 (diff)
ilo: constify ilo_image_params
Make ilo_image_params const in functions that do not modify it.
Diffstat (limited to 'src/gallium/drivers/ilo')
-rw-r--r--src/gallium/drivers/ilo/core/ilo_image.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gallium/drivers/ilo/core/ilo_image.c b/src/gallium/drivers/ilo/core/ilo_image.c
index 174e2e17138..fbdf1957ed1 100644
--- a/src/gallium/drivers/ilo/core/ilo_image.c
+++ b/src/gallium/drivers/ilo/core/ilo_image.c
@@ -299,7 +299,7 @@ img_init_lods(struct ilo_image *img,
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;
@@ -548,7 +548,7 @@ img_get_valid_tilings(const struct ilo_image *img,
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;
@@ -591,7 +591,7 @@ img_init_tiling(struct ilo_image *img,
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;
@@ -638,7 +638,7 @@ img_init_walk_gen7(struct ilo_image *img,
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:
@@ -662,7 +662,7 @@ img_init_walk_gen6(struct ilo_image *img,
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);
@@ -725,8 +725,8 @@ img_init_size_and_format(struct ilo_image *img,
}
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;
@@ -821,7 +821,7 @@ img_want_hiz(const struct ilo_image *img,
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;
@@ -897,7 +897,7 @@ img_align(struct ilo_image *img, struct ilo_image_params *params)
/* 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);
@@ -1006,7 +1006,7 @@ img_calculate_bo_size(struct ilo_image *img,
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;
@@ -1170,7 +1170,7 @@ img_calculate_hiz_size(struct ilo_image *img,
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;