mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
glupload: dmabuf: Only pass padded size for indirect tiled handling
We only require out_info to hold on padded width/height when using our internal detiling shaders. Doing so for direct upload leads to the image being scaled down in a way that the padding is displayed. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7849>
This commit is contained in:
parent
e9b2e98ef7
commit
9f707f6c64
1 changed files with 2 additions and 1 deletions
|
@ -1551,7 +1551,8 @@ _dma_buf_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps,
|
|||
* the tile dimension. This is because the shader needs to know the padded
|
||||
* size in order to correctly sample into these special buffer.
|
||||
*/
|
||||
if (meta && GST_VIDEO_FORMAT_INFO_IS_TILED (out_info->finfo)) {
|
||||
if (!dmabuf->direct && meta &&
|
||||
GST_VIDEO_FORMAT_INFO_IS_TILED (out_info->finfo)) {
|
||||
out_info->width = meta->width;
|
||||
out_info->height = meta->height;
|
||||
|
||||
|
|
Loading…
Reference in a new issue