History

hwcontext_vulkan: align host mapping size to minImportedHostPointerAlignment

This was left out of the recent rewrite of the system.

Lynne committed 2 years ago

Commit 604dfdb1 parent 18d964f1 file · +1 −0Browse files

Unified · Split

libavutil/hwcontext_vulkan.c+1−0
@@ -3830,6 +3830,7 @@ static int host_map_frame(AVHWFramesContext *hwfc, AVBufferRef **dst, int *nb_bu · 3829 unmodified lines
3830 /* Add the offset at the start, which gets ignored */3830 /* Add the offset at the start, which gets ignored */
3831 buffer_size = offs + swf->linesize[i]*p_h;3831 buffer_size = offs + swf->linesize[i]*p_h;
3832 buffer_size = FFALIGN(buffer_size, p->props.properties.limits.minMemoryMapAlignment);3832 buffer_size = FFALIGN(buffer_size, p->props.properties.limits.minMemoryMapAlignment);
3833 buffer_size = FFALIGN(buffer_size, p->hprops.minImportedHostPointerAlignment);
3833 3834
3834 /* Create a buffer */3835 /* Create a buffer */
3835 vkb = av_mallocz(sizeof(*vkb));3836 vkb = av_mallocz(sizeof(*vkb));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t