Lines Matching refs:view
82 struct nv50_tic_entry *view;
86 view = MALLOC_STRUCT(nv50_tic_entry);
87 if (!view)
90 view->pipe = *templ;
91 view->pipe.reference.count = 1;
92 view->pipe.texture = NULL;
93 view->pipe.context = pipe;
95 view->id = -1;
97 pipe_resource_reference(&view->pipe.texture, texture);
99 tic = &view->tic[0];
101 desc = util_format_description(view->pipe.format);
105 tic[0] = nv50_format_table[view->pipe.format].tic;
107 tex_int = util_format_is_pure_integer(view->pipe.format);
109 swz[0] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_r, tex_int);
110 swz[1] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_g, tex_int);
111 swz[2] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_b, tex_int);
112 swz[3] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_a, tex_int);
123 addr += view->pipe.u.tex.first_layer * mt->layer_stride;
124 depth = view->pipe.u.tex.last_layer - view->pipe.u.tex.first_layer + 1;
139 return &view->pipe;
194 tic[7] = (view->pipe.u.tex.last_level << 4) | view->pipe.u.tex.first_level;
196 return &view->pipe;