freedreno: Make fd_pps_driver.h usable without including other FD sources

fd_pps_driver.h is included in src/tool/pps/pps_driver.cc which isn't
built with freedreno sources but linked with freedreno pps.

Fixes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11183

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29325>
This commit is contained in:
Danylo Piliaiev 2024-05-22 13:59:56 +02:00 committed by Marge Bot
parent f458b0fc4b
commit 745b0fc79f
2 changed files with 16 additions and 5 deletions

View file

@ -10,6 +10,12 @@
#include <iostream>
#include <perfetto.h>
#include "common/freedreno_dev_info.h"
#include "drm/freedreno_drmif.h"
#include "drm/freedreno_ringbuffer.h"
#include "perfcntrs/freedreno_dt.h"
#include "perfcntrs/freedreno_perfcntr.h"
#include "pps/pps.h"
#include "pps/pps_algorithm.h"

View file

@ -8,11 +8,16 @@
#include "pps/pps_driver.h"
#include "common/freedreno_dev_info.h"
#include "drm/freedreno_drmif.h"
#include "drm/freedreno_ringbuffer.h"
#include "perfcntrs/freedreno_dt.h"
#include "perfcntrs/freedreno_perfcntr.h"
extern "C" {
struct fd_dev_id;
struct fd_dev_info;
struct fd_device;
struct fd_pipe;
struct fd_ringbuffer;
struct fd_perfcntr_group;
struct fd_perfcntr_countable;
struct fd_perfcntr_counter;
};
namespace pps
{