diff options
author | Eric Anholt <[email protected]> | 2017-10-20 15:53:18 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-20 15:53:55 -0700 |
commit | f4ff8f74ee74b97b9b058f41e404eb41aa5e6359 (patch) | |
tree | 30e6dc43c5e701bfce9af4c5c81f8ba0460118a9 /src/gallium | |
parent | 9cd60fce9c22737000a8f8dc711141f8a523fe75 (diff) |
broadcom/vc5: Fix build failure frm nir_shader::stage removal.
Fixes: 59fb59ad54d3 ("nir: Get rid of nir_shader::stage")
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_program.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/vc5/vc5_program.c b/src/gallium/drivers/vc5/vc5_program.c index 80865a25a4d..8e9af1ad8ab 100644 --- a/src/gallium/drivers/vc5/vc5_program.c +++ b/src/gallium/drivers/vc5/vc5_program.c @@ -178,9 +178,9 @@ vc5_shader_state_create(struct pipe_context *pctx, vc5_set_transform_feedback_outputs(so, &cso->stream_output); if (V3D_DEBUG & (V3D_DEBUG_NIR | - v3d_debug_flag_for_shader_stage(s->stage))) { + v3d_debug_flag_for_shader_stage(s->info.stage))) { fprintf(stderr, "%s prog %d NIR:\n", - gl_shader_stage_name(s->stage), + gl_shader_stage_name(s->info.stage), so->program_id); nir_print_shader(s, stderr); fprintf(stderr, "\n"); @@ -197,7 +197,7 @@ vc5_get_compiled_shader(struct vc5_context *vc5, struct v3d_key *key) struct hash_table *ht; uint32_t key_size; - if (s->stage == MESA_SHADER_FRAGMENT) { + if (s->info.stage == MESA_SHADER_FRAGMENT) { ht = vc5->fs_cache; key_size = sizeof(struct v3d_fs_key); } else { @@ -218,7 +218,7 @@ vc5_get_compiled_shader(struct vc5_context *vc5, struct v3d_key *key) uint64_t *qpu_insts; uint32_t shader_size; - switch (s->stage) { + switch (s->info.stage) { case MESA_SHADER_VERTEX: shader->prog_data.vs = rzalloc(shader, struct v3d_vs_prog_data); |