nir/scheduler: Add an option to specify what stages share memory for I/O
authorNeil Roberts <nroberts@igalia.com>
Wed, 17 Jun 2020 13:18:06 +0000 (15:18 +0200)
committerNeil Roberts <nroberts@igalia.com>
Mon, 22 Jun 2020 06:23:06 +0000 (08:23 +0200)
commited29b576cbc1da8eb0d1fa3483104bbf61e73ccf
tree1c32182b0824882fc7088a5a4f4b4b4c31f42a3f
parent28e3209985fc3c812cb0bd92b70d23abd6409190
nir/scheduler: Add an option to specify what stages share memory for I/O

The scheduler has code to handle hardware that shares the same memory
for inputs and outputs. Seeing as the specific stages that need this is
probably hardware-dependent, this patch makes it a configurable option
instead of hard-coding it to everything but fragment shaders.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5561>
src/broadcom/compiler/vir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_schedule.c