swr/rast: Output rasterizer dir to console since it's process specific
authorGeorge Kyriazis <george.kyriazis@intel.com>
Mon, 23 Apr 2018 23:14:59 +0000 (18:14 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 27 Apr 2018 19:36:41 +0000 (14:36 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp

index 54d2486..ceded82 100644 (file)
@@ -36,6 +36,7 @@
 #include "${event_header}"
 #include <fstream>
 #include <sstream>
+#include <iostream>
 #include <thread>
 
 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