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