i965: Fix "SIMD16 unsupported" messages via KHR_debug.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Apr 2014 00:16:28 +0000 (17:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Apr 2014 07:01:34 +0000 (00:01 -0700)
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@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index ad9c1f5eb0124c218af889ba0c743bf98eda9be3..7eac9ad75b36d29f45b9957212b34a8d98555b44 100644 (file)
@@ -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