From 375a65d5de218fc3686b6b2bc719acf1c82a410c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 26 Aug 2015 17:58:22 -0700 Subject: [PATCH] vk/private.h: Handle a NULL bo but valid offset in __gen_combine_address --- src/vulkan/anv_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index cb8defd23b6..05799276718 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -505,7 +505,7 @@ __gen_combine_address(struct anv_batch *batch, void *location, const struct anv_address address, uint32_t delta) { if (address.bo == NULL) { - return delta; + return address.offset + delta; } else { assert(batch->start <= location && location < batch->end); -- 2.30.2