Mesa (master): i965: Enable native ETC texture support on Broadwell.

Kenneth Graunke kwg at kemper.freedesktop.org
Tue Jan 14 08:55:55 UTC 2014


Module: Mesa
Branch: master
Commit: 8618407d15ead94358ccd691f598ca1c76c46385
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8618407d15ead94358ccd691f598ca1c76c46385

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Thu Dec 19 15:15:01 2013 -0800

i965: Enable native ETC texture support on Broadwell.

Broadwell, like Baytrail, has native ETC texture support.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/mesa/drivers/dri/i965/intel_mipmap_tree.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 0818226..ea929d4 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -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;




More information about the mesa-commit mailing list