Lines Matching refs:tex

461     drm_radeon_texture_regs_t *tex, unsigned int dirty)
563 filp_priv, &tex[0].pp_txoffset)) {
570 OUT_RING(tex[0].pp_txfilter);
571 OUT_RING(tex[0].pp_txformat);
572 OUT_RING(tex[0].pp_txoffset);
573 OUT_RING(tex[0].pp_txcblend);
574 OUT_RING(tex[0].pp_txablend);
575 OUT_RING(tex[0].pp_tfactor);
577 OUT_RING(tex[0].pp_border_color);
583 filp_priv, &tex[1].pp_txoffset)) {
590 OUT_RING(tex[1].pp_txfilter);
591 OUT_RING(tex[1].pp_txformat);
592 OUT_RING(tex[1].pp_txoffset);
593 OUT_RING(tex[1].pp_txcblend);
594 OUT_RING(tex[1].pp_txablend);
595 OUT_RING(tex[1].pp_tfactor);
597 OUT_RING(tex[1].pp_border_color);
603 filp_priv, &tex[2].pp_txoffset)) {
610 OUT_RING(tex[2].pp_txfilter);
611 OUT_RING(tex[2].pp_txformat);
612 OUT_RING(tex[2].pp_txoffset);
613 OUT_RING(tex[2].pp_txcblend);
614 OUT_RING(tex[2].pp_txablend);
615 OUT_RING(tex[2].pp_tfactor);
617 OUT_RING(tex[2].pp_border_color);
639 &state->context, state->tex, state->dirty));
1705 drm_device_t *dev, drm_radeon_texture_t *tex,
1721 if (radeon_check_and_fixup_offset(dev_priv, fpriv, &tex->offset)) {
1743 switch (tex->format) {
1747 tex_width = tex->width * 4;
1757 tex_width = tex->width * 2;
1763 tex_width = tex->width * 1;
1767 DRM_ERROR("invalid texture format %d\n", tex->format);
1774 texpitch = tex->pitch;
1785 DRM_DEBUG("tex=%dx%d blit=%d\n", tex_width, tex->height, blit_width);
1788 DRM_DEBUG("tex: ofs=0x%x p=%d f=%d x=%hd y=%hd w=%hd h=%hd\n",
1789 tex->offset >> 10, tex->pitch, tex->format,
1829 DRM_COPYTO_WITH_RETURN(tex->image, &image32,
1833 DRM_COPYTO_WITH_RETURN(tex->image, image,
1863 * since minimum tex pitch is 64 bytes and we need
1867 * tex height = 1, since our actual image will have
1871 if (tex->height == 1) {
1884 for (i = 0; i < tex->height; i++) {
1895 for (i = 0; i < tex->height; i += 2) {
1921 for (i = 0; i < tex->height; i++) {
1945 OUT_RING((texpitch << 22) | (tex->offset >> 10));
2529 drm_radeon_texture_t tex;
2551 tex.offset = tex32.offset;
2552 tex.pitch = tex32.pitch;
2553 tex.format = tex32.format;
2554 tex.width = tex32.width;
2555 tex.height = tex32.height;
2556 tex.image = (void*)(uintptr_t)tex32.image;
2566 DRM_COPYFROM_WITH_RETURN(&tex, (void *)data, sizeof (tex));
2567 if (tex.image == NULL) {
2571 (drm_radeon_tex_image_t *)tex.image, sizeof (image))) {
2581 ret = radeon_cp_dispatch_texture(fpriv, dev, &tex, &image, mode);