Lines Matching defs:tex_templ
267 struct pipe_resource tex_templ, *tex;
297 memset(&tex_templ, 0, sizeof(tex_templ));
298 tex_templ.target = PIPE_TEXTURE_2D;
299 tex_templ.format = XvIDToPipe(pipe->screen, xvimage_id);
300 tex_templ.last_level = 0;
305 tex_templ.width0 = width;
306 tex_templ.height0 = height;
309 tex_templ.width0 = util_next_power_of_two(width);
310 tex_templ.height0 = util_next_power_of_two(height);
312 tex_templ.depth0 = 1;
313 tex_templ.array_size = 1;
314 tex_templ.usage = PIPE_USAGE_DYNAMIC;
315 tex_templ.bind = PIPE_BIND_SAMPLER_VIEW;
316 tex_templ.flags = 0;
318 tex = pipe->screen->resource_create(pipe->screen, &tex_templ);
338 pipe->screen, tex_templ.format, &palette_format,
343 tex_templ.target = PIPE_TEXTURE_1D;
344 tex_templ.format = palette_format;
345 tex_templ.width0 = subpicture->num_palette_entries;
346 tex_templ.height0 = 1;
347 tex_templ.usage = PIPE_USAGE_DEFAULT;
349 tex = pipe->screen->resource_create(pipe->screen, &tex_templ);