svga: move variant->fs_shadow_compare_units assignment
authorBrian Paul <brianp@vmware.com>
Wed, 27 Dec 2017 18:36:03 +0000 (11:36 -0700)
committerBrian 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

index aa07ee1ace986134bbdc9aeaf52f66e2e9cca46b..b9aaeba0bb961f24ff87ec93e2f5ed320d101c69 100644 (file)
@@ -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);
    }