Lines Matching refs:so
11 * Software is furnished to do so, subject to the following conditions:
81 struct fd2_sampler_stateobj *so = CALLOC_STRUCT(fd2_sampler_stateobj);
83 if (!so)
86 so->base = *cso;
89 so->tex0 =
94 so->tex3 =
98 so->tex4 = 0x00000000; /* ??? */
99 so->tex5 = 0x00000200; /* ??? */
101 return so;
130 struct fd2_pipe_sampler_view *so = CALLOC_STRUCT(fd2_pipe_sampler_view);
133 if (!so)
136 so->base = *cso;
138 so->base.texture = prsc;
139 so->base.reference.count = 1;
140 so->base.context = pctx;
142 so->fmt = fd2_pipe2surface(cso->format);
144 so->tex0 = A2XX_SQ_TEX_0_PITCH(rsc->slices[0].pitch);
145 so->tex2 =
148 so->tex3 = fd2_tex_swiz(cso->format, cso->swizzle_r, cso->swizzle_g,
151 return &so->base;
155 * space of samplers (const-idx), so we need to map the gallium sampler-id