diff options
author | Pierre-Eric Pelloux-Prayer <[email protected]> | 2020-02-05 10:21:20 +0100 |
---|---|---|
committer | Pierre-Eric Pelloux-Prayer <[email protected]> | 2020-02-27 10:01:31 +0100 |
commit | 24f2b0a8560f34745854bf8263fa7c2d0f95f2bc (patch) | |
tree | 775bf398b06d9e3c10cc4d5f9a0f9ca80d09ccea /src/gallium/state_trackers/va/surface.c | |
parent | 87807298a307d4e38195dc04f66c26404e7cb791 (diff) |
gallium/video: remove pipe_video_buffer.chroma_format
chroma_format depends on buffer_format so use the format_to_chroma_format
helper instead of storing it next to buffer_format.
This avoids bugs where one value is changed without updating the other.
Reviewed-by: Marek Olšák <[email protected]>
Acked-by: Leo Liu <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3738>
Diffstat (limited to 'src/gallium/state_trackers/va/surface.c')
-rw-r--r-- | src/gallium/state_trackers/va/surface.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/va/surface.c b/src/gallium/state_trackers/va/surface.c index 47c6f9b06c9..495a68b492c 100644 --- a/src/gallium/state_trackers/va/surface.c +++ b/src/gallium/state_trackers/va/surface.c @@ -786,8 +786,6 @@ vlVaCreateSurfaces2(VADriverContextP ctx, unsigned int format, templat.buffer_format = expected_format; } - templat.chroma_format = ChromaToPipe(format); - templat.width = width; templat.height = height; |