summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-12-27 11:36:03 -0700
committerBrian Paul <[email protected]>2018-09-10 13:07:30 -0600
commitc174ee9f9dc8ae29df3218e6b293ad309e6a9a86 (patch)
treeb38421389dd2c6c0e34e3abb25b3e4df062a76ae /src/gallium/drivers/svga
parentcb70474b2006dd30d755a7177fd60fb582da849b (diff)
svga: move variant->fs_shadow_compare_units assignment
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_tgsi_vgpu10.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
index aa07ee1ace9..b9aaeba0bb9 100644
--- 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);
}