diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-04-05 17:38:38 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-04-19 18:10:31 +0200 |
commit | e56514f6316e48ee2231841d45695ff2b8f8b4f5 (patch) | |
tree | f883828a8897de706dc4ef494737360352dc2fcc /src/gallium/drivers/radeonsi/si_compute.c | |
parent | c3083d841e04e14d3682e55cf5d1004f5310e9d4 (diff) |
radeonsi: update predicate condition for compute dispatches
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 1cdaf6c9ecf..e0750314e76 100644 --- a/src/gallium/drivers/radeonsi/si_compute.c +++ b/src/gallium/drivers/radeonsi/si_compute.c @@ -450,6 +450,12 @@ static void si_launch_grid( if (!si_switch_compute_shader(sctx, program, &program->shader, info->pc)) return; + if (si_is_atom_dirty(sctx, sctx->atoms.s.render_cond)) { + sctx->atoms.s.render_cond->emit(&sctx->b, + sctx->atoms.s.render_cond); + si_set_atom_dirty(sctx, sctx->atoms.s.render_cond, false); + } + if (program->input_size || program->ir_type == PIPE_SHADER_IR_NATIVE) si_upload_compute_input(sctx, info); |