[Mesa-dev] [Bug 58718] Crash in src_register() during glClear() call

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 11 10:49:05 PDT 2013


--- Comment #8 from Roland Scheidegger <sroland at vmware.com> ---
(In reply to comment #7)
> In case it helps, it appears that MSVC always treats enum values as signed
> int.  E.g. see:
> http://compgroups.net/comp.lang.c++/problem-with-visual-c++-7.1.3088-and-bit-
> fields/1013665
> GCC appears to use unsigned int if no enum values are negative.
> http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Structures-unions-enumerations-
> and-bit_002dfields-implementation.html
> The implication is that bit-fields may be a bit short if specified as GLuint.

I think I'm missing how that could cause the bug we're seeing here.
FWIW struct ureg_dst actually looks definitely buggy to me, since
IndirectSwizzle should be unsigned, not int, but I just noticed that now by
accident and it's not an issue with ureg_src.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130311/a2fdd293/attachment.html>

More information about the mesa-dev mailing list