diff --git a/src/gallium/auxiliary/target-helpers/inline_sw_helper.h b/src/gallium/auxiliary/target-helpers/inline_sw_helper.h index ea01c0c0dfb..2bb0f1cbea5 100644 --- a/src/gallium/auxiliary/target-helpers/inline_sw_helper.h +++ b/src/gallium/auxiliary/target-helpers/inline_sw_helper.h @@ -37,6 +37,10 @@ #include "asahi/agx_public.h" #endif +#if defined(GALLIUM_PANFROST) +#include "panfrost/pan_public.h" +#endif + static inline struct pipe_screen * sw_screen_create_named(struct sw_winsys *winsys, const char *driver) { @@ -79,7 +83,7 @@ sw_screen_create_named(struct sw_winsys *winsys, const char *driver) } #if defined(GALLIUM_FREEDRENO) - if (screen == NULL && strcmp(driver, "freedreno") == 0) { + if(screen == NULL && strcmp(driver, "freedreno") == 0) { int kbase_device_fd = open("/dev/kgsl-3d0", O_RDWR | O_CLOEXEC | O_NONBLOCK); if(kbase_device_fd == -1) { printf("FD_OSMESA: Failed to open kbase device: %s", strerror(errno));