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

GPU: Remove unused dynamic state settings #6796

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sunshineinabox
Copy link
Contributor

  • Removed dynamic state setting for Depth Bounds from PipelineDynamicStateCreateInfo as the command to set them is never used. At best this means no change. At worst this may have caused some validation errors?
  • Avoid passing pointers for viewport and scissor since these dynamic states are supported across devices that support Vulkan.
  • Removed references to unused DepthBias values and StencilOpState for both Front and Back.

This change likely has no user facing changes, but just need to check if there is anything broken. Just clean-up for future changes.

@github-actions github-actions bot added gpu Related to Ryujinx.Graphics graphics-backend:vulkan Graphical bugs when using the Vulkan API labels May 12, 2024
@ryujinx-mako ryujinx-mako bot requested review from gdkchan, riperiperi and a team May 12, 2024 05:16
@AcK77 AcK77 changed the title Remove unused dynamic state settings gpu: Remove unused dynamic state settings May 14, 2024
@AcK77 AcK77 changed the title gpu: Remove unused dynamic state settings GPU: Remove unused dynamic state settings May 14, 2024
Copy link
Member

@gdkchan gdkchan left a comment

Choose a reason for hiding this comment

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

lgtm minus comment. This is most likely a leftover from when we didn't use dynamic state at all.

@ryujinx-mako ryujinx-mako bot requested a review from a team May 16, 2024 18:16
…cStateCreateInfo as the command to set them is never called.

Do not pass pointer to viewport and scissor as those dynamic states should be supported on all devices.

Same as above for DepthBias values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gpu Related to Ryujinx.Graphics graphics-backend:vulkan Graphical bugs when using the Vulkan API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants