Mesa (main): isl: Document more members of isl_surf
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 18 13:29:58 UTC 2021
Module: Mesa
Branch: main
Commit: d07ec294bb3e86a7a7f896f2d417ceffff093b1c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d07ec294bb3e86a7a7f896f2d417ceffff093b1c
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Mon Jun 14 21:33:18 2021 -0500
isl: Document more members of isl_surf
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11366>
---
src/intel/isl/isl.h | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index 34e14cf7131..c2fb791c23d 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -1247,10 +1247,29 @@ struct isl_surf_init_info {
};
struct isl_surf {
+ /** Dimensionality of the surface */
enum isl_surf_dim dim;
+
+ /**
+ * Spatial layout of the surface in memory
+ *
+ * This is dependent on isl_surf::dim and hardware generation.
+ */
enum isl_dim_layout dim_layout;
+
+ /** Spatial layout of the samples if isl_surf::samples > 1 */
enum isl_msaa_layout msaa_layout;
+
+ /** Memory tiling used by the surface */
enum isl_tiling tiling;
+
+ /**
+ * Base image format of the surface
+ *
+ * This need not be the same as the format specified in isl_view::format
+ * when a surface state is constructed. It must, however, have the same
+ * number of bits per pixel or else memory calculations will go wrong.
+ */
enum isl_format format;
/**
@@ -1277,7 +1296,14 @@ struct isl_surf {
*/
struct isl_extent4d phys_level0_sa;
+ /** Number of miplevels in the surface */
uint32_t levels;
+
+ /**
+ * Number of samples in the surface
+ *
+ * @invariant samples >= 1
+ */
uint32_t samples;
/** Total size of the surface, in bytes. */
More information about the mesa-commit
mailing list