!31 删除pan_props.c中存在的重复方法panfrost_query_afbc

Merge pull request !31 from 李西腾/master
This commit is contained in:
openharmony_ci 2024-09-14 02:24:21 +00:00 committed by Gitee
commit 6981812de6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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)
{