Skip to content

Commit

Permalink
Update relay funcs for cuda 12.5
Browse files Browse the repository at this point in the history
Also add clarification in case of newer-than-driver-struct
  • Loading branch information
SveSop committed Jun 12, 2024
1 parent e8ab822 commit b36969b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dlls/nvcuda/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ struct Relay8_table
void* (WINAPI *func82)(void *param0, void *param1);
void* (WINAPI *func83)(void *param0, void *param1);
void* (WINAPI *func84)(void *param0, void *param1);
void* (WINAPI *func85)(void *param0, void *param1);
void* (WINAPI *func86)(void *param0, void *param1);
};
static const struct
{
Expand Down Expand Up @@ -431,6 +433,8 @@ static const struct
void* (*func82)(void *param0, void *param1);
void* (*func83)(void *param0, void *param1);
void* (*func84)(void *param0, void *param1);
void* (*func85)(void *param0, void *param1);
void* (*func86)(void *param0, void *param1);
} *Relay8_orig = NULL;

/*
Expand Down Expand Up @@ -530,6 +534,7 @@ struct Relay9_table
void* (WINAPI *func88)(void *param0, void *param1);
void* (WINAPI *func89)(void *param0, void *param1);
void* (WINAPI *func90)(void *param0, void *param1);
void* (WINAPI *func91)(void *param0, void *param1);
};
static const struct
{
Expand Down Expand Up @@ -625,6 +630,7 @@ static const struct
void* (*func88)(void *param0, void *param1);
void* (*func89)(void *param0, void *param1);
void* (*func90)(void *param0, void *param1);
void* (*func91)(void *param0, void *param1);
} *Relay9_orig = NULL;

/*
Expand Down Expand Up @@ -1487,6 +1493,18 @@ static void* WINAPI Relay8_func84(void *param0, void *param1)
return Relay8_orig->func84(param0, param1);
}

static void* WINAPI Relay8_func85(void *param0, void *param1)
{
TRACE("(%p, %p)\n", param0, param1);
return Relay8_orig->func85(param0, param1);
}

static void* WINAPI Relay8_func86(void *param0, void *param1)
{
TRACE("(%p, %p)\n", param0, param1);
return Relay8_orig->func86(param0, param1);
}

static struct Relay8_table Relay8_Impl =
{
sizeof(struct Relay8_table),
Expand Down Expand Up @@ -1575,6 +1593,8 @@ static struct Relay8_table Relay8_Impl =
Relay8_func82,
Relay8_func83,
Relay8_func84,
Relay8_func85,
Relay8_func86,
};

static void* WINAPI Relay9_func0(void *param0, void *param1)
Expand Down Expand Up @@ -2123,6 +2143,12 @@ static void* WINAPI Relay9_func90(void *param0, void *param1)
return Relay9_orig->func90(param0, param1);
}

static void* WINAPI Relay9_func91(void *param0, void *param1)
{
TRACE("(%p, %p)\n", param0, param1);
return Relay9_orig->func91(param0, param1);
}

struct Relay9_table Relay9_Impl =
{
sizeof(struct Relay9_table),
Expand Down Expand Up @@ -2217,6 +2243,7 @@ struct Relay9_table Relay9_Impl =
Relay9_func88,
Relay9_func89,
Relay9_func90,
Relay9_func91,
};

static void* WINAPI Relay10_func0(void *param0)
Expand Down Expand Up @@ -2267,6 +2294,7 @@ static BOOL cuda_check_table(const struct cuda_table *orig, struct cuda_table *i
else if (orig->size < impl->size)
{
FIXME("Your CUDA version supports only an older interface for %s, downgrading version.\n", name);
FIXME("WARNING: Driver implementation size: %d, Wine implementation size: %d\n", orig->size, impl->size);
impl->size = orig->size;
}

Expand Down

0 comments on commit b36969b

Please sign in to comment.