mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 14:40:10 +01:00
glsl: don't generate transform feedback candidate when not required
If we are not even looking for one don't bother generating a candidate list. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
c1bbaff1e8
commit
ea7f64f74d
1 changed files with 4 additions and 2 deletions
|
|
@ -1643,8 +1643,10 @@ assign_varying_locations(struct gl_context *ctx,
|
|||
(output_var->data.stream < MAX_VERTEX_STREAMS &&
|
||||
producer->Stage == MESA_SHADER_GEOMETRY));
|
||||
|
||||
tfeedback_candidate_generator g(mem_ctx, tfeedback_candidates);
|
||||
g.process(output_var);
|
||||
if (num_tfeedback_decls > 0) {
|
||||
tfeedback_candidate_generator g(mem_ctx, tfeedback_candidates);
|
||||
g.process(output_var);
|
||||
}
|
||||
|
||||
ir_variable *const input_var =
|
||||
linker::get_matching_input(mem_ctx, output_var, consumer_inputs,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue