summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-02-07 09:14:46 -0800
committerJason Ekstrand <[email protected]>2018-05-09 11:16:33 -0700
commit242f6f7492a0e5b0cafa003c61f1d9e8ccce8889 (patch)
tree79a044f4d4b504d8a99c0f0877c91974d299dac9 /src/intel/isl/isl.h
parentdad67cc24576622ef989a9bb66a5b13cc275cfae (diff)
intel/isl: Add a helper for composing swizzles
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r--src/intel/isl/isl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index fc1ff5f3f88..3c175d2d051 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -1744,6 +1744,9 @@ bool
isl_swizzle_supports_rendering(const struct gen_device_info *devinfo,
struct isl_swizzle swizzle);
+struct isl_swizzle
+isl_swizzle_compose(struct isl_swizzle first, struct isl_swizzle second);
+
#define isl_surf_init(dev, surf, ...) \
isl_surf_init_s((dev), (surf), \
&(struct isl_surf_init_info) { __VA_ARGS__ });