Lines Matching refs:tex

121 	drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0];  in mga_g200_emit_tex0()  local
126 DMA_BLOCK(MGA_TEXCTL2, tex->texctl2, in mga_g200_emit_tex0()
127 MGA_TEXCTL, tex->texctl, in mga_g200_emit_tex0()
128 MGA_TEXFILTER, tex->texfilter, in mga_g200_emit_tex0()
129 MGA_TEXBORDERCOL, tex->texbordercol); in mga_g200_emit_tex0()
131 DMA_BLOCK(MGA_TEXORG, tex->texorg, in mga_g200_emit_tex0()
132 MGA_TEXORG1, tex->texorg1, in mga_g200_emit_tex0()
133 MGA_TEXORG2, tex->texorg2, MGA_TEXORG3, tex->texorg3); in mga_g200_emit_tex0()
135 DMA_BLOCK(MGA_TEXORG4, tex->texorg4, in mga_g200_emit_tex0()
136 MGA_TEXWIDTH, tex->texwidth, in mga_g200_emit_tex0()
137 MGA_TEXHEIGHT, tex->texheight, MGA_WR24, tex->texwidth); in mga_g200_emit_tex0()
139 DMA_BLOCK(MGA_WR34, tex->texheight, in mga_g200_emit_tex0()
149 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0]; in mga_g400_emit_tex0() local
157 DMA_BLOCK(MGA_TEXCTL2, tex->texctl2 | MGA_G400_TC2_MAGIC, in mga_g400_emit_tex0()
158 MGA_TEXCTL, tex->texctl, in mga_g400_emit_tex0()
159 MGA_TEXFILTER, tex->texfilter, in mga_g400_emit_tex0()
160 MGA_TEXBORDERCOL, tex->texbordercol); in mga_g400_emit_tex0()
162 DMA_BLOCK(MGA_TEXORG, tex->texorg, in mga_g400_emit_tex0()
163 MGA_TEXORG1, tex->texorg1, in mga_g400_emit_tex0()
164 MGA_TEXORG2, tex->texorg2, MGA_TEXORG3, tex->texorg3); in mga_g400_emit_tex0()
166 DMA_BLOCK(MGA_TEXORG4, tex->texorg4, in mga_g400_emit_tex0()
167 MGA_TEXWIDTH, tex->texwidth, in mga_g400_emit_tex0()
168 MGA_TEXHEIGHT, tex->texheight, MGA_WR49, 0x00000000); in mga_g400_emit_tex0()
175 MGA_WR54, tex->texwidth | MGA_G400_WR_MAGIC, in mga_g400_emit_tex0()
176 MGA_WR62, tex->texheight | MGA_G400_WR_MAGIC, in mga_g400_emit_tex0()
189 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[1]; in mga_g400_emit_tex1() local
197 DMA_BLOCK(MGA_TEXCTL2, (tex->texctl2 | in mga_g400_emit_tex1()
200 MGA_TEXCTL, tex->texctl, in mga_g400_emit_tex1()
201 MGA_TEXFILTER, tex->texfilter, in mga_g400_emit_tex1()
202 MGA_TEXBORDERCOL, tex->texbordercol); in mga_g400_emit_tex1()
204 DMA_BLOCK(MGA_TEXORG, tex->texorg, in mga_g400_emit_tex1()
205 MGA_TEXORG1, tex->texorg1, in mga_g400_emit_tex1()
206 MGA_TEXORG2, tex->texorg2, MGA_TEXORG3, tex->texorg3); in mga_g400_emit_tex1()
208 DMA_BLOCK(MGA_TEXORG4, tex->texorg4, in mga_g400_emit_tex1()
209 MGA_TEXWIDTH, tex->texwidth, in mga_g400_emit_tex1()
210 MGA_TEXHEIGHT, tex->texheight, MGA_WR49, 0x00000000); in mga_g400_emit_tex1()
215 MGA_WR52, tex->texwidth | MGA_G400_WR_MAGIC); in mga_g400_emit_tex1()
217 DMA_BLOCK(MGA_WR60, tex->texheight | MGA_G400_WR_MAGIC, in mga_g400_emit_tex1()
220 MGA_TEXCTL2, tex->texctl2 | MGA_G400_TC2_MAGIC); in mga_g400_emit_tex1()
405 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[unit]; in mga_verify_tex() local
408 org = tex->texorg & (MGA_TEXORGMAP_MASK | MGA_TEXORGACC_MASK); in mga_verify_tex()
411 DRM_ERROR("*** bad TEXORG: 0x%x, unit %d\n", tex->texorg, unit); in mga_verify_tex()
412 tex->texorg = 0; in mga_verify_tex()