From d3612344d19250f6030b27a787e8eeb2322e5dec Mon Sep 17 00:00:00 2001 From: ericjunwei Date: Fri, 8 Dec 2023 11:16:14 +0800 Subject: [PATCH] Fix sample build error --- SDKDoc/html/c__sync3_d_receive.html | 10 +--------- SDKDoc/html/cpp__sync3_d_receive.html | 8 -------- SDKDoc/xml/_a_d_l_x_defines_8h.xml | 6 +++--- SDKDoc/xml/_a_d_l_x_structures_8h.xml | 18 +++++++++--------- SDKDoc/xml/_i_changed_event_8h.xml | 2 +- SDKDoc/xml/_i_collections_8h.xml | 6 +++--- SDKDoc/xml/_i_system_8h.xml | 2 +- SDKDoc/xml/c__sync3_d_receive.xml | 10 +--------- SDKDoc/xml/cpp__sync3_d_receive.xml | 8 -------- .../Sync3DReceive/mainSync3DReceive.c | 10 +--------- .../Sync3DReceive/mainSync3DReceive.cpp | 8 -------- 11 files changed, 20 insertions(+), 68 deletions(-) diff --git a/SDKDoc/html/c__sync3_d_receive.html b/SDKDoc/html/c__sync3_d_receive.html index fe1737f0..b1d0a7e2 100644 --- a/SDKDoc/html/c__sync3_d_receive.html +++ b/SDKDoc/html/c__sync3_d_receive.html @@ -127,7 +127,6 @@

Sample Path

#include "SDK/ADLXHelper/Windows/C/ADLXHelper.h"
#include "SDK/Include/I3DSettings.h"
-
#include "SDK/Include/I3DSettings1.h"
#include "conio.h"
// Block event to verify call back
@@ -143,14 +142,7 @@

Sample Path

// Get the GPU interface
IADLXGPU* gpu = NULL;
p3DSettingsChangedEvent->pVtbl->GetGPU(p3DSettingsChangedEvent, &gpu);
-
-
IADLX3DSettingsChangedEvent1* p3DSettingsChangedEvent1 = NULL;
-
p3DSettingsChangedEvent->pVtbl->QueryInterface(p3DSettingsChangedEvent, IID_IADLX3DSettingsChangedEvent1(), &p3DSettingsChangedEvent1);
-
if (p3DSettingsChangedEvent1 == NULL)
-
{
-
printf("3DSettingsChangedEvent1 not supported\n");
-
}
-
+
//RadeonSuperResolution is a global feature (the GPU interface is NULL); skip printing its name
if (!p3DSettingsChangedEvent->pVtbl->IsRadeonSuperResolutionChanged(p3DSettingsChangedEvent))
{
diff --git a/SDKDoc/html/cpp__sync3_d_receive.html b/SDKDoc/html/cpp__sync3_d_receive.html index ba17a16e..c41b9095 100644 --- a/SDKDoc/html/cpp__sync3_d_receive.html +++ b/SDKDoc/html/cpp__sync3_d_receive.html @@ -127,7 +127,6 @@

Sample Path

#include "SDK/ADLXHelper/Windows/Cpp/ADLXHelper.h"
#include "SDK/Include/I3DSettings.h"
-
#include "SDK/Include/I3DSettings1.h"
#include "conio.h"
#include <iostream>
#include <string>
@@ -219,13 +218,6 @@

Sample Path

// Get 3DSettings service
IADLX3DSettingsServicesPtr d3dSettingSrv;
g_ADLXHelp.GetSystemServices()->Get3DSettingsServices(&d3dSettingSrv);
-
IADLX3DSettingsServices1Ptr d3dSettingSrv1 (d3dSettingSrv);
-
-
IADLX3DSettingsChangedEvent1Ptr p3DSettingsChangedEvent1(p3DSettingsChangedEvent);
-
if (p3DSettingsChangedEvent1 == nullptr)
-
{
-
std::cout << "3DSettingsChangedEvent1 not supported" << std::endl;
-
}
// Get the GPU interface
IADLXGPUPtr gpu;
diff --git a/SDKDoc/xml/_a_d_l_x_defines_8h.xml b/SDKDoc/xml/_a_d_l_x_defines_8h.xml index 6e0f9497..4cf222d2 100644 --- a/SDKDoc/xml/_a_d_l_x_defines_8h.xml +++ b/SDKDoc/xml/_a_d_l_x_defines_8h.xml @@ -6,14 +6,14 @@ stdio.h stdint.h ADLXVersion.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ADLXStructures.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IChangedEvent.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ICollections.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ADLXStructures.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ADLX.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplay3DLUT.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/II2C.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ILog.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/II2C.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ISystem.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ADLX.h diff --git a/SDKDoc/xml/_a_d_l_x_structures_8h.xml b/SDKDoc/xml/_a_d_l_x_structures_8h.xml index 20a029db..f668d8ff 100644 --- a/SDKDoc/xml/_a_d_l_x_structures_8h.xml +++ b/SDKDoc/xml/_a_d_l_x_structures_8h.xml @@ -3,24 +3,24 @@ ADLXStructures.h ADLXDefines.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUAutoTuning.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualPowerTuning.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualGFXTuning.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/I3DSettings.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDesktops.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplay3DLUT.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplayGamma.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplayGamut.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDesktops.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUAutoTuning.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualFanTuning.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualPowerTuning.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplaySettings.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualGFXTuning.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualVRAMTuning.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/I3DSettings.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPerformanceMonitoring.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUPresetTuning.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPowerTuning.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplaySettings.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning1.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPerformanceMonitoring.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ISmartAccessMemory.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h diff --git a/SDKDoc/xml/_i_changed_event_8h.xml b/SDKDoc/xml/_i_changed_event_8h.xml index cfe550c8..237a02b9 100644 --- a/SDKDoc/xml/_i_changed_event_8h.xml +++ b/SDKDoc/xml/_i_changed_event_8h.xml @@ -4,9 +4,9 @@ IChangedEvent.h ADLXDefines.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/I3DSettings.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPowerTuning.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h diff --git a/SDKDoc/xml/_i_collections_8h.xml b/SDKDoc/xml/_i_collections_8h.xml index 77367f7c..05a22775 100644 --- a/SDKDoc/xml/_i_collections_8h.xml +++ b/SDKDoc/xml/_i_collections_8h.xml @@ -4,12 +4,12 @@ ICollections.h ADLXDefines.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDesktops.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualFanTuning.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPerformanceMonitoring.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplaySettings.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ISystem.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPerformanceMonitoring.h diff --git a/SDKDoc/xml/_i_system_8h.xml b/SDKDoc/xml/_i_system_8h.xml index a2191ab7..fb541b57 100644 --- a/SDKDoc/xml/_i_system_8h.xml +++ b/SDKDoc/xml/_i_system_8h.xml @@ -4,8 +4,8 @@ ISystem.h ADLXDefines.h ICollections.h - D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ISystem1.h D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ADLX.h + D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ISystem1.h diff --git a/SDKDoc/xml/c__sync3_d_receive.xml b/SDKDoc/xml/c__sync3_d_receive.xml index 9450a89a..ded6ece8 100644 --- a/SDKDoc/xml/c__sync3_d_receive.xml +++ b/SDKDoc/xml/c__sync3_d_receive.xml @@ -30,7 +30,6 @@ #include"SDK/ADLXHelper/Windows/C/ADLXHelper.h" #include"SDK/Include/I3DSettings.h" -#include"SDK/Include/I3DSettings1.h" #include"conio.h" //Blockeventtoverifycallback @@ -46,14 +45,7 @@ //GettheGPUinterface IADLXGPU*gpu=NULL; p3DSettingsChangedEvent->pVtbl->GetGPU(p3DSettingsChangedEvent,&gpu); - -IADLX3DSettingsChangedEvent1*p3DSettingsChangedEvent1=NULL; -p3DSettingsChangedEvent->pVtbl->QueryInterface(p3DSettingsChangedEvent,IID_IADLX3DSettingsChangedEvent1(),&p3DSettingsChangedEvent1); -if(p3DSettingsChangedEvent1==NULL) -{ -printf("3DSettingsChangedEvent1notsupported\n"); -} - + //RadeonSuperResolutionisaglobalfeature(theGPUinterfaceisNULL);skipprintingitsname if(!p3DSettingsChangedEvent->pVtbl->IsRadeonSuperResolutionChanged(p3DSettingsChangedEvent)) { diff --git a/SDKDoc/xml/cpp__sync3_d_receive.xml b/SDKDoc/xml/cpp__sync3_d_receive.xml index ccadba54..d8f0a20f 100644 --- a/SDKDoc/xml/cpp__sync3_d_receive.xml +++ b/SDKDoc/xml/cpp__sync3_d_receive.xml @@ -30,7 +30,6 @@ #include"SDK/ADLXHelper/Windows/Cpp/ADLXHelper.h" #include"SDK/Include/I3DSettings.h" -#include"SDK/Include/I3DSettings1.h" #include"conio.h" #include<iostream> #include<string> @@ -122,13 +121,6 @@ //Get3DSettingsservice IADLX3DSettingsServicesPtrd3dSettingSrv; g_ADLXHelp.GetSystemServices()->Get3DSettingsServices(&d3dSettingSrv); -IADLX3DSettingsServices1Ptrd3dSettingSrv1(d3dSettingSrv); - -IADLX3DSettingsChangedEvent1Ptrp3DSettingsChangedEvent1(p3DSettingsChangedEvent); -if(p3DSettingsChangedEvent1==nullptr) -{ -std::cout<<"3DSettingsChangedEvent1notsupported"<<std::endl; -} //GettheGPUinterface IADLXGPUPtrgpu; diff --git a/Samples/C/ReceivingEventsNotifications/Sync3DReceive/mainSync3DReceive.c b/Samples/C/ReceivingEventsNotifications/Sync3DReceive/mainSync3DReceive.c index 2a6331ba..dc7cc2cc 100644 --- a/Samples/C/ReceivingEventsNotifications/Sync3DReceive/mainSync3DReceive.c +++ b/Samples/C/ReceivingEventsNotifications/Sync3DReceive/mainSync3DReceive.c @@ -8,7 +8,6 @@ #include "SDK/ADLXHelper/Windows/C/ADLXHelper.h" #include "SDK/Include/I3DSettings.h" -#include "SDK/Include/I3DSettings1.h" #include "conio.h" // Block event to verify call back @@ -24,14 +23,7 @@ adlx_bool ADLX_STD_CALL On3DSettingsChanged(IADLX3DSettingsChangedListener *pThi // Get the GPU interface IADLXGPU* gpu = NULL; p3DSettingsChangedEvent->pVtbl->GetGPU(p3DSettingsChangedEvent, &gpu); - - IADLX3DSettingsChangedEvent1* p3DSettingsChangedEvent1 = NULL; - p3DSettingsChangedEvent->pVtbl->QueryInterface(p3DSettingsChangedEvent, IID_IADLX3DSettingsChangedEvent1(), &p3DSettingsChangedEvent1); - if (p3DSettingsChangedEvent1 == NULL) - { - printf("3DSettingsChangedEvent1 not supported\n"); - } - + //RadeonSuperResolution is a global feature (the GPU interface is NULL); skip printing its name if (!p3DSettingsChangedEvent->pVtbl->IsRadeonSuperResolutionChanged(p3DSettingsChangedEvent)) { diff --git a/Samples/CPP/ReceivingEventsNotifications/Sync3DReceive/mainSync3DReceive.cpp b/Samples/CPP/ReceivingEventsNotifications/Sync3DReceive/mainSync3DReceive.cpp index fca6d98b..87e1364d 100644 --- a/Samples/CPP/ReceivingEventsNotifications/Sync3DReceive/mainSync3DReceive.cpp +++ b/Samples/CPP/ReceivingEventsNotifications/Sync3DReceive/mainSync3DReceive.cpp @@ -8,7 +8,6 @@ #include "SDK/ADLXHelper/Windows/Cpp/ADLXHelper.h" #include "SDK/Include/I3DSettings.h" -#include "SDK/Include/I3DSettings1.h" #include "conio.h" #include #include @@ -100,13 +99,6 @@ class CallBack3DSettingsChanged : public IADLX3DSettingsChangedListener // Get 3DSettings service IADLX3DSettingsServicesPtr d3dSettingSrv; g_ADLXHelp.GetSystemServices()->Get3DSettingsServices(&d3dSettingSrv); - IADLX3DSettingsServices1Ptr d3dSettingSrv1 (d3dSettingSrv); - - IADLX3DSettingsChangedEvent1Ptr p3DSettingsChangedEvent1(p3DSettingsChangedEvent); - if (p3DSettingsChangedEvent1 == nullptr) - { - std::cout << "3DSettingsChangedEvent1 not supported" << std::endl; - } // Get the GPU interface IADLXGPUPtr gpu;