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@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Kenneth Graunke 2014-04-06 17:16:28 -07:00
parent ee12a03805
commit 6bda3a5267
1 changed files with 1 additions and 1 deletions

View 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