From 8ace547e8d743dcc51fc3b72ba30067f85232996 Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Mon, 23 Apr 2018 18:14:59 -0500 Subject: [PATCH] swr/rast: Output rasterizer dir to console since it's process specific Reviewed-by: Bruce Cherniak --- .../rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp index 54d24861de5..ceded82b73f 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp +++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp @@ -36,6 +36,7 @@ #include "${event_header}" #include #include +#include #include namespace ArchRast @@ -57,7 +58,9 @@ namespace ArchRast std::stringstream outDir; outDir << KNOB_DEBUG_OUTPUT_DIR << pBaseName << "_" << pid << std::ends; mOutputDir = outDir.str(); - CreateDirectory(mOutputDir.c_str(), NULL); + if (CreateDirectory(mOutputDir.c_str(), NULL)) { + std::cout << "ArchRast Dir: " << mOutputDir << std::endl << std::endl << std::flush; + } // There could be multiple threads creating thread pools. We // want to make sure they are uniquly identified by adding in -- 2.30.2