mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
microsoft/spirv_to_dxil: lower input attachments
Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14765>
This commit is contained in:
parent
e65303c6e6
commit
d11a417ded
1 changed files with 8 additions and 0 deletions
|
|
@ -336,6 +336,14 @@ spirv_to_dxil(const uint32_t *words, size_t word_count,
|
|||
conf->runtime_data_cbv.register_space,
|
||||
conf->runtime_data_cbv.base_shader_register);
|
||||
|
||||
if (stage == MESA_SHADER_FRAGMENT) {
|
||||
NIR_PASS_V(nir, nir_lower_input_attachments,
|
||||
&(nir_input_attachment_options){
|
||||
.use_fragcoord_sysval = false,
|
||||
.use_layer_id_sysval = true,
|
||||
});
|
||||
}
|
||||
|
||||
NIR_PASS_V(nir, nir_opt_deref);
|
||||
|
||||
if (conf->read_only_images_as_srvs) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue