diff options
author | David Gross <dgross@google.com> | 2016-06-06 16:15:00 -0700 |
---|---|---|
committer | David Gross <dgross@google.com> | 2016-06-06 16:15:00 -0700 |
commit | 8e70791ff732ce244077310bdfdaf75dc19baabc (patch) | |
tree | fc5528884e4315107f795eecfd8faa6022fec933 /driver | |
parent | bb0a08cc28a83c86ca90954633885d318045a20a (diff) | |
download | rs-8e70791ff732ce244077310bdfdaf75dc19baabc.tar.gz |
Add HAL version check, with fallback to CPU reference driver on failure.
libRS_internal and the vendor driver (or CPU reference driver) must
agree on HAL version.
Bug: 27298560
Change-Id: Ie4886af9c9cf6a91a164b8cfedb5c010ffbf9cb0
Diffstat (limited to 'driver')
-rw-r--r-- | driver/rsdCore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/rsdCore.cpp b/driver/rsdCore.cpp index f0a73344..503da5af 100644 --- a/driver/rsdCore.cpp +++ b/driver/rsdCore.cpp @@ -265,7 +265,7 @@ extern "C" void rsdHalAbort(RsContext) { extern "C" bool rsdHalQueryVersion(uint32_t *major, uint32_t *minor) { - *major = 23; + *major = RS_HAL_VERSION; *minor = 0; return true; } |