pan/bi: Set compute lowering options
authorIcecream95 <ixn@disroot.org>
Tue, 22 Dec 2020 12:28:02 +0000 (01:28 +1300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 18 Jan 2021 20:49:45 +0000 (20:49 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8358>

src/panfrost/bifrost/bifrost_compile.h

index 7aa5a38..9c94087 100644 (file)
@@ -80,6 +80,9 @@ static const nir_shader_compiler_options bifrost_nir_options = {
         .use_interpolated_input_intrinsics = true,
 
         .lower_uniforms_to_ubo = true,
+
+        .has_cs_global_id = true,
+        .lower_cs_local_index_from_id = true,
 };
 
 #endif