lavapipe: check sampler pointer before deref

Dave Airlie requested to merge airlied/mesa:lvp-fix-deferred-demo into main

lavapipe: check sampler pointer before deref

This fixes the vulkan samples deferred demo from crashing in here.

Cc: mesa-stable

Merge request reports