cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGL & Vulkan

armageddon
Adept I

GLSL Linker bindless sampler2DShadow crash

Hey,

During implementation of bindless texture with ARB_bindless_texture I just found a crash(nullptr dereference) that happens during glLinkProgram in atio6axx.dll!00007ffce698a911() Unknown.

layout (std140) uniform SomeUniform
{
    sampler2DShadow ShadowMap;
};

void main()
{
     ...
     float result = texture(ShadowMap, vec3(Uvs, depth)).r;
     ...
}

 Changing snippet to use sampler2D fixes issue(but we lose comparison sampler):

layout (std140) uniform SomeUniform
{
    sampler2D ShadowMap;
};

void main()
{
     ...
     float result = texture(ShadowMap, Uvs).r < depth ? 1.0 : 0.0;
     ...
}

Driver version: 22.88.2
Graphics Card: RX 480 8GB

A fix(or workaround) would be very welcome.

Best Regards

0 Likes
1 Solution
dipak
Big Boss

Hi @armageddon ,

As I can see from the related bug ticket, the above issue has been fixed and the fix is already available in the recent drivers (since 23.2.1). Could you please try the latest driver and let us know your findings?

Thanks.

View solution in original post

0 Likes
6 Replies
dipak
Big Boss

Hi @armageddon ,

Thank you for reporting the issue. I have whitelisted you and moved the post to the AMD OpenGL developers forum.

Thanks.

dipak
Big Boss

Hi @armageddon ,

I have reported the issue to the OpenGL team. If I get any update on this, I will let you know.

Thanks.

dipak
Big Boss

Update:

The OpenGL team was able to reproduce the issue. A ticket has been opened to track this issue.

Thanks.

dipak
Big Boss

Hi @armageddon ,

As I can see from the related bug ticket, the above issue has been fixed and the fix is already available in the recent drivers (since 23.2.1). Could you please try the latest driver and let us know your findings?

Thanks.

0 Likes

Yes, it works! 🙂 thank you!

0 Likes

Thanks for the confirmation.

0 Likes