Lines Matching refs:textures
1664 track->textures[i].robj = reloc->robj; in r100_packet0_check()
1680 track->textures[0].cube_info[i].offset = idx_value; in r100_packet0_check()
1682 track->textures[0].cube_info[i].robj = reloc->robj; in r100_packet0_check()
1698 track->textures[1].cube_info[i].offset = idx_value; in r100_packet0_check()
1700 track->textures[1].cube_info[i].robj = reloc->robj; in r100_packet0_check()
1716 track->textures[2].cube_info[i].offset = idx_value; in r100_packet0_check()
1718 track->textures[2].cube_info[i].robj = reloc->robj; in r100_packet0_check()
1811 track->textures[i].enabled = !!(temp & (1 << i)); in r100_packet0_check()
1825 track->textures[i].width = (idx_value & RADEON_TEX_USIZE_MASK) + 1; in r100_packet0_check()
1826 track->textures[i].height = ((idx_value & RADEON_TEX_VSIZE_MASK) >> RADEON_TEX_VSIZE_SHIFT) + 1; in r100_packet0_check()
1833 track->textures[i].pitch = idx_value + 32; in r100_packet0_check()
1840 track->textures[i].num_levels = ((idx_value & RADEON_MAX_MIP_LEVEL_MASK) in r100_packet0_check()
1844 track->textures[i].roundup_w = false; in r100_packet0_check()
1847 track->textures[i].roundup_h = false; in r100_packet0_check()
1855 track->textures[i].use_pitch = true; in r100_packet0_check()
1857 track->textures[i].use_pitch = false; in r100_packet0_check()
1858 …track->textures[i].width = 1 << ((idx_value & RADEON_TXFORMAT_WIDTH_MASK) >> RADEON_TXFORMAT_WIDTH… in r100_packet0_check()
1859 …track->textures[i].height = 1 << ((idx_value & RADEON_TXFORMAT_HEIGHT_MASK) >> RADEON_TXFORMAT_HEI… in r100_packet0_check()
1862 track->textures[i].tex_coord_type = 2; in r100_packet0_check()
1867 track->textures[i].cpp = 1; in r100_packet0_check()
1868 track->textures[i].compress_format = R100_TRACK_COMP_NONE; in r100_packet0_check()
1879 track->textures[i].cpp = 2; in r100_packet0_check()
1880 track->textures[i].compress_format = R100_TRACK_COMP_NONE; in r100_packet0_check()
1886 track->textures[i].cpp = 4; in r100_packet0_check()
1887 track->textures[i].compress_format = R100_TRACK_COMP_NONE; in r100_packet0_check()
1890 track->textures[i].cpp = 1; in r100_packet0_check()
1891 track->textures[i].compress_format = R100_TRACK_COMP_DXT1; in r100_packet0_check()
1895 track->textures[i].cpp = 1; in r100_packet0_check()
1896 track->textures[i].compress_format = R100_TRACK_COMP_DXT35; in r100_packet0_check()
1899 track->textures[i].cube_info[4].width = 1 << ((idx_value >> 16) & 0xf); in r100_packet0_check()
1900 track->textures[i].cube_info[4].height = 1 << ((idx_value >> 20) & 0xf); in r100_packet0_check()
1909 track->textures[i].cube_info[face].width = 1 << ((tmp >> (face * 8)) & 0xf); in r100_packet0_check()
1910 track->textures[i].cube_info[face].height = 1 << ((tmp >> ((face * 8) + 4)) & 0xf); in r100_packet0_check()
2159 unsigned compress_format = track->textures[idx].compress_format; in r100_cs_track_cube()
2162 cube_robj = track->textures[idx].cube_info[face].robj; in r100_cs_track_cube()
2163 w = track->textures[idx].cube_info[face].width; in r100_cs_track_cube()
2164 h = track->textures[idx].cube_info[face].height; in r100_cs_track_cube()
2170 size *= track->textures[idx].cpp; in r100_cs_track_cube()
2172 size += track->textures[idx].cube_info[face].offset; in r100_cs_track_cube()
2177 r100_cs_track_texture_print(&track->textures[idx]); in r100_cs_track_cube()
2193 if (!track->textures[u].enabled) in r100_cs_track_texture_check()
2195 if (track->textures[u].lookup_disable) in r100_cs_track_texture_check()
2197 robj = track->textures[u].robj; in r100_cs_track_texture_check()
2203 for (i = 0; i <= track->textures[u].num_levels; i++) { in r100_cs_track_texture_check()
2204 if (track->textures[u].use_pitch) { in r100_cs_track_texture_check()
2206 w = (track->textures[u].pitch / track->textures[u].cpp) / (1 << i); in r100_cs_track_texture_check()
2208 w = track->textures[u].pitch / (1 << i); in r100_cs_track_texture_check()
2210 w = track->textures[u].width; in r100_cs_track_texture_check()
2212 w |= track->textures[u].width_11; in r100_cs_track_texture_check()
2214 if (track->textures[u].roundup_w) in r100_cs_track_texture_check()
2217 h = track->textures[u].height; in r100_cs_track_texture_check()
2219 h |= track->textures[u].height_11; in r100_cs_track_texture_check()
2221 if (track->textures[u].roundup_h) in r100_cs_track_texture_check()
2223 if (track->textures[u].tex_coord_type == 1) { in r100_cs_track_texture_check()
2224 d = (1 << track->textures[u].txdepth) / (1 << i); in r100_cs_track_texture_check()
2230 if (track->textures[u].compress_format) { in r100_cs_track_texture_check()
2232 size += r100_track_compress_size(track->textures[u].compress_format, w, h) * d; in r100_cs_track_texture_check()
2237 size *= track->textures[u].cpp; in r100_cs_track_texture_check()
2239 switch (track->textures[u].tex_coord_type) { in r100_cs_track_texture_check()
2253 "%u\n", track->textures[u].tex_coord_type, u); in r100_cs_track_texture_check()
2259 r100_cs_track_texture_print(&track->textures[u]); in r100_cs_track_texture_check()
2449 track->textures[i].compress_format = R100_TRACK_COMP_NONE; in r100_cs_track_clear()
2450 track->textures[i].pitch = 16536; in r100_cs_track_clear()
2451 track->textures[i].width = 16536; in r100_cs_track_clear()
2452 track->textures[i].height = 16536; in r100_cs_track_clear()
2453 track->textures[i].width_11 = 1 << 11; in r100_cs_track_clear()
2454 track->textures[i].height_11 = 1 << 11; in r100_cs_track_clear()
2455 track->textures[i].num_levels = 12; in r100_cs_track_clear()
2457 track->textures[i].tex_coord_type = 0; in r100_cs_track_clear()
2458 track->textures[i].txdepth = 0; in r100_cs_track_clear()
2460 track->textures[i].txdepth = 16; in r100_cs_track_clear()
2461 track->textures[i].tex_coord_type = 1; in r100_cs_track_clear()
2463 track->textures[i].cpp = 64; in r100_cs_track_clear()
2464 track->textures[i].robj = NULL; in r100_cs_track_clear()
2466 track->textures[i].enabled = false; in r100_cs_track_clear()
2467 track->textures[i].lookup_disable = false; in r100_cs_track_clear()
2468 track->textures[i].roundup_w = true; in r100_cs_track_clear()
2469 track->textures[i].roundup_h = true; in r100_cs_track_clear()
2472 track->textures[i].cube_info[face].robj = NULL; in r100_cs_track_clear()
2473 track->textures[i].cube_info[face].width = 16536; in r100_cs_track_clear()
2474 track->textures[i].cube_info[face].height = 16536; in r100_cs_track_clear()
2475 track->textures[i].cube_info[face].offset = 0; in r100_cs_track_clear()