[Mesa-dev] [PATCH shader-db 2/2] intel_stub: Make intel_run wrapper script set -o i965.

Kenneth Graunke kenneth at whitecape.org
Mon Jun 4 23:26:15 UTC 2018


I don't think anybody is using this script with any other driver.

Also take a $DEBUGGER variable so you can do:

   $ DEBUGGER='gdb -q --args' ./intel_run shaders
---
 intel_run | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/intel_run b/intel_run
index 5a162f8..ad9986d 100755
--- a/intel_run
+++ b/intel_run
@@ -1,5 +1,5 @@
 #!/bin/bash
 # -*- mode: sh -*-
 
-LD_PRELOAD=${PWD}/intel_stub.so${LD_PRELOAD:+:${LD_PRELOAD}} \
-	  exec ./run $@
+export LD_PRELOAD=${PWD}/intel_stub.so${LD_PRELOAD:+:${LD_PRELOAD}}
+exec $DEBUGGER ./run -o i965 $@
-- 
2.17.0



More information about the mesa-dev mailing list