Lines Matching defs:resources
62 struct r600_texture *resources[VL_NUM_COMPONENTS] = {};
74 /* first create the needed resources as "normal" textures */
86 resources[0] = (struct r600_texture *)
88 if (!resources[0])
96 resources[1] = (struct r600_texture *)
98 if (!resources[1])
107 resources[2] = (struct r600_texture *)
109 if (!resources[2])
114 if (!resources[i])
117 pbs[i] = &resources[i]->resource.buf;
118 surfaces[i] = &resources[i]->surface;
124 if (!resources[i])
128 resources[i]->resource.gpu_address = ctx->b.ws->buffer_get_virtual_address(
129 resources[i]->resource.buf);
133 return vl_video_buffer_create_ex2(pipe, &template, (struct pipe_resource **)resources);
137 r600_texture_reference(&resources[i], NULL);
162 struct r600_texture *luma = (struct r600_texture *)buf->resources[0];
163 struct r600_texture *chroma = (struct r600_texture *)buf->resources[1];
173 /* get the radeon resources for VCE */