summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_formats.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-13 15:20:28 -0700
committerJason Ekstrand <[email protected]>2015-10-13 15:23:24 -0700
commit28ed02588a6204fc3272de84dab009b5bb19e07d (patch)
tree977a25242a0de3b85a3436be2380e117b904cdf1 /src/vulkan/anv_formats.c
parentaccbf178eb0741698d6837499f382d26a7fba5ae (diff)
anv/formats: Use the surface_format_info struct from brw_surface_formats.h
The surface_format_info struct changed in mesa but the copied-and-pasted version didn't get updated on the last mesa master merge. This both fixes the bug and should prevent this in the future.
Diffstat (limited to 'src/vulkan/anv_formats.c')
-rw-r--r--src/vulkan/anv_formats.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c
index 2690ff24692..4efc537676c 100644
--- a/src/vulkan/anv_formats.c
+++ b/src/vulkan/anv_formats.c
@@ -22,6 +22,7 @@
*/
#include "anv_private.h"
+#include "brw_surface_formats.h"
#define UNSUPPORTED 0xffff
@@ -220,21 +221,6 @@ anv_format_for_vk_format(VkFormat format)
// Format capabilities
-struct surface_format_info {
- bool exists;
- int sampling;
- int filtering;
- int shadow_compare;
- int chroma_key;
- int render_target;
- int alpha_blend;
- int input_vb;
- int streamed_output_vb;
- int color_processing;
-};
-
-extern const struct surface_format_info surface_formats[];
-
VkResult anv_validate_GetPhysicalDeviceFormatProperties(
VkPhysicalDevice physicalDevice,
VkFormat _format,
@@ -250,7 +236,7 @@ anv_physical_device_get_format_properties(struct anv_physical_device *physical_d
const struct anv_format *format,
VkFormatProperties *out_properties)
{
- const struct surface_format_info *info;
+ const struct brw_surface_format_info *info;
int gen;
VkFormatFeatureFlags flags;