Check the shader IR type first before freeing the NIR IR in draw_delete_geometry_shader() in case the IR has been converted to TGSI and the NIR IR has already been freed.
/cc @sroland @bhenden @airlied