change va max_entrypoints
authorChandu Babu N <mailto:chandu@amd.com>
Sat, 17 Jun 2017 11:49:13 +0000 (11:49 +0000)
committerChristian König <christian.koenig@amd.com>
Thu, 22 Jun 2017 10:10:57 +0000 (12:10 +0200)
commit1d4cbcdf285730d8e692e10c44cb5dc7e683efc1
tree9ce59d92769e53959b3063e51f20280b1d58437f
parentb1a359b7d8a0559412d253101e930a6a45d9af7a
change va max_entrypoints

As encode support is added along with decode, increase max_entrypoints to two.
vaMaxNumEntrypoints was returning incorrect value and causing
memory corruption before this commit

v2: assert when max_entrypoints needs to be bigger

CC: mesa-stable@lists.freedesktop.org
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/config.c
src/gallium/state_trackers/va/context.c