diff options
author | David Rosca <nowrep@gmail.com> | 2023-07-30 17:36:06 +0200 |
---|---|---|
committer | Dylan Baker <dylan.c.baker@intel.com> | 2023-09-01 10:39:35 -0700 |
commit | a2204efb8fda101c60b751a673bb878cd16927e3 (patch) | |
tree | 06b4ecd40e0e511b58aa2f85c9234ccef65e699e /.pick_status.json | |
parent | 94f2aaca0c699b26c8f21de3f4b598c658687461 (diff) |
frontends/va: Ignore requested size when creating VAEncCodedBufferType
The buffer data is not directly accessible to application and it's
internally used to only store VACodedBufferSegment struct.
Ignore the size requested by application and instead allocate
sizeof(VACodedBufferSegment). Use calloc to zero out the struct.
This can save significant amount of memory, for example FFmpeg
will request up to tens of MB for single buffer.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6462
Reviewed-by: Thong Thai <thong.thai@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24410>
(cherry picked from commit 7bcbfae87c9039ebb01f7287403bf5666ca8d64e)
Diffstat (limited to '.pick_status.json')
-rw-r--r-- | .pick_status.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.pick_status.json b/.pick_status.json index 11c95aaddbb..93d2ac7fda6 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -7004,7 +7004,7 @@ "description": "frontends/va: Ignore requested size when creating VAEncCodedBufferType", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null |