projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dafa772
)
svga: initialize svga_compile_key to zeros to be safe
author
Brian Paul
<brianp@vmware.com>
Thu, 26 Jul 2012 21:55:26 +0000
(15:55 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 26 Jul 2012 22:00:31 +0000
(16:00 -0600)
src/gallium/drivers/svga/svga_tgsi.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_tgsi.c
b/src/gallium/drivers/svga/svga_tgsi.c
index f4ddefbec275cbf018e5b51f287c204d7850d311..8bea7f88dca7581d39c00623f9a3d9890d01e877 100644
(file)
--- a/
src/gallium/drivers/svga/svga_tgsi.c
+++ b/
src/gallium/drivers/svga/svga_tgsi.c
@@
-348,6
+348,8
@@
svga_translate_fragment_program( const struct svga_fragment_shader *fs,
{
struct svga_compile_key key;
+ memset(&key, 0, sizeof(key));
+
memcpy(&key.fkey, fkey, sizeof *fkey);
memcpy(key.generic_remap_table, fs->generic_remap_table,
@@
-364,6
+366,8
@@
svga_translate_vertex_program( const struct svga_vertex_shader *vs,
{
struct svga_compile_key key;
+ memset(&key, 0, sizeof(key));
+
memcpy(&key.vkey, vkey, sizeof *vkey);
/* Note: we could alternately store the remap table in the vkey but