summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_wsi_wayland.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_wsi_wayland.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_wsi_wayland.c')
-rw-r--r--src/vulkan/anv_wsi_wayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_wsi_wayland.c b/src/vulkan/anv_wsi_wayland.c
index f87f3ffef19..1828b090335 100644
--- a/src/vulkan/anv_wsi_wayland.c
+++ b/src/vulkan/anv_wsi_wayland.c
@@ -60,7 +60,7 @@ wsi_wl_display_add_vk_format(struct wsi_wl_display *display, VkFormat format)
return;
/* Don't add formats which aren't supported by the driver */
- if (anv_format_for_vk_format(format)->cpp == 0)
+ if (anv_format_for_vk_format(format)->bs == 0)
return;
f = anv_vector_add(&display->formats);