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

ANGLE gives error about possible divide by zero at the Direct3D level #66

Open
afd opened this issue Mar 21, 2017 · 2 comments
Open

ANGLE gives error about possible divide by zero at the Direct3D level #66

afd opened this issue Mar 21, 2017 · 2 comments

Comments

@afd
Copy link
Member

afd commented Mar 21, 2017

This shader:

https://github.com/mc-imperial/shader-compiler-bugs/tree/master/angle/front-end/divide-by-zero

has a possible division by zero, if the conditional statement evaluates to true at runtime.

ANGLE rejects the shader, which is perhaps reasonable. However, rejection is at the Direct3D level, with an error message referring to a file called "C:\fakepath". If ANGLE is going to reject the shader it would seem better for this to be done at the GLSL level if possible.

This may be more of a "polishing" sort of bug, as the Direct3D-level error is at least easy enough to understand. Here is the error string, with Google Chrome Version 57.0.2987.110 (64-bit)

"
Failed to link shader program.
C:\fakepath(29,32-58): error X4010: Unsigned integer divide by zero
C:\fakepath(29,32-58): error X4010: Unsigned integer divide by zero
C:\fakepath(29,32-58): warning X3556: integer divides may be much slower, try us
ing uints if possible.

Warning: D3D shader compilation failed with default flags. (ps_5_0)
Retrying with skip validation
C:\fakepath(29,32-58): error X4010: Unsigned integer divide by zero
C:\fakepath(29,32-58): error X4010: Unsigned integer divide by zero
C:\fakepath(29,32-58): warning X3556: integer divides may be much slower, try us
ing uints if possible.

Warning: D3D shader compilation failed with skip validation flags. (ps_5_0)
Retrying with skip optimization
C:\fakepath(29,32-58): error X4010: Unsigned integer divide by zero
C:\fakepath(29,32-58): warning X3556: integer divides may be much slower, try us
ing uints if possible.

Warning: D3D shader compilation failed with skip optimization flags. (ps_5_0)
Failed to create D3D shaders.
"

@afd afd added the reported label Mar 24, 2017
@afd
Copy link
Member Author

afd commented Jul 19, 2017

Treating as "confirmed" due to the nature of an associated comment on the report.

@afd afd added confirmed and removed reported labels Jul 19, 2017
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

1 participant