Home | History | Annotate | Download | only in nvc0

Lines Matching refs:view

66    struct nv50_tic_entry *view;
70 view = MALLOC_STRUCT(nv50_tic_entry);
71 if (!view)
75 view->pipe = *templ;
76 view->pipe.reference.count = 1;
77 view->pipe.texture = NULL;
78 view->pipe.context = pipe;
80 view->id = -1;
82 pipe_resource_reference(&view->pipe.texture, texture);
84 tic = &view->tic[0];
86 desc = util_format_description(view->pipe.format);
88 tic[0] = nvc0_format_table[view->pipe.format].tic;
90 tex_int = util_format_is_pure_integer(view->pipe.format);
92 swz[0] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_r, tex_int);
93 swz[1] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_g, tex_int);
94 swz[2] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_b, tex_int);
95 swz[3] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_a, tex_int);
113 view->pipe.u.buf.first_element * desc->block.bits / 8;
117 view->pipe.u.buf.last_element - view->pipe.u.buf.first_element + 1;
132 return &view->pipe;
146 address += view->pipe.u.tex.first_layer * mt->layer_stride;
147 depth = view->pipe.u.tex.last_layer - view->pipe.u.tex.first_layer + 1;
198 tic[7] = (view->pipe.u.tex.last_level << 4) | view->pipe.u.tex.first_level;
206 return &view->pipe;