summaryrefslogtreecommitdiffstats
path: root/src/util/strtod.c
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2015-05-21 14:27:55 -0700
committerNanley Chery <[email protected]>2015-08-26 14:36:43 -0700
commita6877341358e1534e74dd9e5fc72934a20b78228 (patch)
tree97b61a8c18f4bba93622b187f675d1ab9aac2f03 /src/util/strtod.c
parent1a9ceed4ba764cf73a643f8f2135b5b84cfe4581 (diff)
i965: change the meaning of cpp for compressed textures
An ASTC block takes up 16 bytes for all block width and height configurations. This size is not integrally divisible by all ASTC block widths. Therefore cpp is changed to mean bytes per block if the texture is compressed. Because the original definition was bytes per block divided by block width, all references to the mipmap width must be divided the block width. This keeps the address calculation formulas consistent. For example, the units for miptree_level x_offset and miptree total_width has changed from pixels to blocks. v2: reuse preexisting ALIGN_NPOT macro located in an i965 driver file. v3: move ALIGN_NPOT into seperate commit. simplify cpp assignment in copy_image_with_blitter(). update miptree width and offset variables in: intel_miptree_copy_slice(), intel_miptree_map_gtt(), and brw_miptree_layout_texture_3d(). Reviewed-by: Anuj Phogat <[email protected]> Signed-off-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/util/strtod.c')
0 files changed, 0 insertions, 0 deletions