r600/sfn: use lower bool to int32 and lower int_tg4 only on shader clone
These changes should not be visible to shader variants that may go through the optimization another time. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9302>
This commit is contained in:
@@ -964,6 +964,7 @@ int r600_shader_from_nir(struct r600_context *rctx,
|
||||
while (optimize_once(sh, true));
|
||||
|
||||
NIR_PASS_V(sh, nir_lower_bool_to_int32);
|
||||
NIR_PASS_V(sh, r600_nir_lower_int_tg4);
|
||||
NIR_PASS_V(sh, nir_opt_algebraic_late);
|
||||
|
||||
if (sh->info.stage == MESA_SHADER_FRAGMENT)
|
||||
|
Reference in New Issue
Block a user