Skip to content

Commit

Permalink
lets see if this will work
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Nov 23, 2023
1 parent a61cefe commit 50168c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gallium/auxiliary/target-helpers/inline_sw_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ sw_screen_create_named(struct sw_winsys *winsys, const char *driver)
#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);
if(kbase_device_fd == -1) {
if (kbase_device_fd == -1) {
printf("FD_OSMESA: Failed to open kbase device: %s", strerror(errno));
}else {
} else {
struct pipe_screen_config dummy_cfg;
screen = fd_screen_create(kbase_device_fd, &dummy_cfg, NULL);
screen = fd_screen_create(0, &dummy_cfg, NULL);
}
}
#else
Expand Down

0 comments on commit 50168c6

Please sign in to comment.