Skip to content

Commit

Permalink
does this fix I forgor
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Nov 20, 2023
1 parent 4f7ad24 commit 0b1d5c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gallium/auxiliary/target-helpers/inline_sw_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 0b1d5c2

Please sign in to comment.