turnip: Sanity check that we're adding valid BOs to the list.
authorEric Anholt <eric@anholt.net>
Wed, 4 Dec 2019 20:21:50 +0000 (12:21 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 5 Dec 2019 04:32:15 +0000 (20:32 -0800)
commite26962f756a15f0b6b56822b677b7a984acb9029
tree6274ddee26bd8a57480a212c7dbfc92720a6bc50
parent4365e955d8d4e19b38adf00fba834cf82ebad7e1
turnip: Sanity check that we're adding valid BOs to the list.

I tripped over this during CS enabling when my program BO wasn't set up.
Easier to debug this way than the kernel telling us a 0 handle is invalid.

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/freedreno/vulkan/tu_cmd_buffer.c