microsoft/compiler: share common passes between nir_to_dxil callers
This issue is to track sharing common passes in D3D12 Gallium, clc_to_dxil
, and spirv_to_dxil
and cleaning up and code in nir_to_dxil
that duplicates work that an earlier pass could do.
This was brought up because there is some code in nir_to_dxil
to handle the default-LOD case, but this is handled by nir_lower_tex
(with default args) and can be called by both clc_to_dxil
and spirv_to_dxil
.
From: !12462 (comment 1038069)
Edited by Michael Tang