Lines Matching refs:tex

462     drm_radeon_texture_regs_t *tex, unsigned int dirty)
564 filp_priv, &tex[0].pp_txoffset)) {
571 OUT_RING(tex[0].pp_txfilter);
572 OUT_RING(tex[0].pp_txformat);
573 OUT_RING(tex[0].pp_txoffset);
574 OUT_RING(tex[0].pp_txcblend);
575 OUT_RING(tex[0].pp_txablend);
576 OUT_RING(tex[0].pp_tfactor);
578 OUT_RING(tex[0].pp_border_color);
584 filp_priv, &tex[1].pp_txoffset)) {
591 OUT_RING(tex[1].pp_txfilter);
592 OUT_RING(tex[1].pp_txformat);
593 OUT_RING(tex[1].pp_txoffset);
594 OUT_RING(tex[1].pp_txcblend);
595 OUT_RING(tex[1].pp_txablend);
596 OUT_RING(tex[1].pp_tfactor);
598 OUT_RING(tex[1].pp_border_color);
604 filp_priv, &tex[2].pp_txoffset)) {
611 OUT_RING(tex[2].pp_txfilter);
612 OUT_RING(tex[2].pp_txformat);
613 OUT_RING(tex[2].pp_txoffset);
614 OUT_RING(tex[2].pp_txcblend);
615 OUT_RING(tex[2].pp_txablend);
616 OUT_RING(tex[2].pp_tfactor);
618 OUT_RING(tex[2].pp_border_color);
640 &state->context, state->tex, state->dirty));
1706 drm_device_t *dev, drm_radeon_texture_t *tex,
1722 if (radeon_check_and_fixup_offset(dev_priv, fpriv, &tex->offset)) {
1744 switch (tex->format) {
1748 tex_width = tex->width * 4;
1758 tex_width = tex->width * 2;
1764 tex_width = tex->width * 1;
1768 DRM_ERROR("invalid texture format %d\n", tex->format);
1775 texpitch = tex->pitch;
1786 DRM_DEBUG("tex=%dx%d blit=%d\n", tex_width, tex->height, blit_width);
1789 DRM_DEBUG("tex: ofs=0x%x p=%d f=%d x=%hd y=%hd w=%hd h=%hd\n",
1790 tex->offset >> 10, tex->pitch, tex->format,
1830 DRM_COPYTO_WITH_RETURN(tex->image, &image32,
1834 DRM_COPYTO_WITH_RETURN(tex->image, image,
1864 * since minimum tex pitch is 64 bytes and we need
1868 * tex height = 1, since our actual image will have
1872 if (tex->height == 1) {
1885 for (i = 0; i < tex->height; i++) {
1896 for (i = 0; i < tex->height; i += 2) {
1922 for (i = 0; i < tex->height; i++) {
1946 OUT_RING((texpitch << 22) | (tex->offset >> 10));
2530 drm_radeon_texture_t tex;
2552 tex.offset = tex32.offset;
2553 tex.pitch = tex32.pitch;
2554 tex.format = tex32.format;
2555 tex.width = tex32.width;
2556 tex.height = tex32.height;
2557 tex.image = (void*)(uintptr_t)tex32.image;
2567 DRM_COPYFROM_WITH_RETURN(&tex, (void *)data, sizeof (tex));
2568 if (tex.image == NULL) {
2572 (drm_radeon_tex_image_t *)tex.image, sizeof (image))) {
2582 ret = radeon_cp_dispatch_texture(fpriv, dev, &tex, &image, mode);