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

layers: Fix PIPELINE_STATE::GetStageStates bug #4760

Merged

Conversation

spencer-lunarg
Copy link
Contributor

closes #4689

Better version of #4690

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 28432.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 9324 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 9324 failed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 28459.

self.flag_values_definitions[flag] = Guarded(self.featureExtraProtect, decl)
if flag in self.flagBitsAsArray:
decl = 'const std::array<%s, %d> All%s = {%s};' % (flag, len(bits), flag, ','.join(bits))
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: maybe use formatted string literals instead (not 100% sure about the syntax):

decl = 'const std::array<{flag}, {len(bits)}> All{flag} = {{{','.join(bits)}}}'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So yes, the python string format debate 😆

I have zero preference how we printf in the scripts, but as long as it is consistent everywhere... which is far from currently. I just mimicked the styles in the function above and where the other std::array string is

There is a long needed TODO to align all these to a single style

Copy link
Contributor

@arno-lunarg arno-lunarg left a comment

Choose a reason for hiding this comment

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

LGTM! Only one nit

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 9326 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 9326 failed.

Copy link
Contributor

@ncesario-lunarg ncesario-lunarg left a comment

Choose a reason for hiding this comment

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

One question, but otherwise LGTM!

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 28800.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 9344 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 9344 failed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 28994.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 9347 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 9347 failed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 29032.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 9349 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 9349 passed.

@spencer-lunarg spencer-lunarg merged commit bcf3a2b into KhronosGroup:master Nov 8, 2022
@spencer-lunarg spencer-lunarg deleted the spencer-lunarg-4689-2 branch November 16, 2022 14:33
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.

UBSAN error in PIPELINE_STATE::GetStageStates
5 participants