mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 04:00:12 +01:00
spirv2dxil: Only lower readonly images to SRVs when the option is set
This handles the case where readonly is explicitly marked in the shader, rather than just inferred based on opt_access. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21913>
This commit is contained in:
parent
b125575f95
commit
e0a090adfd
1 changed files with 2 additions and 1 deletions
|
|
@ -1085,7 +1085,8 @@ dxil_spirv_nir_passes(nir_shader *nir,
|
|||
} while (progress);
|
||||
}
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_readonly_images_to_tex, true);
|
||||
if (conf->read_only_images_as_srvs)
|
||||
NIR_PASS_V(nir, nir_lower_readonly_images_to_tex, true);
|
||||
nir_lower_tex_options lower_tex_options = {
|
||||
.lower_txp = UINT32_MAX,
|
||||
.lower_invalid_implicit_lod = true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue