i965: Give dump_instructions() a filename argument.
authorMatt Turner <mattst88@gmail.com>
Thu, 29 May 2014 20:08:59 +0000 (13:08 -0700)
committerMatt Turner <mattst88@gmail.com>
Sun, 1 Jun 2014 20:18:52 +0000 (13:18 -0700)
commite9bf1662b048e5927f841e84719a3180650a2b0a
tree51032c7bc3b0fce6f79cb589e829c53d22adf34b
parent56d6dcf4f771d57d2759b2a5c5006f24444c696f
i965: Give dump_instructions() a filename argument.

This will allow debugging code to dump the IR after an optimization pass
makes progress (the next patch). Only let it open and write to a file if
the effective user isn't root.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_shader.h