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: Fix static array checking #8937

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

spencer-lunarg
Copy link
Contributor

closes #6944

Now that GPU-AV is in a better shape, was able to actually try and re-work this logic. Tests added and re-enabled to confirm things work as expected (still some open edge cases, but will be worked out after getting some spec clarification)

@spencer-lunarg spencer-lunarg requested a review from a team as a code owner November 28, 2024 04:08
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 312046.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18150 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18150 failed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 312603.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18154 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18154 failed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 312677.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18158 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18158 passed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 314115.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18166 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18166 passed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 314386.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18168 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18168 failed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 314441.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18169 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18169 passed.

return false;
}

if (pointer_type->inst_.IsArray() && access_chain_inst->Length() >= 5) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Some comment on this 5 maybe?

return false;
}

const Variable* variable = module_.type_manager_.FindVariableById(access_chain_inst_->Operand(0));
const Variable* variable = module_.type_manager_.FindVariableById(access_chain_inst->Operand(0));
if (!variable) {
return false;
}
var_inst_ = &variable->inst_;

uint32_t storage_class = variable->StorageClass();
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
uint32_t storage_class = variable->StorageClass();
const uint32_t storage_class = variable->StorageClass();

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.

Detect if descriptor is statically indexed
3 participants