summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.h
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2016-02-26 14:49:51 -0800
committerNanley Chery <[email protected]>2016-03-03 10:56:15 -0800
commit456f5b0314747c5e47435a6d9d708ef7895c7a49 (patch)
tree180f80f7e6e2e005151b7aa7493d7d6d398b680b /src/intel/isl/isl.h
parent206414f92edb4a2149b504f9c296f687a9572ffe (diff)
isl: Add function to get intratile offsets from x/y offsets
Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r--src/intel/isl/isl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index 7456975014b..5a48bce6c64 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -1162,6 +1162,18 @@ isl_surf_get_image_intratile_offset_el(const struct isl_device *dev,
uint32_t *y_offset_el);
/**
+ * See above.
+ */
+void
+isl_surf_get_image_intratile_offset_el_xy(const struct isl_device *dev,
+ const struct isl_surf *surf,
+ uint32_t total_x_offset_el,
+ uint32_t total_y_offset_el,
+ uint32_t *base_address_offset,
+ uint32_t *x_offset_el,
+ uint32_t *y_offset_el);
+
+/**
* @brief Get value of 3DSTATE_DEPTH_BUFFER.SurfaceFormat
*
* @pre surf->usage has ISL_SURF_USAGE_DEPTH_BIT