Skip to content

d3d12: d3d12_video_buffer_create_impl - Fix resource importing

Sil Vilerino requested to merge sivileri/mesa:fix_import_video_buffer into main

What does this MR do and why?

d3d12: d3d12_video_buffer_create_impl - Fix resource importing

Only align resource dimensions on creation, not when importing existing D3D resource object. Otherwise importing the resource fails since the resource descriptor does not match the aligned dimensions passed in the template.

Fixes: 62fded5e ("d3d12: Allocate d3d12_video_buffer with higher alignment for compatibility")

cc @gdevi

Merge request reports