mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
panvk: lower multisampled images before nir_lower_descriptors
This will allow image_deref_size intrinsics generated in pan_nir_lower_image_ms to be lowered in nir_lower_descriptors. Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39207>
This commit is contained in:
parent
75b0dc667d
commit
cf8a63c578
1 changed files with 6 additions and 0 deletions
|
|
@ -764,6 +764,12 @@ panvk_lower_nir(struct panvk_device *dev, nir_shader *nir,
|
|||
NIR_PASS(_, nir, nir_vk_lower_ycbcr_tex, lookup_ycbcr_conversion,
|
||||
&ycbcr_state);
|
||||
|
||||
/* We need to do this before nir_lower_descriptors so any image_deref_size
|
||||
* intrinsics generated can be lowered there.
|
||||
*/
|
||||
if (PAN_ARCH < 9)
|
||||
NIR_PASS(_, nir, pan_nir_lower_image_ms);
|
||||
|
||||
panvk_per_arch(nir_lower_descriptors)(nir, dev, rs, set_layout_count,
|
||||
set_layouts, state, desc_info);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue