mesa: add _mesa_log(), _mesa_get_log_file() functions
authorBrian Paul <brianp@vmware.com>
Tue, 14 Apr 2015 16:24:22 +0000 (10:24 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 15 Apr 2015 22:30:49 +0000 (16:30 -0600)
commit2926bbfb280b2eb195cc031991c956da38d89508
tree670f7450f6d5e08ad1f7054023dedc0edcb2689a
parent11bfee4c3a9f285f4cd5467dac1af5f7f0dfa307
mesa: add _mesa_log(), _mesa_get_log_file() functions

_mesa_log() simply writes log information to stderr or MESA_LOG_FILE.
_mesa_get_log_file() returns the file handle to use for logging.

This will be used for shader dumping/logging instead of always printing
to stderr.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/main/errors.c
src/mesa/main/errors.h