summaryrefslogtreecommitdiffstats
path: root/src/mapi/vgapi
diff options
context:
space:
mode:
authorLauri Kasanen <[email protected]>2013-05-03 16:55:49 +0300
committerAndreas Boll <[email protected]>2013-05-03 19:28:57 +0200
commite495d88453076a4fe552502d66d6a3869ab70e4a (patch)
tree13cc525c21991df5a81869ff75814f02fb50ccbe /src/mapi/vgapi
parent5ff81cfd8640d02dc78d736cad5020d54ef7a0dc (diff)
r600g: Correctly initialize the shader key, v2
Assigning a struct only copies the members - any padding is left as is. Thus this code: struct foo_t foo; foo = bar; leaves the padding of foo intact, ie uninitialized random garbage. This patch fixes constant shader recompiles by initializing the struct to zero. For completeness, memcpy is used to copy the key to the shader struct. NOTE: This is a candidate for the stable branches. Signed-off-by: Lauri Kasanen <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Andreas Boll <[email protected]>
Diffstat (limited to 'src/mapi/vgapi')
0 files changed, 0 insertions, 0 deletions