Home | History | Annotate | Download | only in nv50

Lines Matching refs:tic

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