microsoft/compiler: Unroll loops in opt passes
authorJesse Natalie <jenatali@microsoft.com>
Mon, 1 May 2023 20:08:12 +0000 (13:08 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 1 May 2023 21:12:43 +0000 (21:12 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22786>

src/gallium/drivers/d3d12/ci/d3d12-quick_shader.txt
src/microsoft/ci/warp-fails.txt
src/microsoft/compiler/nir_to_dxil.c

index 8ae2afb..5eab2fe 100644 (file)
@@ -27,8 +27,8 @@ spec@arb_tessellation_shader@execution@variable-indexing@tcs-patch-output-array-
 spec@arb_tessellation_shader@execution@variable-indexing@tcs-patch-output-array-vec2-index-wr,Crash
 spec@arb_tessellation_shader@execution@variable-indexing@tcs-patch-output-array-vec3-index-wr,Crash
 spec@arb_tessellation_shader@execution@variable-indexing@tcs-patch-output-array-vec4-index-wr,Crash
-spec@arb_tessellation_shader@execution@variable-indexing@tcs-patch-vec4-index-wr,Crash
-spec@arb_tessellation_shader@execution@variable-indexing@tcs-patch-vec4-swiz-index-wr,Crash
+spec@arb_tessellation_shader@execution@variable-indexing@tcs-patch-vec4-index-wr,Fail
+spec@arb_tessellation_shader@execution@variable-indexing@tcs-patch-vec4-swiz-index-wr,Fail
 spec@arb_tessellation_shader@execution@variable-indexing@tes-both-input-array-float-index-rd,Crash
 spec@arb_tessellation_shader@execution@variable-indexing@tes-both-input-array-vec2-index-rd,Crash
 spec@arb_tessellation_shader@execution@variable-indexing@tes-both-input-array-vec3-index-rd,Crash
index 907d898..760bc3e 100644 (file)
@@ -239,12 +239,6 @@ dEQP-VK.glsl.loops.generic.do_while_uniform_iterations.basic_highp_float_fragmen
 dEQP-VK.glsl.loops.generic.do_while_uniform_iterations.basic_highp_float_vertex,Fail
 dEQP-VK.glsl.loops.generic.do_while_uniform_iterations.basic_mediump_float_fragment,Fail
 dEQP-VK.glsl.loops.generic.do_while_uniform_iterations.basic_mediump_float_vertex,Fail
-dEQP-VK.glsl.loops.special.do_while_constant_iterations.dowhile_trap_fragment,Fail
-dEQP-VK.glsl.loops.special.do_while_constant_iterations.dowhile_trap_vertex,Fail
-dEQP-VK.glsl.loops.special.do_while_constant_iterations.nested_sequence_fragment,Fail
-dEQP-VK.glsl.loops.special.do_while_constant_iterations.nested_sequence_vertex,Fail
-dEQP-VK.glsl.loops.special.do_while_constant_iterations.sequence_fragment,Fail
-dEQP-VK.glsl.loops.special.do_while_constant_iterations.sequence_vertex,Fail
 dEQP-VK.glsl.loops.special.do_while_dynamic_iterations.dowhile_trap_fragment,Fail
 dEQP-VK.glsl.loops.special.do_while_dynamic_iterations.dowhile_trap_vertex,Fail
 dEQP-VK.glsl.loops.special.do_while_dynamic_iterations.nested_sequence_fragment,Fail
index c4de9dd..f0af9cf 100644 (file)
@@ -6408,6 +6408,7 @@ optimize_nir(struct nir_shader *s, const struct nir_to_dxil_options *opts)
       NIR_PASS(progress, s, nir_opt_deref);
       NIR_PASS(progress, s, dxil_nir_lower_upcast_phis, opts->lower_int16 ? 32 : 16);
       NIR_PASS(progress, s, nir_lower_64bit_phis);
+      NIR_PASS(progress, s, nir_opt_loop_unroll);
       NIR_PASS_V(s, nir_lower_system_values);
    } while (progress);