diff options
author | Chad Versace <[email protected]> | 2015-11-13 09:27:06 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-11-13 10:31:37 -0800 |
commit | b1bb270590ae969b86a3f838d83e06466f345723 (patch) | |
tree | 324fa91776a769f3515a8c2c5ecc68b3d547b110 /src/vulkan/isl.h | |
parent | 477383e9ac2fd43f8b2176c13da7116f5d20b959 (diff) |
isl: Add struct isl_device
The struct is incomplete (it contains only the gen). And it's nowhere
used yet.
It will be used later for surface layout calculations.
Diffstat (limited to 'src/vulkan/isl.h')
-rw-r--r-- | src/vulkan/isl.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/vulkan/isl.h b/src/vulkan/isl.h index b170c215b35..7680fa9ef9a 100644 --- a/src/vulkan/isl.h +++ b/src/vulkan/isl.h @@ -28,6 +28,7 @@ #pragma once +#include <stdbool.h> #include <stdint.h> #ifdef __cplusplus @@ -305,6 +306,16 @@ enum isl_txc { ISL_TXC_ETC2, }; +struct isl_device { + /** + * @brief Hardware generation, 10x. + * + * For example, gen is 70 for Ivybridge and Baytrail; gen is 75 for + * Haswell. + */ + uint8_t gen; +}; + struct isl_channel_layout { enum isl_base_type type; uint8_t bits; /**< Size in bits */ @@ -333,6 +344,9 @@ struct isl_format_layout { enum isl_txc txc; }; +void +isl_device_init(struct isl_device *dev, uint8_t gen10x); + extern const struct isl_format_layout isl_format_layouts[]; #ifdef __cplusplus |