projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb70474
)
svga: move variant->fs_shadow_compare_units assignment
author
Brian Paul
<brianp@vmware.com>
Wed, 27 Dec 2017 18:36:03 +0000
(11:36 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 10 Sep 2018 19:07:30 +0000
(13:07 -0600)
Fixes a crash since the variant object isn't allocated until later
in the function. Not sure how this got through.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_tgsi_vgpu10.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
index aa07ee1ace986134bbdc9aeaf52f66e2e9cca46b..b9aaeba0bb961f24ff87ec93e2f5ed320d101c69 100644
(file)
--- a/
src/gallium/drivers/svga/svga_tgsi_vgpu10.c
+++ b/
src/gallium/drivers/svga/svga_tgsi_vgpu10.c
@@
-7107,6
+7107,8
@@
svga_tgsi_vgpu10_translate(struct svga_context *svga,
variant->fs_shadow_compare_units = emit->fs.shadow_compare_units;
+ variant->fs_shadow_compare_units = emit->fs.shadow_compare_units;
+
if (tokens != shader->tokens) {
tgsi_free_tokens(tokens);
}