summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-08-26 17:58:22 -0700
committerJason Ekstrand <[email protected]>2015-08-27 10:25:58 -0700
commit375a65d5de218fc3686b6b2bc719acf1c82a410c (patch)
tree024f1b365cae7485ec47651b7994f9a2bba61e1d /src/vulkan/anv_private.h
parentc8365c55f551b357bdee0aace5569e970c6c3758 (diff)
vk/private.h: Handle a NULL bo but valid offset in __gen_combine_address
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r--src/vulkan/anv_private.h2
1 files changed, 1 insertions, 1 deletions
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);