i965: Enable native ETC texture support on Broadwell.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Dec 2013 23:15:01 +0000 (15:15 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Jan 2014 08:58:17 +0000 (00:58 -0800)
Broadwell, like Baytrail, has native ETC texture support.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 0818226f3c4a2ead5688fcae5c7f98b90a8c3f4a..ea929d4e83fc7d6acaa0b9bef80726e49c2cab93 100644 (file)
@@ -501,7 +501,7 @@ intel_miptree_create(struct brw_context *brw,
    gl_format etc_format = MESA_FORMAT_NONE;
    GLuint total_width, total_height;
 
-   if (!brw->is_baytrail) {
+   if (brw->gen < 8 && !brw->is_baytrail) {
       switch (format) {
       case MESA_FORMAT_ETC1_RGB8:
          format = MESA_FORMAT_RGBX8888_REV;