[Mesa-dev] [PATCH 27/27] intel: Enable support for GL_COMPRESSED_SIGNED_RG11_EAC textures
Anuj Phogat
anuj.phogat at gmail.com
Fri Oct 19 16:29:02 PDT 2012
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 1 +
src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index a2721f6..070d7f6 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -568,6 +568,7 @@ brw_init_surface_formats(struct brw_context *brw)
ctx->TextureFormatSupported[MESA_FORMAT_ETC2_R11_EAC] = true;
ctx->TextureFormatSupported[MESA_FORMAT_ETC2_RG11_EAC] = true;
ctx->TextureFormatSupported[MESA_FORMAT_ETC2_SIGNED_R11_EAC] = true;
+ ctx->TextureFormatSupported[MESA_FORMAT_ETC2_SIGNED_RG11_EAC] = true;
}
bool
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index a35156d..9a808a8 100644
--- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
@@ -236,6 +236,11 @@ intel_miptree_create(struct intel_context *intel,
wraps_etc2 = true;
format = MESA_FORMAT_SIGNED_R16;
break;
+ case MESA_FORMAT_ETC2_SIGNED_RG11_EAC:
+ etc2_format = format;
+ wraps_etc2 = true;
+ format = MESA_FORMAT_SIGNED_GR1616;
+ break;
default:
/* Non ETC1 / ETC2 format */
break;
--
1.7.7.6
More information about the mesa-dev
mailing list