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)
committerLeo Liu <leo.liu@amd.com>
Mon, 11 Feb 2019 19:44:16 +0000 (14:44 -0500)
commit21cdb828a3f4d1e2f140fc7c81a4bc305b2f6b04
tree168460dec292092d3918b0397e1f39fa83a47eff
parent2cf2a5673995e61de5943d502d1b29102e16cd5c
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>
src/gallium/include/pipe/p_video_enums.h
src/gallium/state_trackers/va/context.c