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

Fixing problem with Android armv7 optmization which causes alignment violation #2188

Merged
merged 4 commits into from
Jun 30, 2020

Conversation

BorisShir
Copy link
Contributor

No description provided.

@BorisShir BorisShir requested a review from bkaradzic as a code owner June 30, 2020 11:04
@@ -1869,7 +1869,7 @@ namespace bgfx
frameNoRenderWait();

m_encoderHandle = bx::createHandleAlloc(g_allocator, _init.limits.maxEncoders);
m_encoder = (EncoderImpl*)BX_ALLOC(g_allocator, sizeof(EncoderImpl)*_init.limits.maxEncoders);
m_encoder = (EncoderImpl*)BX_ALIGNED_ALLOC(g_allocator, sizeof(EncoderImpl)*_init.limits.maxEncoders, 16);
Copy link
Owner

Choose a reason for hiding this comment

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

You must match freeing with BX_ALIGNED_FREE...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BorisShir BorisShir requested a review from bkaradzic June 30, 2020 15:29
@bkaradzic bkaradzic merged commit 290ffcf into bkaradzic:master Jun 30, 2020
rozgo pushed a commit to VertexStudio/bgfx that referenced this pull request Aug 14, 2020
… violation (bkaradzic#2188)

* Fixing problem with Android armv7 optmization which causes alignment violation
pigpigyyy added a commit to pigpigyyy/bgfx that referenced this pull request Mar 11, 2021
* master:
  update sdf see bkaradzic#2193 (bkaradzic#2196)
  Added ability to disable discrete GPU selection.
  Cleanup.
  Cleanup.
  Updated spirv-cross.
  Updated spirv-tools.
  Updated glslang.
  fix declaration of sdfCoverageToDistance (bkaradzic#2193)
  Fixed issue bkaradzic#2192.
  02-metaballs: Added settings.
  Fixes for D3D12 on Linux.
  Updated ImGui.
  Fixing problem with Android armv7 optmization which causes alignment violation (bkaradzic#2188)
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