Lines Matching refs:tic
55 nv50_init_tic_entry_linear(uint32_t *tic, struct pipe_resource *res) in nv50_init_tic_entry_linear() argument
58 tic[2] |= NV50_TIC_2_LINEAR | NV50_TIC_2_TARGET_BUFFER; in nv50_init_tic_entry_linear()
59 tic[4] = res->width0; in nv50_init_tic_entry_linear()
63 tic[2] |= NV50_TIC_2_LINEAR | NV50_TIC_2_TARGET_RECT; in nv50_init_tic_entry_linear()
65 tic[2] |= NV50_TIC_2_NORMALIZED_COORDS; in nv50_init_tic_entry_linear()
66 tic[3] = mt->level[0].pitch; in nv50_init_tic_entry_linear()
67 tic[4] = res->width0; in nv50_init_tic_entry_linear()
68 tic[5] = (1 << 16) | res->height0; in nv50_init_tic_entry_linear()
79 uint32_t *tic; in nv50_create_sampler_view() local
99 tic = &view->tic[0]; in nv50_create_sampler_view()
105 tic[0] = nv50_format_table[view->pipe.format].tic; in nv50_create_sampler_view()
109 swz[0] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_r, tex_int); in nv50_create_sampler_view()
110 swz[1] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_g, tex_int); in nv50_create_sampler_view()
111 swz[2] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_b, tex_int); in nv50_create_sampler_view()
112 swz[3] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_a, tex_int); in nv50_create_sampler_view()
113 tic[0] = (tic[0] & ~NV50_TIC_0_SWIZZLE__MASK) | in nv50_create_sampler_view()
129 tic[1] = addr; in nv50_create_sampler_view()
130 tic[2] = (addr >> 32) & 0xff; in nv50_create_sampler_view()
132 tic[2] |= 0x10001000 | NV50_TIC_2_NO_BORDER; in nv50_create_sampler_view()
135 tic[2] |= NV50_TIC_2_COLORSPACE_SRGB; in nv50_create_sampler_view()
138 nv50_init_tic_entry_linear(tic, texture); in nv50_create_sampler_view()
143 tic[2] |= NV50_TIC_2_NORMALIZED_COORDS; in nv50_create_sampler_view()
145 tic[2] |= in nv50_create_sampler_view()
151 tic[2] |= NV50_TIC_2_TARGET_1D; in nv50_create_sampler_view()
154 tic[2] |= NV50_TIC_2_TARGET_2D; in nv50_create_sampler_view()
157 tic[2] |= NV50_TIC_2_TARGET_RECT; in nv50_create_sampler_view()
160 tic[2] |= NV50_TIC_2_TARGET_3D; in nv50_create_sampler_view()
165 tic[2] |= NV50_TIC_2_TARGET_CUBE_ARRAY; in nv50_create_sampler_view()
167 tic[2] |= NV50_TIC_2_TARGET_CUBE; in nv50_create_sampler_view()
170 tic[2] |= NV50_TIC_2_TARGET_1D_ARRAY; in nv50_create_sampler_view()
173 tic[2] |= NV50_TIC_2_TARGET_2D_ARRAY; in nv50_create_sampler_view()
177 tic[2] |= NV50_TIC_2_TARGET_BUFFER | NV50_TIC_2_LINEAR; in nv50_create_sampler_view()
184 tic[3] = 0x00300000; in nv50_create_sampler_view()
186 tic[4] = (1 << 31) | (mt->base.base.width0 << mt->ms_x); in nv50_create_sampler_view()
188 tic[5] = (mt->base.base.height0 << mt->ms_y) & 0xffff; in nv50_create_sampler_view()
189 tic[5] |= depth << 16; in nv50_create_sampler_view()
190 tic[5] |= mt->base.base.last_level << 28; in nv50_create_sampler_view()
192 tic[6] = (mt->ms_x > 1) ? 0x88000000 : 0x03000000; /* sampling points */ in nv50_create_sampler_view()
194 tic[7] = (view->pipe.u.tex.last_level << 4) | view->pipe.u.tex.first_level; in nv50_create_sampler_view()
208 struct nv50_tic_entry *tic = nv50_tic_entry(nv50->textures[s][i]); in nv50_validate_tic() local
211 if (!tic) { in nv50_validate_tic()
216 res = &nv50_miptree(tic->pipe.texture)->base; in nv50_validate_tic()
218 if (tic->id < 0) { in nv50_validate_tic()
219 tic->id = nv50_screen_tic_alloc(nv50->screen, tic); in nv50_validate_tic()
241 PUSH_DATA (push, tic->id * 32); in nv50_validate_tic()
245 PUSH_DATAp(push, &tic->tic[0], 8); in nv50_validate_tic()
254 nv50->screen->tic.lock[tic->id / 32] |= 1 << (tic->id % 32); in nv50_validate_tic()
262 PUSH_DATA (push, (tic->id << 9) | (i << 1) | 1); in nv50_validate_tic()