From d97617a0a736b4dadcf978bfc1fa0aef0d4d50d3 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 7 May 2015 15:20:05 -0700 Subject: Add a way to link against different driver names. The existing linker path hard-coded "-lRSDriver" into the command line, but this won't work for partner drivers that have a different implementation loaded. In order to still properly handle use of the CPU driver, this needs to change depending on whether we actually loaded an OVERRIDE_RS_DRIVER or not. bug 20894664 Change-Id: I0c4a4f12f5db819b234952bc8f364ac6300f147b --- rsDriverLoader.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rsDriverLoader.cpp') diff --git a/rsDriverLoader.cpp b/rsDriverLoader.cpp index 37bd12a2..528af0fa 100644 --- a/rsDriverLoader.cpp +++ b/rsDriverLoader.cpp @@ -204,6 +204,9 @@ bool Context::loadRuntime(const char* filename) { goto error; } + // Only map in the actual driver name if we successfully load the runtime. + mDriverName = filename; + return true; -- cgit v1.2.3