X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fstate_trackers%2Fxorg%2Fxvmc%2Fsurface.c;fp=src%2Fgallium%2Fstate_trackers%2Fxorg%2Fxvmc%2Fsurface.c;h=c90ad409c1008f40eabd14b928c08b69ac35a57c;hb=b922a0ce12916a91cfc3e56714913fcf63279ff2;hp=d7285a478fb4e473663cb0060e4b52dadf76d6b6;hpb=f013b4f8f1329982727691a55cc263e3011d02bf;p=mesa.git diff --git a/src/gallium/state_trackers/xorg/xvmc/surface.c b/src/gallium/state_trackers/xorg/xvmc/surface.c index d7285a478fb..c90ad409c10 100644 --- a/src/gallium/state_trackers/xorg/xvmc/surface.c +++ b/src/gallium/state_trackers/xorg/xvmc/surface.c @@ -122,6 +122,7 @@ CreateOrResizeBackBuffer(struct vl_context *vctx, unsigned int width, unsigned i template.width0 = width; template.height0 = height; template.depth0 = 1; + template.array_size = 1; template.usage = PIPE_USAGE_DEFAULT; template.bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET | PIPE_BIND_BLIT_SOURCE; template.flags = 0; @@ -240,6 +241,7 @@ Status XvMCCreateSurface(Display *dpy, XvMCContext *context, XvMCSurface *surfac template.height0 = util_next_power_of_two(context->height); } template.depth0 = 1; + template.array_size = 1; template.usage = PIPE_USAGE_DEFAULT; template.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; template.flags = 0;