summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-05-20 15:42:34 -0700
committerJason Ekstrand <[email protected]>2016-05-23 19:12:34 -0700
commit7374d006b6d1f09483c986a3f1b5f55cce007b04 (patch)
treee6e1bab1c4fb821623c7107b942af07d33fb8b5c /src/intel/isl/isl.h
parent03a82dc5d1056e733c39326983b1b1755da10d48 (diff)
isl: Add per-gen format introspection
This is just a copy-and-paste from brw_surface_formats.c. For the supports_vertex_fetch function, we do a bit more work so that it properly handles Bay Trail.
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r--src/intel/isl/isl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index f8a2f376ccd..daa5428f9f3 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -863,6 +863,19 @@ isl_format_get_name(enum isl_format fmt)
return isl_format_layouts[fmt].name;
}
+bool isl_format_supports_rendering(const struct brw_device_info *devinfo,
+ enum isl_format format);
+bool isl_format_supports_alpha_blending(const struct brw_device_info *devinfo,
+ enum isl_format format);
+bool isl_format_supports_sampling(const struct brw_device_info *devinfo,
+ enum isl_format format);
+bool isl_format_supports_filtering(const struct brw_device_info *devinfo,
+ enum isl_format format);
+bool isl_format_supports_vertex_fetch(const struct brw_device_info *devinfo,
+ enum isl_format format);
+bool isl_format_supports_lossless_compression(const struct brw_device_info *devinfo,
+ enum isl_format format);
+
bool isl_format_has_unorm_channel(enum isl_format fmt) ATTRIBUTE_CONST;
bool isl_format_has_snorm_channel(enum isl_format fmt) ATTRIBUTE_CONST;
bool isl_format_has_ufloat_channel(enum isl_format fmt) ATTRIBUTE_CONST;