aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-07-17 19:48:22 -0700
committerJason Ekstrand <[email protected]>2017-07-22 20:59:22 -0700
commitd4de403f9191ed995e1684dbe50011e55cd62501 (patch)
treecd562ff18ead8db841d4b5dc77489062e7aad602 /src/intel/isl/isl.h
parentb26b2490e523443b4c967980bcc963ef9783333d (diff)
intel/isl: Add a helper for determining if a color is 0/1
Reviewed-by: Topi Pohjolainen <[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 b61a0dd8619..1e5b8689542 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -1637,6 +1637,9 @@ isl_extent4d(uint32_t width, uint32_t height, uint32_t depth,
return e;
}
+bool isl_color_value_is_zero_one(union isl_color_value value,
+ enum isl_format format);
+
#define isl_surf_init(dev, surf, ...) \
isl_surf_init_s((dev), (surf), \
&(struct isl_surf_init_info) { __VA_ARGS__ });