Skip to content

Detect Zhaoxin GPU, disable realtime lighting on it#1968

Merged
illwieckz merged 7 commits intomasterfrom
illwieckz/zhaoxin
May 9, 2026
Merged

Detect Zhaoxin GPU, disable realtime lighting on it#1968
illwieckz merged 7 commits intomasterfrom
illwieckz/zhaoxin

Conversation

@illwieckz
Copy link
Copy Markdown
Member

@illwieckz illwieckz commented May 7, 2026

To avoid annoying merge conflicts, this also include GL4ES detection (but not the GL4ES compatibility code) and PowerVR detection from:

fix #1967

Comment thread src/engine/renderer/DetectGLVendors.cpp Outdated
size_t prefixLen = prefix.length();
size_t stringLen = string.length();
size_t subLen = stringLen - prefixLen;
return string.substr( prefixLen, subLen );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 2nd argument to substr is unneeded. You can put the starting position only

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

=================================================================================
*/

static void EnableAvailableFeatures()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The next 5 functions below this one are also frontend...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah maybe, but I moved this one because I needed it elsewhere right now. The rest can be moved later. =)

Actually I may restore the comment.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restored the comment and adapted it.

@illwieckz illwieckz force-pushed the illwieckz/zhaoxin branch 2 times, most recently from 854841f to 4f55c5b Compare May 9, 2026 20:43
@illwieckz illwieckz mentioned this pull request May 9, 2026
@slipher
Copy link
Copy Markdown
Member

slipher commented May 9, 2026

LGTM

@illwieckz
Copy link
Copy Markdown
Member Author

GitHub says the Appveyor check is still pending, but it's finished and without error on Appveyor side.

@illwieckz illwieckz merged commit 677656a into master May 9, 2026
8 of 9 checks passed
@illwieckz illwieckz deleted the illwieckz/zhaoxin branch May 9, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken real time lights on ZX C-1190 (integrated graphics from Zhaoxin KX-7000)

2 participants