gallium/va: don't use key=NULL in hash tables
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 26 Jul 2021 13:47:24 +0000 (15:47 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 30 Jul 2021 08:24:16 +0000 (10:24 +0200)
commit2ea88d7cea070c3288c252064cae9236bd462646
tree080de08a4289cde91552e5b77879d78588b2e2d3
parentf376597d00d732778c446179b13033695ebec079
gallium/va: don't use key=NULL in hash tables

Add 1 to the key index otherwise we hit the following assert
in hash_table_insert:

   assert(!key_pointer_is_reserved(ht, key));

Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12105>
src/gallium/frontends/va/picture_h264_enc.c
src/gallium/frontends/va/picture_hevc_enc.c