diff options
author | Mauro Rossi <[email protected]> | 2018-06-03 20:41:59 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2018-06-12 11:17:43 +0300 |
commit | fb9ab2fbd3a01693bb540560e6bd8d6f3e43a089 (patch) | |
tree | f0b24a08af6f695bad8b622d46d5d8d23f0012d0 /src/intel/vulkan/anv_android.c | |
parent | a1220e73116bad74f39c1792a0b0cf0e4e5031db (diff) |
anv/android: Use an address for each anv_image plane
Fixes to avoid building error after change in image->planes[] structure,
{bo,bo_offset} has to be replaced by address.{bo,offset}
and update is needed also in the assert() for debug builds.
external/mesa/src/intel/vulkan/anv_android.c:188:21:
error: no member named 'bo' in 'struct anv_image::(anonymous at external/mesa/src/intel/vulkan/anv_private.h:2647:4)'
image->planes[0].bo = bo;
~~~~~~~~~~~~~~~~ ^
1 error generated.
Fixes: bf34ef16ac ("anv: Use an address for each anv_image plane")
Signed-off-by: Mauro Rossi <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_android.c')
-rw-r--r-- | src/intel/vulkan/anv_android.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_android.c b/src/intel/vulkan/anv_android.c index 6e4d5a6d277..3c905d3bdb5 100644 --- a/src/intel/vulkan/anv_android.c +++ b/src/intel/vulkan/anv_android.c @@ -189,9 +189,9 @@ anv_image_from_gralloc(VkDevice device_h, } assert(image->n_planes == 1); - assert(image->planes[0].bo_offset == 0); + assert(image->planes[0].address.offset == 0); - image->planes[0].bo = bo; + image->planes[0].address.bo = bo; image->planes[0].bo_is_owned = true; /* We need to set the WRITE flag on window system buffers so that GEM will |