Implement the code related to the GetMixedComponentVersion()
Change-Id: I98aad97b4cb6498b7f2fc03a2d5ee7c9e949d5f1 Signed-off-by: Chen Gong <curry.gong@amd.com>
This commit is contained in:
committed by
Galantsev, Dmitrii
parent
8db404f84f
commit
1edd04d84e
@@ -26,6 +26,7 @@ THE SOFTWARE.
|
||||
|
||||
#include "common/rdc_fields_supported.h"
|
||||
#include "rdc/rdc.h"
|
||||
#include "rdc/rdc_private.h"
|
||||
#include "rdc_lib/RdcHandler.h"
|
||||
#include "rdc_lib/RdcLibraryLoader.h"
|
||||
#include "rdc_lib/RdcLogger.h"
|
||||
@@ -324,6 +325,15 @@ rdc_status_t rdc_test_case_run(rdc_handle_t p_rdc_handle, rdc_gpu_group_t group_
|
||||
->rdc_test_case_run(group_id, test_case, config, config_size, result);
|
||||
}
|
||||
|
||||
rdc_status_t get_mixed_component_version(rdc_handle_t p_rdc_handle, mixed_component_t component, mixed_component_version_t* p_mixed_compv) {
|
||||
if (!p_rdc_handle || !p_mixed_compv) {
|
||||
return RDC_ST_INVALID_HANDLER;
|
||||
}
|
||||
|
||||
return static_cast<amd::rdc::RdcHandler*>(p_rdc_handle)
|
||||
->get_mixed_component_version(component, p_mixed_compv);
|
||||
}
|
||||
|
||||
const char* rdc_status_string(rdc_status_t result) {
|
||||
switch (result) {
|
||||
case RDC_ST_OK:
|
||||
|
||||
Reference in New Issue
Block a user