[Mesa-dev] [RFC PATCH v1 01/30] anv: Remove unused variable 'gen'

Chad Versace chadversary at chromium.org
Tue Nov 7 14:47:42 UTC 2017


In anv_physical_device_get_format_properties().

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
 src/intel/vulkan/anv_formats.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c
index cece065398e..cfff0991bef 100644
--- a/src/intel/vulkan/anv_formats.c
+++ b/src/intel/vulkan/anv_formats.c
@@ -541,10 +541,6 @@ anv_physical_device_get_format_properties(struct anv_physical_device *physical_d
                                           VkFormat vk_format,
                                           VkFormatProperties *out_properties)
 {
-   int gen = physical_device->info.gen * 10;
-   if (physical_device->info.is_haswell)
-      gen += 5;
-
    const struct anv_format *format = anv_get_format(vk_format);
    VkFormatFeatureFlags linear = 0, tiled = 0, buffer = 0;
    if (format == NULL) {
-- 
2.13.0



More information about the mesa-dev mailing list