diff options
author | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2016-02-08 18:13:17 +0200 |
---|---|---|
committer | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2016-05-12 19:49:22 +0300 |
commit | a6e0f1cc7fff4009ea204c75d3f8a2f1e26e42ef (patch) | |
tree | 2120c9d77f21f9c04bd90f10807ee61ff9920116 /src/mesa/drivers/dri/i965/intel_mipmap_tree.h | |
parent | 874c5f05dbc8eca2d14a14f32fdd964808c53b7e (diff) | |
download | external_mesa3d-a6e0f1cc7fff4009ea204c75d3f8a2f1e26e42ef.zip external_mesa3d-a6e0f1cc7fff4009ea204c75d3f8a2f1e26e42ef.tar.gz external_mesa3d-a6e0f1cc7fff4009ea204c75d3f8a2f1e26e42ef.tar.bz2 |
i965: Add helper for lossless compression support
v2: Check explicitly against base type of GL_FLOAT instead of
using _mesa_is_format_integer_color(). Otherwise we miss
GL_UNSIGNED_NORMALIZED.
v3 (Ben): Also call intel_miptree_supports_non_msrt_fast_clear()
in order to really check everything.
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h index 7862152..4c6877e 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h @@ -679,6 +679,10 @@ intel_miptree_supports_non_msrt_fast_clear(struct brw_context *brw, const struct intel_mipmap_tree *mt); bool +intel_miptree_supports_lossless_compressed(struct brw_context *brw, + const struct intel_mipmap_tree *mt); + +bool intel_miptree_alloc_non_msrt_mcs(struct brw_context *brw, struct intel_mipmap_tree *mt); |