删除重复的方法panfrost_query_afbc

Signed-off-by: lixiteng <lixiteng1@huawei.com>
This commit is contained in:
lixiteng 2024-09-13 17:45:38 +08:00
parent 64fca2bb52
commit 259e8a74e9

View File

@ -277,19 +277,6 @@ panfrost_query_optimal_tib_size(const struct panfrost_device *dev)
return dev->model->tilebuffer_size / 2;
}
/* Check for AFBC hardware support. AFBC is introduced in v5. Implementations
* may omit it, signaled as a nonzero value in the AFBC_FEATURES property. */
static bool
panfrost_query_afbc(int fd, unsigned arch)
{
unsigned reg = panfrost_query_raw(fd,
DRM_PANFROST_PARAM_AFBC_FEATURES,
false, 0);
return (arch >= 5) && (reg == 0);
}
void
panfrost_open_device(void *memctx, int fd, struct panfrost_device *dev)
{