intel/dump_gpu: fix --platform option
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 4 Mar 2020 15:38:48 +0000 (17:38 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 Aug 2020 11:27:54 +0000 (11:27 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2201>

src/intel/tools/intel_dump_gpu.in

index 3efa0d4c76e8d03df90ae2a7c96a3fe9ab9446d6..0395af0a8eb50a31dc7fd513be843d2f4ff1a8b1 100755 (executable)
@@ -82,7 +82,7 @@ while true; do
             shift
             ;;
         --platform=*)
-            platform=${1##-p}
+            platform=${1##--platform=}
             add_arg "platform=${platform}"
             shift
             ;;