microsoft/compiler: Lower device index to zero

Maybe we'll support actual device groups at some point, but today
is not that day.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20823>
This commit is contained in:
Jesse Natalie
2023-01-11 15:08:45 -08:00
committed by Marge Bot
parent 725948c6c9
commit 6bb765f3d1

View File

@@ -153,6 +153,7 @@ nir_options = {
nir_lower_dround_even,
.max_unroll_iterations = 32, /* arbitrary */
.force_indirect_unrolling = (nir_var_shader_in | nir_var_shader_out | nir_var_function_temp),
.lower_device_index_to_zero = true,
};
const nir_shader_compiler_options*