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
38303830 /* Add the offset at the start, which gets ignored */
38313831 buffer_size = offs + swf->linesize[i]*p_h;
38323832 buffer_size = FFALIGN(buffer_size, p->props.properties.limits.minMemoryMapAlignment);
3833+ buffer_size = FFALIGN(buffer_size, p->hprops.minImportedHostPointerAlignment);
38333834
38343835 /* Create a buffer */
38353836 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