Page MenuHomeWildfire Games

Adds Vulkan check to HWDetect
ClosedPublic

Authored by vladislavbelov on Jan 19 2021, 11:32 PM.

Details

Reviewers
None
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP25535: Adds Vulkan check to HWDetect reports.
Summary

Subj. Make sure that it works when Vulkan disabled and enabled for SDL.

Test Plan
  1. Apply the patch and compile the game with different SDL settings
  2. Make sure no crash in any case and the function doesn't cost noticeable time

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

builderr-debug-macos.txt
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/liblobby_dbg.a(precompiled.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libsimulation2_dbg.a(precompiled.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libengine_dbg.a(precompiled.o) has no symbols
../../../source/graphics/ShaderProgram.cpp:86:15: warning: 'Reload' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void Reload()
                     ^
../../../source/graphics/ShaderProgram.h:124:15: note: overridden virtual function is here
        virtual void Reload() = 0;
                     ^
../../../source/graphics/ShaderProgram.cpp:118:15: warning: 'Bind' overrides a member function

See https://jenkins.wildfiregames.com/job/macos-differential/2983/display/redirect for more details.

Says can't load for me.

source/ps/GameSetup/HWDetect.cpp
221 ↗(On Diff #15547)

Was already incremented by @Imarok I believe.

vladislavbelov requested review of this revision.Jan 20 2021, 12:09 AM
vladislavbelov added a comment.EditedJan 20 2021, 7:53 AM
In D3429#151826, @Stan wrote:

Says can't load for me.

Then it means that SDL can't find vulkan for you or SDL compiled without Vulkan support.

Maybe it makes sense to write platform specific code instead.

Stan added a comment.Jan 20 2021, 8:26 AM

Does it work for you?

Stan added a comment.Apr 29 2021, 10:12 AM

Good news! I've figured out the problem. Or SDl dll doesn't work but updating it to 2.0.14 makes it work again. You can merge this either before or after I update the sdl. Might do so soon.

Imarok added inline comments.Apr 29 2021, 10:22 AM
source/ps/GameSetup/HWDetect.cpp
221 ↗(On Diff #15547)

So what?
This is another meaningful change so I guess it should be updated.

This revision was not accepted when it landed; it landed in state Needs Review.May 24 2021, 12:32 AM
This revision was automatically updated to reflect the committed changes.