GPUOpen-Tools / compressonator

Tool suite for Texture and 3D Model Compression, Optimization and Analysis using CPUs, GPUs and APUs
1.29k stars 193 forks source link

Black pixels along right edge when BC7 compressing mips with a non-divisible-by-4 width #284

Open expenses opened 9 months ago

expenses commented 9 months ago

Version: compressonatorcli V4.4.19 Copyright AMD 2023

Compressing the following image with compressonatorcli -miplevels 20 -fd BC7 arco_frente.png arco_frente_comp2.dds results in a black pixels appearing along the right edge from the 3rd mip onwards. This is presumably caused by widths that aren't divisible by 4 (e.g. 27). Happens on both CPU and HPC.

arco_frente

20231204_15h41m24s_grim

denislevesqueAMD commented 8 months ago

@expenses Thanks for the detailed report! We will be investigating this issue in the near future.

expenses commented 8 months ago

Thought I'd follow up with a little more info: the image arco_frente.png is from the 'San Miguel 2.0' model on https://casual-effects.com/data/. Lot's of images used in that model have similar issues.

denislevesqueAMD commented 8 months ago

@expenses Thanks for the extra info, that link will be very useful for testing.