[Mesa-dev] [PATCH 18/21] swr/rast: Output rasterizer dir to console since it's process specific
George Kyriazis
george.kyriazis at intel.com
Wed Apr 25 19:21:57 UTC 2018
---
.../swr/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 54d2486..4f87e0c 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 <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 << "Rasterizer 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.7.4
More information about the mesa-dev
mailing list