Lines Matching refs:res_tmpl
46 struct pipe_resource res_tmpl, *res; in vlVdpBitmapSurfaceCreate() local
72 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vlVdpBitmapSurfaceCreate()
73 res_tmpl.target = PIPE_TEXTURE_2D; in vlVdpBitmapSurfaceCreate()
74 res_tmpl.format = VdpFormatRGBAToPipe(rgba_format); in vlVdpBitmapSurfaceCreate()
75 res_tmpl.width0 = width; in vlVdpBitmapSurfaceCreate()
76 res_tmpl.height0 = height; in vlVdpBitmapSurfaceCreate()
77 res_tmpl.depth0 = 1; in vlVdpBitmapSurfaceCreate()
78 res_tmpl.array_size = 1; in vlVdpBitmapSurfaceCreate()
79 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; in vlVdpBitmapSurfaceCreate()
80 res_tmpl.usage = frequently_accessed ? PIPE_USAGE_DYNAMIC : PIPE_USAGE_DEFAULT; in vlVdpBitmapSurfaceCreate()
84 if (!CheckSurfaceParams(pipe->screen, &res_tmpl)) { in vlVdpBitmapSurfaceCreate()
89 res = pipe->screen->resource_create(pipe->screen, &res_tmpl); in vlVdpBitmapSurfaceCreate()