Mesa (master): i965: Fix "SIMD16 unsupported" messages via KHR_debug.

Kenneth Graunke kwg at kemper.freedesktop.org
Tue Apr 8 07:03:45 UTC 2014


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Apr  6 17:16:28 2014 -0700

i965: Fix "SIMD16 unsupported" messages via KHR_debug.

Performance warnings are logged via KHR_debug in addition to when the
INTEL_DEBUG=perf environment variable is set.  Without this, messages in
debug contexts would have "(null)" for the reason.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

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

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index ad9c1f5..7eac9ad 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -697,7 +697,7 @@ fs_visitor::no16(const char *format, ...)
    } else {
       simd16_unsupported = true;
 
-      if (INTEL_DEBUG & DEBUG_PERF) {
+      if (brw->perf_debug) {
          if (no16_msg)
             ralloc_vasprintf_append(&no16_msg, format, va);
          else




More information about the mesa-commit mailing list