Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c94be046
Commit
c94be046
authored
May 27, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Redirect vkd3d log output to the Unix stderr.
parent
b0a24c3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
configure
configure
+5
-5
configure.ac
configure.ac
+2
-2
wined3d_main.c
dlls/wined3d/wined3d_main.c
+14
-0
No files found.
configure
View file @
c94be046
...
...
@@ -13004,8 +13004,8 @@ then :
fi
if
test
"
$ac_cv_mingw_header_vkd3d_h
"
=
"yes"
-a
"
$ac_cv_mingw_header_vkd3d_shader_h
"
=
"yes"
then
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for vkd3d_se
rialize_versioned_root_signature
in MinGW -lvkd3d"
>
&5
printf
%s
"checking for vkd3d_se
rialize_versioned_root_signature
in MinGW -lvkd3d... "
>
&6
;
}
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for vkd3d_se
t_log_callback
in MinGW -lvkd3d"
>
&5
printf
%s
"checking for vkd3d_se
t_log_callback
in MinGW -lvkd3d... "
>
&6
;
}
if
test
${
ac_cv_mingw_lib_vkd3d
+y
}
then
:
printf
%s
"(cached) "
>
&6
...
...
@@ -13022,11 +13022,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
char vkd3d_se
rialize_versioned_root_signature
();
char vkd3d_se
t_log_callback
();
int
main (void)
{
return vkd3d_se
rialize_versioned_root_signature
();
return vkd3d_se
t_log_callback
();
;
return 0;
}
...
...
@@ -13111,7 +13111,7 @@ CPPFLAGS=$ac_save_CPPFLAGS
if
test
"x
$VKD3D_PE_LIBS
"
=
"x"
then
as_fn_append wine_notices
"|libvkd3d
${
notice_platform
}
MinGW development files not found; using bundled version."
as_fn_append wine_notices
"|libvkd3d
${
notice_platform
}
MinGW development files not found
(or too old)
; using bundled version."
fi
if
${
ZLIB_PE_CFLAGS
:+false
}
:
...
...
configure.ac
View file @
c94be046
...
...
@@ -1107,7 +1107,7 @@ then
WINE_CHECK_MINGW_HEADER(vkd3d_shader.h)
if test "$ac_cv_mingw_header_vkd3d_h" = "yes" -a "$ac_cv_mingw_header_vkd3d_shader_h" = "yes"
then
WINE_CHECK_MINGW_LIB(vkd3d,vkd3d_se
rialize_versioned_root_signature
,[:],[:],[$VKD3D_PE_LIBS])
WINE_CHECK_MINGW_LIB(vkd3d,vkd3d_se
t_log_callback
,[:],[:],[$VKD3D_PE_LIBS])
WINE_CHECK_MINGW_LIB(vkd3d-shader,vkd3d_shader_compile,[:],[:],[$VKD3D_PE_LIBS])
if test "$ac_cv_mingw_lib_vkd3d" = "no" -o "$ac_cv_mingw_lib_vkd3d_shader" = "no"
then
...
...
@@ -1120,7 +1120,7 @@ then
fi])
if test "x$VKD3D_PE_LIBS" = "x"
then
WINE_NOTICE([libvkd3d ${notice_platform}MinGW development files not found; using bundled version.])
WINE_NOTICE([libvkd3d ${notice_platform}MinGW development files not found
(or too old)
; using bundled version.])
fi
WINE_MINGW_PACKAGE_FLAGS(ZLIB,[zlib],[-lz],
...
...
dlls/wined3d/wined3d_main.c
View file @
c94be046
...
...
@@ -22,8 +22,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define VKD3D_NO_VULKAN_H
#define VKD3D_NO_WIN32_TYPES
#include "initguid.h"
#include "wined3d_private.h"
#include "d3d12.h"
#include <vkd3d.h>
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
...
...
@@ -247,6 +251,14 @@ BOOL wined3d_get_app_name(char *app_name, unsigned int app_name_size)
return
TRUE
;
}
static
void
vkd3d_log_callback
(
const
char
*
fmt
,
va_list
args
)
{
char
buffer
[
1024
];
vsnprintf
(
buffer
,
sizeof
(
buffer
),
fmt
,
args
);
__wine_dbg_output
(
buffer
);
}
static
BOOL
wined3d_dll_init
(
HINSTANCE
hInstDLL
)
{
DWORD
wined3d_context_tls_idx
;
...
...
@@ -459,6 +471,8 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL)
if
(
appkey
)
RegCloseKey
(
appkey
);
if
(
hkey
)
RegCloseKey
(
hkey
);
vkd3d_set_log_callback
(
vkd3d_log_callback
);
return
TRUE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment