Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[graphics] Put the dummy drm init+exit step back in. JB#59812 #13

Merged
merged 4 commits into from Feb 15, 2023

Conversation

spiiroin
Copy link
Contributor

[yamui] Normalize indentation

Should be: Indent by 8 and use leading tabs.

[yamui] Call gr_exit() even if gr_init() fails

Failing gr_init() call can leave dynamic resources behind
and these are not released unless gr_exit() is called.

Ensure that yamui does not skip gr_exit() on gr_init() failure

[graphics] Fix potential null deref in gr_exit()

For example partially successful gr_init() call can call gr_exit()
before gr_backend has been set to non-null value.

Check that gr_backend has non-null value before use.

While at it, check also that gr_vt_fd has actually been opened.

[graphics] Put the dummy drm init+exit step back in. JB#59812

In Xperia 10 yamui works when tested after bootup, but shows blank
screen when used for bootup splash screen (as the real intent is).

So, apparently that dummy drm init+exit that got removed in refactoring
is after all needed for some devices and needs to be put back in.

In Xperia 10 yamui works when tested after bootup, but shows blank
screen when used for bootup splash screen (as the real intent is).

So, apparently that dummy drm init+exit that got removed in refactoring
is after all needed for some devices and needs to be put back in.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
For example partially successful gr_init() call can call gr_exit()
before gr_backend has been set to non-null value.

Check that gr_backend has non-null value before use.

While at it, check also that gr_vt_fd has actually been opened.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
Failing gr_init() call can leave dynamic resources behind
and these are not released unless gr_exit() is called.

Ensure that yamui does not skip gr_exit() on gr_init() failure

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
Should be: Indent by 8 and use leading tabs.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
@spiiroin spiiroin merged commit 4137018 into sailfishos:master Feb 15, 2023
@spiiroin spiiroin deleted the jb59812_drm_init branch February 15, 2023 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants