gallium: add key size to the structure pipe_picture_desc

Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
Reviewed-by: Liming Sun <sunliming@kylinos.cn>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17157>
This commit is contained in:
Feng Jiang
2022-06-20 14:22:28 +08:00
committed by Marge Bot
parent 04d192fccb
commit a7366d68ae
2 changed files with 2 additions and 0 deletions

View File

@@ -283,6 +283,7 @@ handleVAProtectedSliceDataBufferType(vlVaContext *context, vlVaBuffer *buf)
context->desc.base.decrypt_key = CALLOC(1, drm_key_size);
memcpy(context->desc.base.decrypt_key, encrypted_data, drm_key_size);
context->desc.base.key_size = drm_key_size;
context->desc.base.protected_playback = true;
}

View File

@@ -137,6 +137,7 @@ struct pipe_picture_desc
enum pipe_video_entrypoint entry_point;
bool protected_playback;
uint8_t *decrypt_key;
uint32_t key_size;
enum pipe_format input_format;
enum pipe_format output_format;
};