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

Unreachable control flow causes shader not to render #79

Open
0152la opened this issue Jul 19, 2017 · 2 comments
Open

Unreachable control flow causes shader not to render #79

0152la opened this issue Jul 19, 2017 · 2 comments

Comments

@0152la
Copy link
Collaborator

0152la commented Jul 19, 2017

[Shaders, screenshots, error log, reproduction steps, platform info, etc.] [ZIP]

Variant correct:

correct image

Variant:

![incorrect image](https://github.com/mc-imperial/shader-compiler-bugs/raw/master/AMD-R9-Fury-Windows10/wrong_images/large-v440-028011ce6441692b_inv_variant_63_2/variant_incorrect.png"incorrect image")

Both shaders write red to gl_FragColor, then have some further unreachable code. In the case of variant_incorrect.frag, we observe a green colour as output. The launcher we used initially sets the buffer colour to green. This indicates that the discard statement is actually executed.

We have also obtained the Fiji ISA (corresponding to the R9 Fury GPU) via the Radeon GPU Analyzer tool. We observe that lines 15 in the two files are performing opposite comparisons.

@0152la
Copy link
Collaborator Author

0152la commented Jul 19, 2017

This issue is a further investigation of #7. It has also been reported to AMD via email, which have confirmed an issue exists.

@afd
Copy link
Member

afd commented Jul 20, 2017

Driver version 17.6.2 on Windows 10 64, bit

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

No branches or pull requests

2 participants