mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 19:08:03 +03:00
hasvk: Rework H.264 decode into long mode.
This is why the previously added slice header parser exists. Assisted-by: Claude
This commit is contained in:
1 parent
c3fe6d4a87
commit
23b29b1f92
4 files changed
+626
-226
No files matched your search
@@ -3209,10 +3209,9 @@ VkResult anv_AllocateMemory(
|
||||
|
||||
mem->dedicated_image = image;
|
||||
|
||||
/* Some legacy (non-modifiers) consumers need the tiling to be set on
|
||||
* the BO. In this case, we have a dedicated allocation.
|
||||
*/
|
||||
if (image->vk.wsi_legacy_scanout) {
|
||||
if (image->vk.wsi_legacy_scanout ||
|
||||
(image->vk.usage & (VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR |
|
||||
VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR))) {
|
||||
const struct isl_surf *surf = &image->planes[0].primary_surface.isl;
|
||||
result = anv_device_set_bo_tiling(device, mem->bo,
|
||||
surf->row_pitch_B,
|
||||
|
||||
Reference in new issue
Block a user