diff options
author | Chia-I Wu <[email protected]> | 2015-05-02 12:04:26 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-05-02 22:14:06 +0800 |
commit | c209aa7a8f08acb89f7294328589f47a88b44703 (patch) | |
tree | 624b862372c9a855af19bcb367af8010f8fd29bd /src/gallium/drivers/ilo/ilo_resource.c | |
parent | 9b72bf5bd22c14c4cc17b6945d4b74f4c0eae80a (diff) |
ilo: improve readability of ilo_image
Improve docs, rename struct fields, and reorder walk types. No real changes.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_resource.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_resource.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/ilo/ilo_resource.c b/src/gallium/drivers/ilo/ilo_resource.c index ae4ae59f7ef..aafa37c4f26 100644 --- a/src/gallium/drivers/ilo/ilo_resource.c +++ b/src/gallium/drivers/ilo/ilo_resource.c @@ -248,14 +248,14 @@ tex_create_hiz(struct ilo_texture *tex) unsigned lv; bo = intel_winsys_alloc_bo(is->dev.winsys, "hiz texture", - tex->image.aux_stride * tex->image.aux_height, false); + tex->image.aux.bo_stride * tex->image.aux.bo_height, false); if (!bo) return false; ilo_image_set_aux_bo(&tex->image, bo); for (lv = 0; lv <= templ->last_level; lv++) { - if (tex->image.aux_enables & (1 << lv)) { + if (tex->image.aux.enables & (1 << lv)) { const unsigned num_slices = (templ->target == PIPE_TEXTURE_3D) ? u_minify(templ->depth0, lv) : templ->array_size; unsigned flags = ILO_TEXTURE_HIZ; @@ -277,10 +277,10 @@ tex_create_mcs(struct ilo_texture *tex) struct ilo_screen *is = ilo_screen(tex->base.screen); struct intel_bo *bo; - assert(tex->image.aux_enables == (1 << (tex->base.last_level + 1)) - 1); + assert(tex->image.aux.enables == (1 << (tex->base.last_level + 1)) - 1); bo = intel_winsys_alloc_bo(is->dev.winsys, "mcs texture", - tex->image.aux_stride * tex->image.aux_height, false); + tex->image.aux.bo_stride * tex->image.aux.bo_height, false); if (!bo) return false; @@ -319,7 +319,7 @@ tex_alloc_bos(struct ilo_texture *tex, if (tex->image.separate_stencil && !tex_create_separate_stencil(tex)) return false; - switch (tex->image.aux) { + switch (tex->image.aux.type) { case ILO_IMAGE_AUX_HIZ: if (!tex_create_hiz(tex)) { /* Separate Stencil Buffer requires HiZ to be enabled */ |