[GPU] Remove TextureInfo::has_packed_mips
This commit is contained in:
parent
30f8fe7bb0
commit
77d1d7342e
|
@ -59,7 +59,6 @@ bool TextureInfo::Prepare(const xe_gpu_texture_fetch_t& fetch,
|
||||||
info.texture_format = static_cast<TextureFormat>(fetch.format);
|
info.texture_format = static_cast<TextureFormat>(fetch.format);
|
||||||
info.endianness = static_cast<Endian>(fetch.endianness);
|
info.endianness = static_cast<Endian>(fetch.endianness);
|
||||||
info.is_tiled = fetch.tiled;
|
info.is_tiled = fetch.tiled;
|
||||||
info.has_packed_mips = fetch.packed_mips;
|
|
||||||
info.mip_address = fetch.mip_address << 12;
|
info.mip_address = fetch.mip_address << 12;
|
||||||
info.mip_levels = fetch.packed_mips ? fetch.mip_max_level + 1 : 1;
|
info.mip_levels = fetch.packed_mips ? fetch.mip_max_level + 1 : 1;
|
||||||
info.input_length = 0; // Populated below.
|
info.input_length = 0; // Populated below.
|
||||||
|
@ -109,7 +108,6 @@ bool TextureInfo::PrepareResolve(uint32_t physical_address,
|
||||||
info.texture_format = texture_format;
|
info.texture_format = texture_format;
|
||||||
info.endianness = endian;
|
info.endianness = endian;
|
||||||
info.is_tiled = true;
|
info.is_tiled = true;
|
||||||
info.has_packed_mips = false;
|
|
||||||
info.mip_address = 0;
|
info.mip_address = 0;
|
||||||
info.mip_levels = 1;
|
info.mip_levels = 1;
|
||||||
info.input_length = 0;
|
info.input_length = 0;
|
||||||
|
@ -508,9 +506,6 @@ bool TextureInfo::GetPackedTileOffset(uint32_t width, uint32_t height,
|
||||||
//
|
//
|
||||||
// The 2x2 and 1x1 squares are packed in their specific positions because
|
// The 2x2 and 1x1 squares are packed in their specific positions because
|
||||||
// each square is the size of at least one block (which is 4x4 pixels max)
|
// each square is the size of at least one block (which is 4x4 pixels max)
|
||||||
// 4x4: x = width & ~0x3
|
|
||||||
// 2x2: y = (width & 0x3) << 2
|
|
||||||
// 1x1: y = (width & 0x3) << 2
|
|
||||||
//
|
//
|
||||||
// if (tile_aligned(w) > tile_aligned(h)) {
|
// if (tile_aligned(w) > tile_aligned(h)) {
|
||||||
// // wider than tall, so packed horizontally
|
// // wider than tall, so packed horizontally
|
||||||
|
|
|
@ -255,7 +255,6 @@ struct TextureInfo {
|
||||||
uint32_t depth;
|
uint32_t depth;
|
||||||
Endian endianness;
|
Endian endianness;
|
||||||
bool is_tiled;
|
bool is_tiled;
|
||||||
bool has_packed_mips;
|
|
||||||
uint32_t mip_address;
|
uint32_t mip_address;
|
||||||
uint32_t mip_levels;
|
uint32_t mip_levels;
|
||||||
uint32_t input_length;
|
uint32_t input_length;
|
||||||
|
|
|
@ -764,7 +764,6 @@ TextureCache::Texture* TextureCache::Lookup(const TextureInfo& texture_info) {
|
||||||
COMPARE_FIELD(depth);
|
COMPARE_FIELD(depth);
|
||||||
COMPARE_FIELD(endianness);
|
COMPARE_FIELD(endianness);
|
||||||
COMPARE_FIELD(is_tiled);
|
COMPARE_FIELD(is_tiled);
|
||||||
COMPARE_FIELD(has_packed_mips);
|
|
||||||
COMPARE_FIELD(input_length);
|
COMPARE_FIELD(input_length);
|
||||||
#undef COMPARE_FIELD
|
#undef COMPARE_FIELD
|
||||||
if (!TextureFormatIsSimilar(texture_info.texture_format,
|
if (!TextureFormatIsSimilar(texture_info.texture_format,
|
||||||
|
|
Loading…
Reference in New Issue