diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-10-31 20:25:08 -0700 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-11-09 23:31:00 +0000 |
commit | ab3aeab2972cb4f36ec99e42ca7dec80f0d27043 (patch) | |
tree | f2e17d7d4ba6439f010239016d470757eea5c54b /src/intel | |
parent | 5bdd4fc273176bbbfb9adfe6cc397a6b0525c1d2 (diff) | |
download | external_mesa3d-ab3aeab2972cb4f36ec99e42ca7dec80f0d27043.zip external_mesa3d-ab3aeab2972cb4f36ec99e42ca7dec80f0d27043.tar.gz external_mesa3d-ab3aeab2972cb4f36ec99e42ca7dec80f0d27043.tar.bz2 |
anv: Initialize anv_bo::offset to -1
Since -1 is an invalid GPU address, this lets us know whether or not we
have a valid address for a buffer. We don't get a valid address until the
first time that buffer is used in an execbuf2 ioctl.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit d46bfb629725a5b8c327f3bd7f76d04f5ae262aa)
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 1302df7..9e2ab14 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -272,7 +272,7 @@ anv_bo_init(struct anv_bo *bo, uint32_t gem_handle, uint64_t size) { bo->gem_handle = gem_handle; bo->index = 0; - bo->offset = 0; + bo->offset = -1; bo->size = size; bo->map = NULL; bo->is_winsys_bo = false; |