Commit 28aae85b authored by Eric Anholt's avatar Eric Anholt

run: Limit OMP to the -j threads limit.

The -j argument only worked for the "1" case where OMP is skipped.
Otherwise, we'd spawn the max amount of threads (except for -j 1 where
OMP is skipped) and overflow the current_shader_names array.

Noticed when trying to work around an apparent freedreno bug with too
many contexts on the same screen.
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <>
parent d30e99c2
......@@ -557,6 +557,7 @@ main(int argc, char **argv)
case 'j':
max_threads = atoi(optarg);
case 'b':
generate_prog_bin = 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment