OpenGL: Enable High Quality Normals for Legacy AMD Drivers
On Legacy AMD devices EEVEE doesn't render any geometry. During testing we found that it was based on reading normal attribute. Further testing it was detected that enabling the high quality normals would solve the rendering. This is a known issue on legacy AMD drivers. This PR updates the check to enable the high quality normals workaround for the latest known AMD legacy drivers (22.6.1/21.Q1.2). Both drivers still have this issue. Pull Request: https://projects.blender.org/blender/blender/pulls/126483
This commit is contained in:
@@ -377,6 +377,11 @@ static void detect_workarounds()
|
||||
* polaris platform. Keeping legacy platforms around just in case.
|
||||
*/
|
||||
if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_ANY, GPU_DRIVER_OFFICIAL)) {
|
||||
/* Check for AMD legacy driver. Assuming that when these drivers are used this bug is present.
|
||||
*/
|
||||
if (strstr(version, " 22.6.1 ") || strstr(version, " 21.Q1.2 ")) {
|
||||
GCaps.use_hq_normals_workaround = true;
|
||||
}
|
||||
const Vector<std::string> matches = {
|
||||
"RX550/550", "(TM) 520", "(TM) 530", "(TM) 535", "R5", "R7", "R9", "HD"};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user