mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 01:48:00 +02:00
drm: fix issue with enum being wrongly used
FAILURE_REASONS_ADD_FB_FAILED is defined as (1 << 3), so when we are accumulating "failure reasons" in a variable we don't need to do the bit shift again. This results in an issue, because (1 << FAILURE_REASONS_ADD_FB_FAILED) results in (1 << (1 << 3)) == (1 << 8). Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
parent
3210cec531
commit
8b83bb5ceb
1 changed files with 1 additions and 1 deletions
|
|
@ -742,7 +742,7 @@ drm_fb_get_from_paint_node(struct drm_output_state *state,
|
|||
fb = drm_fb_get_from_bo(bo, device, is_opaque, BUFFER_CLIENT);
|
||||
if (!fb) {
|
||||
pnode->try_view_on_plane_failure_reasons |=
|
||||
(1 << FAILURE_REASONS_ADD_FB_FAILED);
|
||||
FAILURE_REASONS_ADD_FB_FAILED;
|
||||
gbm_bo_destroy(bo);
|
||||
goto unsuitable;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue