DXN textures. Probably.

This commit is contained in:
Ben Vanik
2014-12-31 14:19:25 -08:00
parent 7f4aef18d9
commit 33a3e41eaf
2 changed files with 9 additions and 2 deletions

View File

@@ -86,6 +86,12 @@ bool TextureInfo::Prepare(const xe_gpu_texture_fetch_t& fetch,
info.texel_pitch = 16;
info.is_compressed = true;
break;
case FMT_DXN:
// BC5
info.block_size = 4;
info.texel_pitch = 16;
info.is_compressed = true;
break;
case FMT_DXT1_AS_16_16_16_16:
// TODO(benvanik): conversion?
info.block_size = 4;
@@ -138,7 +144,6 @@ bool TextureInfo::Prepare(const xe_gpu_texture_fetch_t& fetch,
case FMT_16_INTERLACED:
case FMT_16_MPEG_INTERLACED:
case FMT_16_16_MPEG_INTERLACED:
case FMT_DXN:
case FMT_2_10_10_10_AS_16_16_16_16:
case FMT_10_11_11_AS_16_16_16_16:
case FMT_11_11_10_AS_16_16_16_16: