OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33000e7
)
anv: Remove unused variable 'gen'
author
Chad Versace
<chadversary@chromium.org>
Thu, 2 Nov 2017 22:34:04 +0000
(15:34 -0700)
committer
Chad Versace
<chadversary@chromium.org>
Tue, 7 Nov 2017 17:06:30 +0000
(09:06 -0800)
In anv_physical_device_get_format_properties().
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_formats.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_formats.c
b/src/intel/vulkan/anv_formats.c
index
cece065
..
cfff099
100644
(file)
--- 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) {