mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-07 01:10:39 +01:00
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 <issor.oruam@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
a1220e7311
commit
fb9ab2fbd3
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue