summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.h
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2017-02-24 16:30:13 -0800
committerChad Versace <[email protected]>2017-03-28 09:44:44 -0700
commite9017d58dcd0117c67788f7e2084b09f5d47a279 (patch)
tree936363f5b519543121051095777d56049f455e0c /src/intel/isl/isl.h
parent23802dafc2d5e04e6d2d444855961082b5887400 (diff)
isl: Let isl_surf_init's caller set the exact row pitch (v2)
The caller does so by setting the new field isl_surf_init_info::row_pitch. v2: Validate the requested row_pitch. Reviewed-by: Jason Ekstrand <[email protected]> (v2)
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r--src/intel/isl/isl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index 9d92906ca71..012be7b98e7 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -813,6 +813,12 @@ struct isl_surf_init_info {
/** Lower bound for isl_surf::pitch, in bytes. */
uint32_t min_pitch;
+ /**
+ * Exact value for isl_surf::row_pitch. Ignored if zero. isl_surf_init()
+ * will fail if this is misaligned or out of bounds.
+ */
+ uint32_t row_pitch;
+
isl_surf_usage_flags_t usage;
/** Flags that alter how ISL selects isl_surf::tiling. */