[Bug 94129] Mesa's compiler should warn about undefined values

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 18 13:46:34 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=94129

Alejandro Piñeiro (freenode IRC: apinheiro) <apinheiro at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |apinheiro at igalia.com

--- Comment #1 from Alejandro Piñeiro (freenode IRC: apinheiro) <apinheiro at igalia.com> ---
(In reply to Kenneth Graunke from comment #0)
> Many WebGL programs accidentally use undefined values, expecting them to be
> zero initialized (which is not required).  NVidia apparently issues a
> compiler warning in this case. 

FWIW, although it is true that NVIDIA driver seems more verbose with respect to
warnings, I have just tested on GL_VERSION = 4.5.0 NVIDIA 352.55, and I didn't
see any warning on a shader like this:

#version 130

in vec3 color;
out vec4 outColor;

void main() {
  vec4 undefined;

  outColor = vec4(color, 1.0) + undefined;
}

That shows a lot of crap on string.

> We should too.

If you don't mind I will take a look to this bug.

> This is fairly easy to detect in NIR - see if ssa_undefs are used. 

Will start looking here.

>  But,
> it's not clear whether we can issue warnings from that level.

Ok.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20160218/47b1fbfd/attachment.html>


More information about the intel-3d-bugs mailing list