Commit abcd7547 authored by Gert Wollny's avatar Gert Wollny

vrend: Fix newly introduced warnings when ENABLE_GBM_ALLOCATION is not set

In this case the paramters 'format' is not used in 'vrend_format_can_scanout'
and 'gr' are not used in 'vrend_allocate_using_gbm'.
Signed-off-by: Gert Wollny's avatarGert Wollny <>
Reviewed-by: Gurchetan Singh's avatarGurchetan Singh <>
parent e480cb63
Pipeline #57097 passed with stages
in 13 minutes and 27 seconds
......@@ -696,6 +696,7 @@ static inline bool vrend_format_can_scanout(enum virgl_formats format)
return gbm_device_is_format_supported(gbm->device, gbm_format, GBM_BO_USE_SCANOUT);
return true;
......@@ -6187,6 +6188,7 @@ static void *vrend_allocate_using_gbm(struct vrend_resource *gr)
gr->gbm_bo = bo;
return image;
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment