-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable dGPU for decoder and encoder #114
base: master
Are you sure you want to change the base?
Conversation
@YuanjunHuang @dyang23 @TianmiChen @zhangyichix |
4edac69
to
61d2493
Compare
Improper Commit Message |
Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details. |
Improper Commit Message |
Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details. |
Improper Commit Message |
Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details. |
Improper Commit Message |
Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details. |
Android CI has completed Engineering Build for this issue, build is FAILURE. Please check the linked Tracked-On issue/Android CI Web for more details |
@@ -84,6 +84,9 @@ class MfxC2Component : public C2ComponentInterface, | |||
|
|||
public: | |||
virtual ~MfxC2Component(); | |||
#ifdef ONEVPL_EXPERIMENTAL | |||
bool isdGPU() { return dedicated;} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the device detection logic to mfx_dev.cpp/mfx_dev_va.cpp, please.
Thanks,
Tianmi
@@ -174,6 +177,13 @@ class MfxC2Component : public C2ComponentInterface, | |||
|
|||
std::unique_lock<std::mutex> AcquireRunningStateLock(bool may_block) const; | |||
|
|||
#ifdef ONEVPL_EXPERIMENTAL | |||
void detectdGPU(mfxU16 deviceId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the device detection logic to mfx_dev.cpp/mfx_dev_va.cpp, please.
Thanks,
Tianmi
Android CI has completed Engineering Build for this issue, build is FAILURE. Please check the linked Tracked-On issue/Android CI Web for more details |
2 similar comments
Android CI has completed Engineering Build for this issue, build is FAILURE. Please check the linked Tracked-On issue/Android CI Web for more details |
Android CI has completed Engineering Build for this issue, build is FAILURE. Please check the linked Tracked-On issue/Android CI Web for more details |
2b8b84e
to
467e2b2
Compare
Improper Commit Message |
1\ Enable ONEVPL_EXPERIMENTAL for init dGPU session and get deviceId 2\ According to device id to judge if it is dGPU or iGPU 3\ dGPU deviceid range: 0x5600 < deviceId < 0x56B3 4\ After initializing dGPU, reset RateControl for dGPU. 5\ Set buffer Tile4 for dGPU and Y-Tile for iGPU Signed-off-by: Shaofeng Tang <[email protected]>
1\ Enable ONEVPL_EXPERIMENTAL for init dGPU session and get deviceId
2\ According to device id to judge if it is dGPU or iGPU
3\ dGPU deviceid range: 0x5600 < deviceId < 0x56B3
4\ After initializing dGPU, reset RateControl for dGPU.
5\ Set buffer Tile4 for dGPU and Y-Tile for iGPU