OSDN Git Service

st/va: fix the incorrect max profiles report
authorLeo Liu <leo.liu@amd.com>
Fri, 8 Feb 2019 13:56:53 +0000 (08:56 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 15 Feb 2019 11:38:47 +0000 (11:38 +0000)
commit36258308a794b157b561912d719724a44db281b2
tree22c8184b9e0382b4c50f906116167a36a021ebf8
parentf1eccd091d7bb0d54db5d632704bf5dedae8a461
st/va: fix the incorrect max profiles report

Add "PIPE_VIDEO_PROFILE_MAX" to enum, so it will make sure here will
be correct when adding more profiles in the future.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109107

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
Cc: 19.0 <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 21cdb828a3f4d1e2f140fc7c81a4bc305b2f6b04)
src/gallium/include/pipe/p_video_enums.h
src/gallium/state_trackers/va/context.c