Skip to content

Fix BRDF initialization in rhi-null use case#12

Merged
jhanca-robotecai merged 1 commit intojh/simulation-cherriesfrom
mp/fix_boostrap_2409
Feb 5, 2025
Merged

Fix BRDF initialization in rhi-null use case#12
jhanca-robotecai merged 1 commit intojh/simulation-cherriesfrom
mp/fix_boostrap_2409

Conversation

@michalpelka
Copy link

What does this PR do?

This PR fixes null pointer dereferencing that can be caused by running -rhi=null scenario.
It was experienced here : o3de#18649 (comment).

This PR does not require fix in development, since code in BootstrapSystemComponent.cpp is heavily modified in dev comparing to 2409.1

How was this PR tested?

Run game launcher with and test against issue o3de/o3de-extras#792.

  • -rhi=null -console-mode - starts without assertions and crashes (produce some warnings regarding ROS 2 Gem)
  • -rhi=vulkan -console-mode- works, does not reintroduce issue

Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
Copy link

@jhanca-robotecai jhanca-robotecai left a comment

Choose a reason for hiding this comment

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

Tested on Ros2ProjectTemplate;
jh/cherries_24092 on o3de-extras (2d55ec84)
before and after for o3de (b21b699 vs aab497f)

The code looks valid and I can confirm no crashes on my side after the patch is applied (neither with -rhi=null nor -rhi=vulkan for this project).

@jhanca-robotecai jhanca-robotecai merged commit 14ef290 into jh/simulation-cherries Feb 5, 2025
1 check passed
@jhanca-robotecai jhanca-robotecai deleted the mp/fix_boostrap_2409 branch February 5, 2025 15:53
mateuszwasilewski pushed a commit that referenced this pull request Apr 15, 2025
* Fix use case for Star Gem in console mode (o3de#18475)

* Fix use case for Star Gem in console mode

Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>

* Fix sky atmosphere for multiple pipelines (o3de#18476)

Signed-off-by: Artur Kamieniecki <artur.kamieniecki@robotec.ai>

* partial cherry-pick: Quest specular fix (o3de#18510)

Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>

* Added logic to boostrap component that run BRDF pipeline in console mode (o3de#18531)

Co-authored-by: Jan Hanca <jan.hanca@robotec.ai>
Co-authored-by: Piotr Jaroszek <piotr.jaroszek@robotec.ai>
Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>

* Add function "Allow pipeline changes" to CameraComponent (o3de#18524)

* Add function "Allow pipeline changes" to CameraComponent

This is usefull for rendering to texture using features like:
- Sky atmosphere
- Global illumination
Since a lot of feaures processors don't beheave with multiple cameras
this function is activated after changing registry setting:
`/O3DE/Atom/ExperimentalFeaturesEnabled` to `true`
It is to prevent exposure of this function to the majority of users.

This function allows to change the camera pipeline in runtime


---------

Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>

* Fix BRDF initialization in rhi-null use case (#12)

Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>

---------

Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
Signed-off-by: Artur Kamieniecki <artur.kamieniecki@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Co-authored-by: Michał Pełka <michal.pelka@robotec.ai>
Co-authored-by: Artur Kamieniecki <artur.kamieniecki@robotec.ai>
Co-authored-by: Piotr Jaroszek <piotr.jaroszek@robotec.ai>
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.

2 participants