radv: don't assert on empty hash table
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 27 Aug 2017 21:29:36 +0000 (00:29 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 30 Aug 2017 23:47:26 +0000 (02:47 +0300)
commitb8dd69e1b49a5c4c5c82e34f804a97f7448ff6c3
tree35d52abe187ae943c66c2dfaeb6f4dd194ceecca
parent5610911fed0f03962807ff9eb79d99eb005a5d71
radv: don't assert on empty hash table

Currently if table_size is 0, it's falling through to:

unreachable("hash table should never be full");

But table_size can be 0 when RADV_DEBUG=nocache is set, or when the
table allocation fails (which is not considered an error).

Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline_cache.c