zink: handle NULL views in zink_set_sampler_views

Erik Faye-Lund requested to merge kusma/mesa:zink-fix-sampler-view-null into master

Passing NULL for the views parameter should be the same as passing an array of NULL, according to the documentation. So let's respect that detail.

This fixes a crash when using GALLIUM_HUD.

Fixes: 8d46e35d ("zink: introduce opengl over vulkan")

Merge request reports