diff options
author | Edward O'Callaghan <[email protected]> | 2016-12-06 11:28:56 +1100 |
---|---|---|
committer | Edward O'Callaghan <[email protected]> | 2016-12-21 15:00:21 +1100 |
commit | 8801734da701d95608e39d829e0a31a191ee68f2 (patch) | |
tree | 1ca2b2df98ab04d6fd29db8b5f102300f17ea26a /src/gallium/winsys/nouveau | |
parent | e827d9175675aaa6cfc0b981e2a80685fb7b3a74 (diff) |
svga: Fix a strict-aliasing violation in shader dumper
As per the C spec, it is illegal to alias pointers to different
types. This results in undefined behaviour after optimization
passes, resulting in very subtle bugs that happen only on a
full moon..
Use a memcpy() as a well defined coercion between the isomorphic
bit-field interpretations of memory.
V.2: Use C99 compat STATIC_ASSERT() over C11 static_assert().
Signed-off-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/winsys/nouveau')
0 files changed, 0 insertions, 0 deletions