-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bug with latest AMD PRO drivers 22Q4 #1450
Comments
Just want to bup this issue, it still occurs with the latest AMD drivers. Effectivly CasparCG is unusable right now with an AMD graphics card if the drivers are newer than 2020 or so. |
Seems fine on ubuntu 22.04
I wonder if both of those changes are necessary? It sounds like So if someone can confirm whether this works with |
So this breaks on windows, changing the texture type to Changing to |
To note there isn't an opengl error thrown, the AMD driver itself throws an exception. |
I am testing on Windows 11, it was the same on windows 10 when I was still running that. |
To note, just changing to |
I have also tried GetTexInfo and Getntexinfo? the other two APIs and they also crash. Seems like something deep in the AMD driver is broken with BGRA on windows. Will want to check if writing to the texture crashes as well. Will check that and will see if there is any other way to do the copy. Maybe the OpenCL dream may yet come |
So it's only these calls that fail https://registry.khronos.org/OpenGL-Refpages/gl4/html/glGetTexImage.xhtml, the glTextureSubImage2D call was fine. |
Confirming that this is apparently still an issue, although all I can see is that CasparCG quits suddenly and Windows Event Viewer shows the following. Happens no matter what the consumer is and no matter if it's a media file or simply instructing CasparCG to output a colour. At least for media I can see that ffmpeg gets to the point where it probably would start outputting image data and bang, it's quit. I can't get any more debug info out of CasparCG at this time:
My system:
Full version details:
Using GLView I can see GL_EXT_abgr" and "GL_EXT_bgra" listed under extensions, but how that relates to anything I have no idea. |
Expected behaviour
Just works.
Current behaviour
Crashes on the first call to
caspar::accelerator::ogl::texture::impl::copy_to
Steps to reproduce
Environment
I played a bit with the code here and it seems that its due to the format / type not working properly.
When I change format to GL_RGBA and type to GL_UNSIGNED_BYTE I get results but Red and Green channels are swapped.
But any call with GL_BGRA
Guess it's a driver issue but maybe there is a workaround in CasparCG. Reported that with the AMD driver software 🤞🏼
The text was updated successfully, but these errors were encountered: