i965: advertise ASTC support for Skylake
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 19 May 2015 19:28:20 +0000 (12:28 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Tue, 1 Sep 2015 00:29:36 +0000 (17:29 -0700)
v2: remove OES ASTC extension reference.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/drivers/dri/i965/intel_extensions.c

index 4365b719801d998cb9bef4db564beca0728bdbf8..3c764be07fb578db5f14ddb0f39eba6a8fd15d68 100644 (file)
@@ -354,6 +354,11 @@ intelInitExtensions(struct gl_context *ctx)
       ctx->Extensions.ARB_stencil_texturing = true;
    }
 
+   if (brw->gen >= 9) {
+      ctx->Extensions.KHR_texture_compression_astc_ldr = true;
+      ctx->Extensions.KHR_texture_compression_astc_hdr = true;
+   }
+
    if (ctx->API == API_OPENGL_CORE)
       ctx->Extensions.ARB_base_instance = true;
    if (ctx->API != API_OPENGL_CORE)