Lines Matching refs:textures

1663 		track->textures[i].robj = reloc->robj;  in r100_packet0_check()
1679 track->textures[0].cube_info[i].offset = idx_value; in r100_packet0_check()
1681 track->textures[0].cube_info[i].robj = reloc->robj; in r100_packet0_check()
1697 track->textures[1].cube_info[i].offset = idx_value; in r100_packet0_check()
1699 track->textures[1].cube_info[i].robj = reloc->robj; in r100_packet0_check()
1715 track->textures[2].cube_info[i].offset = idx_value; in r100_packet0_check()
1717 track->textures[2].cube_info[i].robj = reloc->robj; in r100_packet0_check()
1810 track->textures[i].enabled = !!(temp & (1 << i)); in r100_packet0_check()
1824 track->textures[i].width = (idx_value & RADEON_TEX_USIZE_MASK) + 1; in r100_packet0_check()
1825 track->textures[i].height = ((idx_value & RADEON_TEX_VSIZE_MASK) >> RADEON_TEX_VSIZE_SHIFT) + 1; in r100_packet0_check()
1832 track->textures[i].pitch = idx_value + 32; in r100_packet0_check()
1839 track->textures[i].num_levels = ((idx_value & RADEON_MAX_MIP_LEVEL_MASK) in r100_packet0_check()
1843 track->textures[i].roundup_w = false; in r100_packet0_check()
1846 track->textures[i].roundup_h = false; in r100_packet0_check()
1854 track->textures[i].use_pitch = true; in r100_packet0_check()
1856 track->textures[i].use_pitch = false; in r100_packet0_check()
1857 …track->textures[i].width = 1 << ((idx_value & RADEON_TXFORMAT_WIDTH_MASK) >> RADEON_TXFORMAT_WIDTH… in r100_packet0_check()
1858 …track->textures[i].height = 1 << ((idx_value & RADEON_TXFORMAT_HEIGHT_MASK) >> RADEON_TXFORMAT_HEI… in r100_packet0_check()
1861 track->textures[i].tex_coord_type = 2; in r100_packet0_check()
1866 track->textures[i].cpp = 1; in r100_packet0_check()
1867 track->textures[i].compress_format = R100_TRACK_COMP_NONE; in r100_packet0_check()
1878 track->textures[i].cpp = 2; in r100_packet0_check()
1879 track->textures[i].compress_format = R100_TRACK_COMP_NONE; in r100_packet0_check()
1885 track->textures[i].cpp = 4; in r100_packet0_check()
1886 track->textures[i].compress_format = R100_TRACK_COMP_NONE; in r100_packet0_check()
1889 track->textures[i].cpp = 1; in r100_packet0_check()
1890 track->textures[i].compress_format = R100_TRACK_COMP_DXT1; in r100_packet0_check()
1894 track->textures[i].cpp = 1; in r100_packet0_check()
1895 track->textures[i].compress_format = R100_TRACK_COMP_DXT35; in r100_packet0_check()
1898 track->textures[i].cube_info[4].width = 1 << ((idx_value >> 16) & 0xf); in r100_packet0_check()
1899 track->textures[i].cube_info[4].height = 1 << ((idx_value >> 20) & 0xf); in r100_packet0_check()
1908 track->textures[i].cube_info[face].width = 1 << ((tmp >> (face * 8)) & 0xf); in r100_packet0_check()
1909 track->textures[i].cube_info[face].height = 1 << ((tmp >> ((face * 8) + 4)) & 0xf); in r100_packet0_check()
2158 unsigned compress_format = track->textures[idx].compress_format; in r100_cs_track_cube()
2161 cube_robj = track->textures[idx].cube_info[face].robj; in r100_cs_track_cube()
2162 w = track->textures[idx].cube_info[face].width; in r100_cs_track_cube()
2163 h = track->textures[idx].cube_info[face].height; in r100_cs_track_cube()
2169 size *= track->textures[idx].cpp; in r100_cs_track_cube()
2171 size += track->textures[idx].cube_info[face].offset; in r100_cs_track_cube()
2176 r100_cs_track_texture_print(&track->textures[idx]); in r100_cs_track_cube()
2192 if (!track->textures[u].enabled) in r100_cs_track_texture_check()
2194 if (track->textures[u].lookup_disable) in r100_cs_track_texture_check()
2196 robj = track->textures[u].robj; in r100_cs_track_texture_check()
2202 for (i = 0; i <= track->textures[u].num_levels; i++) { in r100_cs_track_texture_check()
2203 if (track->textures[u].use_pitch) { in r100_cs_track_texture_check()
2205 w = (track->textures[u].pitch / track->textures[u].cpp) / (1 << i); in r100_cs_track_texture_check()
2207 w = track->textures[u].pitch / (1 << i); in r100_cs_track_texture_check()
2209 w = track->textures[u].width; in r100_cs_track_texture_check()
2211 w |= track->textures[u].width_11; in r100_cs_track_texture_check()
2213 if (track->textures[u].roundup_w) in r100_cs_track_texture_check()
2216 h = track->textures[u].height; in r100_cs_track_texture_check()
2218 h |= track->textures[u].height_11; in r100_cs_track_texture_check()
2220 if (track->textures[u].roundup_h) in r100_cs_track_texture_check()
2222 if (track->textures[u].tex_coord_type == 1) { in r100_cs_track_texture_check()
2223 d = (1 << track->textures[u].txdepth) / (1 << i); in r100_cs_track_texture_check()
2229 if (track->textures[u].compress_format) { in r100_cs_track_texture_check()
2231 size += r100_track_compress_size(track->textures[u].compress_format, w, h) * d; in r100_cs_track_texture_check()
2236 size *= track->textures[u].cpp; in r100_cs_track_texture_check()
2238 switch (track->textures[u].tex_coord_type) { in r100_cs_track_texture_check()
2252 "%u\n", track->textures[u].tex_coord_type, u); in r100_cs_track_texture_check()
2258 r100_cs_track_texture_print(&track->textures[u]); in r100_cs_track_texture_check()
2448 track->textures[i].compress_format = R100_TRACK_COMP_NONE; in r100_cs_track_clear()
2449 track->textures[i].pitch = 16536; in r100_cs_track_clear()
2450 track->textures[i].width = 16536; in r100_cs_track_clear()
2451 track->textures[i].height = 16536; in r100_cs_track_clear()
2452 track->textures[i].width_11 = 1 << 11; in r100_cs_track_clear()
2453 track->textures[i].height_11 = 1 << 11; in r100_cs_track_clear()
2454 track->textures[i].num_levels = 12; in r100_cs_track_clear()
2456 track->textures[i].tex_coord_type = 0; in r100_cs_track_clear()
2457 track->textures[i].txdepth = 0; in r100_cs_track_clear()
2459 track->textures[i].txdepth = 16; in r100_cs_track_clear()
2460 track->textures[i].tex_coord_type = 1; in r100_cs_track_clear()
2462 track->textures[i].cpp = 64; in r100_cs_track_clear()
2463 track->textures[i].robj = NULL; in r100_cs_track_clear()
2465 track->textures[i].enabled = false; in r100_cs_track_clear()
2466 track->textures[i].lookup_disable = false; in r100_cs_track_clear()
2467 track->textures[i].roundup_w = true; in r100_cs_track_clear()
2468 track->textures[i].roundup_h = true; in r100_cs_track_clear()
2471 track->textures[i].cube_info[face].robj = NULL; in r100_cs_track_clear()
2472 track->textures[i].cube_info[face].width = 16536; in r100_cs_track_clear()
2473 track->textures[i].cube_info[face].height = 16536; in r100_cs_track_clear()
2474 track->textures[i].cube_info[face].offset = 0; in r100_cs_track_clear()