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

Shader DebugInfo doesn't give correct string name for same type #3861

Open
spencer-lunarg opened this issue Feb 3, 2025 · 0 comments
Open
Labels

Comments

@spencer-lunarg
Copy link
Contributor

spencer-lunarg commented Feb 3, 2025

(see with -gVS https://godbolt.org/z/9o3TdvYTn)

#version 450
#extension GL_EXT_shader_8bit_storage: enable
#extension GL_EXT_shader_explicit_arithmetic_types_int8: enable

struct Foo {
    uint a;
};

layout(push_constant) uniform PushConstant {
    uint b;
    Foo foo;
    vec4 c;
} data;

void main(){
    gl_Position = data.c;
}

There is not a OpString for both "a" and "b" so this is generating

%16 = OpString "a"
%17 = OpString "Foo"
%20 = OpString "PushConstant"

%member_a = OpExtInst %26 %1 DebugTypeMember %16 %32 %35 %30 %64 %31 %31 %33
%66 = OpExtInst %26 %1 DebugTypeComposite %17 %37 %35 %55 %31 %40 %17 %31 %33 %member_a

%member_b = OpExtInst %26 %1 DebugTypeMember %16 %32 %35 %30 %64 %31 %31 %33
%73 = OpExtInst %26 %1 DebugTypeComposite %20 %37 %35 %55 %31 %40 %20 %31 %33 %member_b %70 %72

and results and showing a VVL error message of data.a when it should be data.b

also the Line is 6 so there is this is just fully wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants