Skip to content

Commit

Permalink
attempt mesa patch
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Nov 23, 2023
1 parent 5dee007 commit 5b5392b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/gallium/auxiliary/target-helpers/inline_sw_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
#include "d3d12/d3d12_public.h"
#endif

#ifdef GALLIUM_FREEDRENO
#include "freedreno/freedreno_public.h"
#endif

#if defined(GALLIUM_ASAHI) && __APPLE__
#include "asahi/agx_public.h"
#endif
Expand Down Expand Up @@ -75,8 +79,6 @@ sw_screen_create_named(struct sw_winsys *winsys, const char *driver)
screen = agx_screen_create(0, NULL, winsys);
#endif

struct pipe_screen *fd_screen_create(int fd, const struct pipe_screen_config *config, struct renderonly *ro);

#if defined(GALLIUM_FREEDRENO)
if(screen == NULL && strcmp(driver, "freedreno") == 0) {
int kbase_device_fd = open("/dev/kgsl-3d0", O_RDWR | O_CLOEXEC | O_NONBLOCK);
Expand Down
2 changes: 1 addition & 1 deletion src/gallium/drivers/freedreno/freedreno_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ fd_screen_create(int fd,
struct fd_screen *screen = CALLOC_STRUCT(fd_screen);
struct pipe_screen *pscreen;
uint64_t val;

panfrost_create
fd_mesa_debug = debug_get_option_fd_mesa_debug();

if (FD_DBG(NOBIN))
Expand Down

0 comments on commit 5b5392b

Please sign in to comment.