Lines Matching refs:tex
119 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0]; in mga_g200_emit_tex0() local
124 DMA_BLOCK(MGA_TEXCTL2, tex->texctl2, in mga_g200_emit_tex0()
125 MGA_TEXCTL, tex->texctl, in mga_g200_emit_tex0()
126 MGA_TEXFILTER, tex->texfilter, in mga_g200_emit_tex0()
127 MGA_TEXBORDERCOL, tex->texbordercol); in mga_g200_emit_tex0()
129 DMA_BLOCK(MGA_TEXORG, tex->texorg, in mga_g200_emit_tex0()
130 MGA_TEXORG1, tex->texorg1, in mga_g200_emit_tex0()
131 MGA_TEXORG2, tex->texorg2, MGA_TEXORG3, tex->texorg3); in mga_g200_emit_tex0()
133 DMA_BLOCK(MGA_TEXORG4, tex->texorg4, in mga_g200_emit_tex0()
134 MGA_TEXWIDTH, tex->texwidth, in mga_g200_emit_tex0()
135 MGA_TEXHEIGHT, tex->texheight, MGA_WR24, tex->texwidth); in mga_g200_emit_tex0()
137 DMA_BLOCK(MGA_WR34, tex->texheight, in mga_g200_emit_tex0()
147 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0]; in mga_g400_emit_tex0() local
155 DMA_BLOCK(MGA_TEXCTL2, tex->texctl2 | MGA_G400_TC2_MAGIC, in mga_g400_emit_tex0()
156 MGA_TEXCTL, tex->texctl, in mga_g400_emit_tex0()
157 MGA_TEXFILTER, tex->texfilter, in mga_g400_emit_tex0()
158 MGA_TEXBORDERCOL, tex->texbordercol); in mga_g400_emit_tex0()
160 DMA_BLOCK(MGA_TEXORG, tex->texorg, in mga_g400_emit_tex0()
161 MGA_TEXORG1, tex->texorg1, in mga_g400_emit_tex0()
162 MGA_TEXORG2, tex->texorg2, MGA_TEXORG3, tex->texorg3); in mga_g400_emit_tex0()
164 DMA_BLOCK(MGA_TEXORG4, tex->texorg4, in mga_g400_emit_tex0()
165 MGA_TEXWIDTH, tex->texwidth, in mga_g400_emit_tex0()
166 MGA_TEXHEIGHT, tex->texheight, MGA_WR49, 0x00000000); in mga_g400_emit_tex0()
173 MGA_WR54, tex->texwidth | MGA_G400_WR_MAGIC, in mga_g400_emit_tex0()
174 MGA_WR62, tex->texheight | MGA_G400_WR_MAGIC, in mga_g400_emit_tex0()
187 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[1]; in mga_g400_emit_tex1() local
195 DMA_BLOCK(MGA_TEXCTL2, (tex->texctl2 | in mga_g400_emit_tex1()
198 MGA_TEXCTL, tex->texctl, in mga_g400_emit_tex1()
199 MGA_TEXFILTER, tex->texfilter, in mga_g400_emit_tex1()
200 MGA_TEXBORDERCOL, tex->texbordercol); in mga_g400_emit_tex1()
202 DMA_BLOCK(MGA_TEXORG, tex->texorg, in mga_g400_emit_tex1()
203 MGA_TEXORG1, tex->texorg1, in mga_g400_emit_tex1()
204 MGA_TEXORG2, tex->texorg2, MGA_TEXORG3, tex->texorg3); in mga_g400_emit_tex1()
206 DMA_BLOCK(MGA_TEXORG4, tex->texorg4, in mga_g400_emit_tex1()
207 MGA_TEXWIDTH, tex->texwidth, in mga_g400_emit_tex1()
208 MGA_TEXHEIGHT, tex->texheight, MGA_WR49, 0x00000000); in mga_g400_emit_tex1()
213 MGA_WR52, tex->texwidth | MGA_G400_WR_MAGIC); in mga_g400_emit_tex1()
215 DMA_BLOCK(MGA_WR60, tex->texheight | MGA_G400_WR_MAGIC, in mga_g400_emit_tex1()
218 MGA_TEXCTL2, tex->texctl2 | MGA_G400_TC2_MAGIC); in mga_g400_emit_tex1()
403 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[unit]; in mga_verify_tex() local
406 org = tex->texorg & (MGA_TEXORGMAP_MASK | MGA_TEXORGACC_MASK); in mga_verify_tex()
409 DRM_ERROR("*** bad TEXORG: 0x%x, unit %d\n", tex->texorg, unit); in mga_verify_tex()
410 tex->texorg = 0; in mga_verify_tex()