Closed Bug 1697268 Opened 4 years ago Closed 1 year ago

Hardware-Rendering does not work with AMD A8-7410 APU with AMD Radeon R5 Graphics (Kabini)

Categories

(Core :: Graphics: WebRender, defect)

Firefox 86
defect

Tracking

()

RESOLVED INACTIVE

People

(Reporter: bege10, Unassigned)

Details

Attachments

(11 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0

Steps to reproduce:

The current driver and settings software for this APU "Radeon Adrenalin 2020-Edition 20.7.1" does not address the discrete GPU in Windows 10. Thus I had to install the last version that does this correctly "2019 Edition 19.12.1".

Actual results:

All videos in Firefox show a green screen with jumping colored geometric forms.
After deactivating the suggested graphic settings in Firefox (no hardware rendering) the videos are displayed correct.
No matter whether gfx.webrender.force-disabled is true or false.
If hardware rendering is activated the discrete GPU is used but the videos are corrupt. If hardware rendering is deactivated mainly the CPU is active and the videos are displayed correct.

Expected results:

Microsoft Edge, PaleMoon and Falcon use the discrete GPU and display the videos correct. I hope this can be accomplished with Firefox, too.

Problem remains in safe mode.

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core
Summary: Hardware-Rendering does not work with AMD A8-7410 APU with AMD Radeon R5 Graphics → Hardware-Rendering does not work with AMD A8-7410 APU with AMD Radeon R5 Graphics (Kabini)

Dzmitry, you have a matching device (0x9851 - Asus X555Y laptop), can you try installing this driver and seeing if you see the same thing.

Flags: needinfo?(dmalyshau)

On my A6-7310, which identifies as the same Device ID 0x9851 (Radeon R4), WebRender gets ON by default, and videos play just fine.
Installing Radeon Software 20.10.35.02 also works fine.
Installing Radeon Software 20.7.1, which is reported as Driver Version 27.20.2001.8002 also plays YouTube videos just fine...
Looks like a nasty driver bug here? What concerns me is that the Device ID is the same, but the device is different (R4 vs R5), so blocklisting this would be difficult.

Flags: needinfo?(dmalyshau)

(In reply to Dzmitry Malyshau [:kvark] from comment #6)

On my A6-7310, which identifies as the same Device ID 0x9851 (Radeon R4), WebRender gets ON by default, and videos play just fine.
Installing Radeon Software 20.10.35.02 also works fine.
Installing Radeon Software 20.7.1, which is reported as Driver Version 27.20.2001.8002 also plays YouTube videos just fine...
Looks like a nasty driver bug here? What concerns me is that the Device ID is the same, but the device is different (R4 vs R5), so blocklisting this would be difficult.

With Radeon Adrenaline 20.12.1 videos play fine here also, but (because!) this software does not address the discrete GPU with any program on Windows 10.
Do the videos play fine on your computer with Radeon Software Adrenalin 2019 Edition 19.12.1 https://www.amd.com/en/support/kb/release-notes/rn-rad-win-19-12-1 and hardware rendering ON in Firefox AND is the discrete GPU active?

I noticed that the Radeon Software, that can address the discrete GPU here is from 2019 but the GPU driver is 27.20.1034.6 from 21.08.2020.
The CPU is also different from yours, it is A8-7410, the first GPU is R5, the second is R5 M330.

(In reply to bege10 from comment #7)

(In reply to Dzmitry Malyshau [:kvark] from comment #6)

On my A6-7310, which identifies as the same Device ID 0x9851 (Radeon R4), WebRender gets ON by default, and videos play just fine.
Installing Radeon Software 20.10.35.02 also works fine.
Installing Radeon Software 20.7.1, which is reported as Driver Version 27.20.2001.8002 also plays YouTube videos just fine...
Looks like a nasty driver bug here? What concerns me is that the Device ID is the same, but the device is different (R4 vs R5), so blocklisting this would be difficult.

With Radeon Adrenaline 20.12.1 videos play fine here also, but (because!) this software does not address the discrete GPU with any program on Windows 10.
Do the videos play fine on your computer with Radeon Software Adrenalin 2019 Edition 19.12.1 https://www.amd.com/en/support/kb/release-notes/rn-rad-win-19-12-1 and hardware rendering ON in Firefox AND is the discrete GPU active?

I noticed that the Radeon Software, that can address the discrete GPU here is from 2019 but the GPU driver is 27.20.1034.6 from 21.08.2020.
The CPU is also different from yours, it is A8-7410, the first GPU is R5, the second is R5 M330.

I just saw that R4 is not on the compatibility list for the mentioned Radeon Software.

It sounds like your problem shows up with a discreet GPU, but the "about:support" doesn't have information on what it is:

GPU 2
Aktiv: Nein

Maybe that's why I'm not seeing it? I'm trying it out on the APU.

I just saw that R4 is not on the compatibility list for the mentioned Radeon Software.

Oh wow, I wonder why they don't tell it during the "Checking Compatibility" step in the installer, which takes non-trivial amount of time.

Flags: needinfo?(bege10)

(In reply to Dzmitry Malyshau [:kvark] from comment #9)

It sounds like your problem shows up with a discreet GPU, but the "about:support" doesn't have information on what it is:

GPU 2
Aktiv: Nein

Maybe that's why I'm not seeing it? I'm trying it out on the APU.

Yes, it is all about the discrete GPU which I want to be used to reduce the CPU usage. As mentioned in my previous posts:

  • the current Radeon 20... software does not address the discrete GPU on Windows 10 at all. The switch has been removed from the software. The Windows graphic settings don't activate the discrete GPU
  • the Radeon 19.12.1 software still has that switch and it (de)activates the discrete GPU
  • other tested browsers work correct with hardware rendering using the discrete GPU
  • as soon as I activate hardware rendering in Firefox settings the discrete GPU is active and videos are corrupt
  • as soon as I deactivate hardware rendering in Firefox settings the discrete GPU is inactive and videos are ok.
  • the about:support report has probably been created after I deactivated hardware rendering which is the only state I can view videos with Firefox.

I just saw that R4 is not on the compatibility list for the mentioned Radeon Software.

Oh wow, I wonder why they don't tell it during the "Checking Compatibility" step in the installer, which takes non-trivial amount of time.

I don't know, but I always had problems with AMD installers, also on previous computers.

Flags: needinfo?(bege10)

Sorry for NI you again, could you please attach an about:support with the discreet GPU enabled? We want to reproduce this.

Flags: needinfo?(bege10)

I see that is also says "GPU2 active: No" while the video is playing and the GPU is active in the Windows Task Manager. With toggling the video on/of the GPU 2 is active/inactive.
Can this be related to the fact that Windows seems not to recognize this GPU and thus does not address it? In the graphics settings there are two GPUs listed (one each for energy saving and high performance) but both as "AMD Radeon(TM) Graphics R5". The correct name of the discrete GPU is "AMD Radeon(TM) Graphics R5 M330".

Flags: needinfo?(bege10)

Looks like it's device id = 6660, which is SI/HAINAN, based on gpu-db.
I don't have any idea about how it behaves differently on enabling GPU2 but still shows that "GPU2 active: No" :/
Jeff?

Flags: needinfo?(jmuizelaar)

I wonder if there's some transparent GPU switching going on that we're not aware of.

bege10, is there a control panel or anything for controlling which GPU an application runs on?

Flags: needinfo?(jmuizelaar) → needinfo?(bege10)
Flags: needinfo?(bege10)

(In reply to Jeff Muizelaar [:jrmuizel] from comment #15)

bege10, is there a control panel or anything for controlling which GPU an application runs on?

Yes, that is the difference between Radeon Software 19 and 20 as described before.
The screenshots show that for Firefox the setting is controlled by the software (lock symbol) depending on the settings in Firefox.

bege10, is it possible to force Firefox to the integrated GPU and check if the problem still happens?

Flags: needinfo?(bege10)

bege10, can you also share the make and model of your computer?

(In reply to Jeff Muizelaar [:jrmuizel] from comment #19)

bege10, is it possible to force Firefox to the integrated GPU and check if the problem still happens?

I'm not sure whether I understand your question correct because I think this has been answered before and the screenshots show it:
Firefox settings: hardware rendering off
Radeon settings: Firefox energy saving
Windows Task Manager: only CPU and GPU 1 active
Videos play fine.

Problem in this scenario: High CPU usage. If I make a screen capture recording of a video with Audials software the CPU usage of both programs is so high that the recording has gaps.

Remember: All other browsers display the videos fine with hardware rendering/GPU 2 active. I hope you find the issue and can fix it.

Flags: needinfo?(bege10)

(In reply to Jeff Muizelaar [:jrmuizel] from comment #20)

bege10, can you also share the make and model of your computer?

Notebook: HP Pavillion 15-ba002ng
Processor: AMD A8-7410 APU with AMD Radeon R5 Graphics, 2200 MHz, 4 Kern(e), 4 logische(r) Prozessor(en)
RAM: 16 GB
SSD: 1 TB

I also notice that there are DoesD3D11TextureSharingWork_ColorMismatch errors.

bege10 do both GPUs show in up Window's Device Manager?

Flags: needinfo?(bege10)

(In reply to Jeff Muizelaar [:jrmuizel] from comment #24)

bege10 do both GPUs show in up Window's Device Manager?

Yes, R5 Graphics and R5 M330.

Flags: needinfo?(bege10)

Can you attach the contents of 'edge://gpu'?

Flags: needinfo?(bege10)
Attached file edge_gpu.txt
Flags: needinfo?(bege10)

And can you use the "System Information" program and attach a copy of the exported information using "File > Export"?

Flags: needinfo?(bege10)
Attached file system-information.zip
Flags: needinfo?(bege10)

So the dual GPUs show up in System Information but not in edge://gpu or about:support.

(In reply to Jeff Muizelaar [:jrmuizel] from comment #30)

So the dual GPUs show up in System Information but not in edge://gpu or about:support.

It is displayed in edge://gpu
GPU0 VENDOR= 0x1002, DEVICE=0x9851, SUBSYS=0x81f6103c, REV=69, LUID={0,75831} ACTIVE
GPU1 VENDOR= 0x1414, DEVICE=0x008c, LUID={0,78181}

but GPU1 does not say ACTIVE but is active if playing videos in Egde.

Attached image Edge hardw.rend.OFF.png
Attached image Edge hardw.rend.ON.png

It is getting worse in Firefox with the time while as before there is no problem with other browsers.
Is there any hope for a solution?

(In reply to bege10 from comment #36)

Created attachment 9214849 [details]
After the update to v87.0 no more videos on arte.tv, even in safe mode.

It is getting worse in Firefox with the time while as before there is no problem with other browsers.
Is there any hope for a solution?

Based on your about:support, you seem to be using an unofficial EME free version of Firefox. This means that your Firefox might be missing some plugins to play DRM protected video. This might also be the reason for your high CPU usage.

Can you try downloading the official distribution from https://getfirefox.com and see if it works better?

Severity: -- → S3
Flags: needinfo?(bege10)

(In reply to Miko Mynttinen [:miko] from comment #37)

(In reply to bege10 from comment #36)

Created attachment 9214849 [details]
After the update to v87.0 no more videos on arte.tv, even in safe mode.

It is getting worse in Firefox with the time while as before there is no problem with other browsers.
Is there any hope for a solution?

Based on your about:support, you seem to be using an unofficial EME free version of Firefox. This means that your Firefox might be missing some plugins to play DRM protected video. This might also be the reason for your high CPU usage.

Can you try downloading the official distribution from https://getfirefox.com and see if it works better?

I installed the downloaded version as update, I did not uninstall the existing one before. Does that match the needs?
There is no change. arte.tv videos don't play at all, youtube and others are corrupt if hardware rendering is enabled.

Flags: needinfo?(bege10)

Eventually I installed the driver package provided by hp for my computer. That package is three years old but does not create such problems. The "solution": Hardware rendering for Firefox cannot be activated at all with that driver.

Still a pity that I cannot use hardware rendering for Firefox but with all other browsers with newer AMD driver packages.
(OT: Thunderbird also has trouble with the newer AMD drivers. So these two Mozilla programs are the only ones that don't work with these drivers. 😕)

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: