nir/schedule: Store a pointer to the options struct in scoreboard
authorNeil Roberts <nroberts@igalia.com>
Fri, 17 Jul 2020 07:17:29 +0000 (09:17 +0200)
committerNeil Roberts <nroberts@igalia.com>
Fri, 24 Jul 2020 07:21:11 +0000 (09:21 +0200)
commit260a8f759a7689c27baecc311f32e117965b2de7
tree2d11d1f98833bc792405f7067c435172788d734e
parent7665398e6c4fa903405d3daefcc93ddb0a37b488
nir/schedule: Store a pointer to the options struct in scoreboard

Instead of copying the individual members of nir_schedule_options into
the scoreboard, it now just keeps a pointer to the options. This avoids
the duplicated comments and makes it easier to add more options later.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5953>
src/compiler/nir/nir_schedule.c