Disables loop unrolling.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12803>
*/
{ "tmu16", V3D_DEBUG_TMU_16BIT,
"Force 16-bit precision on all TMU operations" },
+ { "noloopunroll", V3D_DEBUG_NO_LOOP_UNROLL,
+ "Disable loop unrolling" },
{ NULL }
};
#define V3D_DEBUG_DUMP_SPIRV (1 << 17)
#define V3D_DEBUG_TMU_32BIT (1 << 18)
#define V3D_DEBUG_TMU_16BIT (1 << 19)
+#define V3D_DEBUG_NO_LOOP_UNROLL (1 << 20)
#define V3D_DEBUG_SHADERS (V3D_DEBUG_TGSI | V3D_DEBUG_NIR | \
V3D_DEBUG_VIR | V3D_DEBUG_QPU | \
c->fallback_scheduler = fallback_scheduler;
c->disable_tmu_pipelining = disable_tmu_pipelining;
c->disable_constant_ubo_load_sorting = disable_constant_ubo_load_sorting;
- c->disable_loop_unrolling = disable_loop_unrolling;
+ c->disable_loop_unrolling = V3D_DEBUG & V3D_DEBUG_NO_LOOP_UNROLL
+ ? true : disable_loop_unrolling;
s = nir_shader_clone(c, s);
c->s = s;