vk/private.h: Handle a NULL bo but valid offset in __gen_combine_address
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 27 Aug 2015 00:58:22 +0000 (17:58 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 27 Aug 2015 17:25:58 +0000 (10:25 -0700)
src/vulkan/anv_private.h

index cb8defd23b6ca5ebcb0d4f2061178b3bb0a21b68..05799276718fb4daa7973a9373b65bb83832a350 100644 (file)
@@ -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);