radeonsi: use the correct target machine when building shader variants
authorMarek Olšák <marek.olsak@amd.com>
Tue, 17 Jan 2017 17:04:13 +0000 (18:04 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 18 Jan 2017 18:51:31 +0000 (19:51 +0100)
commit35cd7551a443477147293e562d8c1adfbe00dea9
treef4321ccd915c7ab9a494c1470f7df74856cb5bd2
parent3ae3be6dd44dbc5ac6ec847ce67c53c10479a75c
radeonsi: use the correct target machine when building shader variants

If the shader selector is created with a different context than
the shader variant, we should use the calling context's target machine
for the shader variant.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99419

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_shaders.c