summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_image.c
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2015-09-28 17:54:59 -0700
committerNanley Chery <[email protected]>2015-11-09 15:41:41 -0800
commit3ee923f1c2ef0832ebd6da445548e0a651aaae80 (patch)
treebf05d111b21099b211480947558a4abf859c6285 /src/vulkan/anv_image.c
parent17fa3d3572d7cafa95cfe31c365bbc15b3c789e3 (diff)
anv: Rename cpp variable to "bs"
cpp (chars-per-pixel) is an integer that fails to give useful data about most compressed formats. Instead, rename it to "bs" which stands for block size (in bytes). v2: Rename vk_format_for_bs to vk_format_for_size (Chad) Use "block size" instead of "bs" in error message (Chad) Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/vulkan/anv_image.c')
-rw-r--r--src/vulkan/anv_image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vulkan/anv_image.c b/src/vulkan/anv_image.c
index e3991e22234..8aa74c2e191 100644
--- a/src/vulkan/anv_image.c
+++ b/src/vulkan/anv_image.c
@@ -225,7 +225,7 @@ anv_image_make_surface(const struct anv_image_create_info *create_info,
*/
assert(anv_is_aligned(qpitch, j));
- uint32_t stride = align_u32(mt_width * format->cpp, tile_info->width);
+ uint32_t stride = align_u32(mt_width * format->bs, tile_info->width);
if (create_info->stride > 0)
stride = create_info->stride;
@@ -490,14 +490,14 @@ anv_validate_CreateImageView(VkDevice _device,
assert(!image->format->has_stencil);
assert(!view_format_info->depth_format);
assert(!view_format_info->has_stencil);
- assert(view_format_info->cpp == image->format->cpp);
+ assert(view_format_info->bs == image->format->bs);
} else if (subresource->aspectMask & ds_flags) {
assert((subresource->aspectMask & ~ds_flags) == 0);
if (subresource->aspectMask & VK_IMAGE_ASPECT_STENCIL_BIT) {
assert(image->format->depth_format);
assert(view_format_info->depth_format);
- assert(view_format_info->cpp == image->format->cpp);
+ assert(view_format_info->bs == image->format->bs);
}
if (subresource->aspectMask & VK_IMAGE_ASPECT_STENCIL) {