Commit 23875037 authored by JeffyChen's avatar JeffyChen
Browse files

glamor: xv: Fix invalid accessing of plane attributes for NV12



NV12 only has 2 planes.
Signed-off-by: JeffyChen's avatarJeffy Chen <jeffy.chen@rock-chips.com>
parent 535f1465
Pipeline #77338 passed with stages
in 6 minutes and 6 seconds
......@@ -291,10 +291,10 @@ glamor_xv_query_image_attributes(int id,
pitches[0] = size;
size *= *h;
if (offsets)
offsets[1] = offsets[2] = size;
offsets[1] = size;
tmp = ALIGN(*w, 4);
if (pitches)
pitches[1] = pitches[2] = tmp;
pitches[1] = tmp;
tmp *= (*h >> 1);
size += tmp;
break;
......
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