android: anv: fix build error in anv_android.c
authorMauro Rossi <issor.oruam@gmail.com>
Thu, 8 Apr 2021 21:32:14 +0000 (23:32 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Fri, 9 Apr 2021 22:44:30 +0000 (00:44 +0200)
Fixes the following building error:

external/mesa/src/intel/vulkan/anv_android.c:568:13: error: no member named 'stride' in 'struct anv_image_create_info'
   anv_info.stride = gralloc_info->stride *
   ~~~~~~~~ ^
1 error generated.

Fixes: afd2f489d338 ("anv: Drop unused anv_image_create_info::stride")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10119>

src/intel/vulkan/anv_android.c

index 48f2da9..dee7b80 100644 (file)
@@ -565,9 +565,6 @@ anv_image_from_gralloc(VkDevice device_h,
                                                base_info->tiling);
    assert(format != ISL_FORMAT_UNSUPPORTED);
 
-   anv_info.stride = gralloc_info->stride *
-                     (isl_format_get_layout(format)->bpb / 8);
-
    result = anv_image_create(device_h, &anv_info, alloc, &image_h);
    image = anv_image_from_handle(image_h);
    if (result != VK_SUCCESS)