Mesa (master): mesa: Remove fprintf referring to libdxtn

Matt Turner mattst88 at kemper.freedesktop.org
Tue Oct 3 02:44:21 UTC 2017


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

Author: Matt Turner <mattst88 at gmail.com>
Date:   Thu Sep 28 14:09:55 2017 -0700

mesa: Remove fprintf referring to libdxtn

When this file is included by Gallium, the fprintf causes it to fail to
compile. This is an unreachable error case, and we shouldn't be calling
fprintf directly.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

---

 src/mesa/main/texcompress_s3tc_tmp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/texcompress_s3tc_tmp.h b/src/mesa/main/texcompress_s3tc_tmp.h
index 3abce6e904..61630f2475 100644
--- a/src/mesa/main/texcompress_s3tc_tmp.h
+++ b/src/mesa/main/texcompress_s3tc_tmp.h
@@ -983,7 +983,7 @@ static void tx_compress_dxtn(GLint srccomps, GLint width, GLint height, const GL
       }
       break;
    default:
-      fprintf(stderr, "libdxtn: Bad dstFormat %d in tx_compress_dxtn\n", destFormat);
+      assert(false);
       return;
    }
 }




More information about the mesa-commit mailing list