diff options
author | Marek Olšák <[email protected]> | 2014-09-17 22:44:22 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-09-24 14:48:02 +0200 |
commit | 1abb1a97b0559b103c4a458def317c6440491a76 (patch) | |
tree | 62e6d35683d2fc36d2c464302b9592cbeee1489c /src/gallium/drivers/radeonsi/si_state.c | |
parent | e29353ff20a2761a5a1caeaed78398557797207c (diff) |
radeonsi: don't pass the context to the shader translator
This should prevent accessing context state there.
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 37774d7ba58..2aa9aad2e07 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2287,7 +2287,7 @@ int si_shader_select(struct pipe_context *ctx, shader->next_variant = sel->current; sel->current = shader; - r = si_shader_create(ctx, shader); + r = si_shader_create((struct si_screen*)ctx->screen, shader); if (unlikely(r)) { R600_ERR("Failed to build shader variant (type=%u) %d\n", sel->type, r); |