if (util_format_is_compressed(format) ||
util_format_is_depth_or_stencil(format) ||
- util_format_get_blocksize(format) > 8)
+ util_format_get_blocksizebits(format) > 64)
return false;
if (info->chip_class < GFX9)
common_dcc |
AMD_FMT_MOD_SET(PIPE, pipes))
- if (util_format_get_blocksize(format) == 4) {
+ if (util_format_get_blocksizebits(format) == 32) {
if (info->max_render_backends == 1) {
ADD_MOD(AMD_FMT_MOD |
AMD_FMT_MOD_SET(TILE, AMD_FMT_MOD_TILE_GFX9_64K_S_X) |
AMD_FMT_MOD_SET(TILE, AMD_FMT_MOD_TILE_GFX9_64K_S_X) |
AMD_FMT_MOD_SET(PIPE_XOR_BITS, pipe_xor_bits))
- if (util_format_get_blocksize(format) != 4) {
+ if (util_format_get_blocksizebits(format) != 32) {
ADD_MOD(AMD_FMT_MOD |
AMD_FMT_MOD_SET(TILE, AMD_FMT_MOD_TILE_GFX9_64K_D) |
AMD_FMT_MOD_SET(TILE_VERSION, AMD_FMT_MOD_TILE_VER_GFX9));