mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
freedreno: Rename *_dev_info
Everywhere else symbols/types/etc are shortend to "fd_*", so lets do the same here for consistency. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11790>
This commit is contained in:
parent
1a6dd7f9b1
commit
0eda0188aa
9 changed files with 10 additions and 10 deletions
|
|
@ -32,7 +32,7 @@ max_bitfield_val(unsigned high, unsigned low, unsigned shift)
|
|||
}
|
||||
|
||||
void
|
||||
freedreno_dev_info_init(struct freedreno_dev_info *info, uint32_t gpu_id)
|
||||
fd_dev_info_init(struct fd_dev_info *info, uint32_t gpu_id)
|
||||
{
|
||||
if (gpu_id >= 600) {
|
||||
info->gmem_align_w = 16;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ extern "C" {
|
|||
* Freedreno hardware description and quirks
|
||||
*/
|
||||
|
||||
struct freedreno_dev_info {
|
||||
struct fd_dev_info {
|
||||
/* alignment for size of tiles */
|
||||
uint32_t tile_align_w, tile_align_h;
|
||||
/* gmem load/store granularity */
|
||||
|
|
@ -83,7 +83,7 @@ struct freedreno_dev_info {
|
|||
*/
|
||||
#define A6XX_CCU_GMEM_COLOR_SIZE (16 * 1024)
|
||||
|
||||
void freedreno_dev_info_init(struct freedreno_dev_info *info, uint32_t gpu_id);
|
||||
void fd_dev_info_init(struct fd_dev_info *info, uint32_t gpu_id);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* end of extern "C" */
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ FreedrenoDriver::init_perfcnt()
|
|||
for (auto countable : countables)
|
||||
countable.resolve();
|
||||
|
||||
freedreno_dev_info_init(&info, gpu_id);
|
||||
fd_dev_info_init(&info, gpu_id);
|
||||
|
||||
io = fd_dt_find_io();
|
||||
if (!io) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ private:
|
|||
bool has_suspend_count;
|
||||
uint32_t suspend_count;
|
||||
|
||||
struct freedreno_dev_info info;
|
||||
struct fd_dev_info info;
|
||||
|
||||
/**
|
||||
* The memory mapped i/o space for counter readback:
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ tu_physical_device_init(struct tu_physical_device *device,
|
|||
case 630:
|
||||
case 640:
|
||||
case 650:
|
||||
freedreno_dev_info_init(&device->info, device->gpu_id);
|
||||
fd_dev_info_init(&device->info, device->gpu_id);
|
||||
device->ccu_offset_bypass = device->info.num_ccu * A6XX_CCU_DEPTH_SIZE;
|
||||
device->ccu_offset_gmem = (device->gmem_size -
|
||||
device->info.num_ccu * A6XX_CCU_GMEM_COLOR_SIZE);
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ struct tu_physical_device
|
|||
uint32_t ccu_offset_gmem;
|
||||
uint32_t ccu_offset_bypass;
|
||||
|
||||
struct freedreno_dev_info info;
|
||||
struct fd_dev_info info;
|
||||
|
||||
int msm_major_version;
|
||||
int msm_minor_version;
|
||||
|
|
|
|||
|
|
@ -1065,7 +1065,7 @@ fd_screen_create(struct fd_device *dev, struct renderonly *ro)
|
|||
goto fail;
|
||||
}
|
||||
|
||||
freedreno_dev_info_init(&screen->info, screen->gpu_id);
|
||||
fd_dev_info_init(&screen->info, screen->gpu_id);
|
||||
|
||||
if (is_a6xx(screen)) {
|
||||
screen->ccu_offset_bypass = screen->info.num_ccu * A6XX_CCU_DEPTH_SIZE;
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ struct fd_screen {
|
|||
bool has_robustness;
|
||||
bool has_syncobj;
|
||||
|
||||
struct freedreno_dev_info info;
|
||||
struct fd_dev_info info;
|
||||
uint32_t ccu_offset_gmem;
|
||||
uint32_t ccu_offset_bypass;
|
||||
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ main(int argc, char **argv)
|
|||
.gmemsize_bytes = gpu_info->gmemsize_bytes,
|
||||
};
|
||||
|
||||
freedreno_dev_info_init(&screen.info, gpu_info->gpu_id);
|
||||
fd_dev_info_init(&screen.info, gpu_info->gpu_id);
|
||||
|
||||
/* And finally run thru all the GMEM keys: */
|
||||
for (int i = 0; i < ARRAY_SIZE(keys); i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue