diff options
author | Jason Ekstrand <[email protected]> | 2017-06-12 16:52:20 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-07-12 21:15:46 -0700 |
commit | a668ba9c1888de1417c55b6181e287ccfaa7a6f6 (patch) | |
tree | 0385d3a07d41128cef0990a8b33e804561c93bd8 /src/intel/isl/isl.h | |
parent | 285242e6747e9ca06489617e008ef71f3cbaf056 (diff) |
intel/isl: Add basic modifier introspection
Reviewed-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r-- | src/intel/isl/isl.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index 07ff01a4270..563bcfb04d6 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -1032,6 +1032,25 @@ struct isl_tile_info { }; /** + * Metadata about a DRM format modifier. + */ +struct isl_drm_modifier_info { + uint64_t modifier; + + /** Text name of the modifier */ + const char *name; + + /** ISL tiling implied by this modifier */ + enum isl_tiling tiling; + + /** ISL aux usage implied by this modifier */ + enum isl_aux_usage aux_usage; + + /** Whether or not this modifier supports clear color */ + bool supports_clear_color; +}; + +/** * @brief Input to surface initialization * * @invariant width >= 1 @@ -1494,6 +1513,9 @@ isl_tiling_is_std_y(enum isl_tiling tiling) return (1u << tiling) & ISL_TILING_STD_Y_MASK; } +const struct isl_drm_modifier_info * ATTRIBUTE_CONST +isl_drm_modifier_get_info(uint64_t modifier); + struct isl_extent2d ATTRIBUTE_CONST isl_get_interleaved_msaa_px_size_sa(uint32_t samples); |