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
00187d64
Commit
00187d64
authored
Oct 12, 2022
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle VKD3D_SHADER_RESOURCE_DATA_MIXED in wined3d_data_type_from_vkd3d().
parent
d75deeec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
shader_spirv.c
dlls/wined3d/shader_spirv.c
+11
-4
No files found.
dlls/wined3d/shader_spirv.c
View file @
00187d64
...
...
@@ -25,6 +25,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader);
static
const
struct
wined3d_shader_backend_ops
spirv_shader_backend_vk
;
static
const
struct
vkd3d_shader_compile_option
spirv_compile_options
[]
=
{
{
VKD3D_SHADER_COMPILE_OPTION_API_VERSION
,
VKD3D_SHADER_API_VERSION_1_3
},
};
struct
shader_spirv_resource_bindings
{
struct
vkd3d_shader_resource_binding
*
bindings
;
...
...
@@ -266,8 +271,8 @@ static VkShaderModule shader_spirv_compile_shader(struct wined3d_context_vk *con
info
.
source
.
size
=
shader_desc
->
byte_code_size
;
info
.
source_type
=
VKD3D_SHADER_SOURCE_DXBC_TPF
;
info
.
target_type
=
VKD3D_SHADER_TARGET_SPIRV_BINARY
;
info
.
options
=
NULL
;
info
.
option_count
=
0
;
info
.
options
=
spirv_compile_options
;
info
.
option_count
=
ARRAY_SIZE
(
spirv_compile_options
)
;
info
.
log_level
=
VKD3D_SHADER_LOG_WARNING
;
info
.
source_name
=
NULL
;
...
...
@@ -596,6 +601,8 @@ static enum wined3d_data_type wined3d_data_type_from_vkd3d(enum vkd3d_shader_res
return
WINED3D_DATA_UINT
;
case
VKD3D_SHADER_RESOURCE_DATA_FLOAT
:
return
WINED3D_DATA_FLOAT
;
case
VKD3D_SHADER_RESOURCE_DATA_MIXED
:
return
WINED3D_DATA_UINT
;
default:
FIXME
(
"Unhandled resource data type %#x.
\n
"
,
t
);
return
WINED3D_DATA_FLOAT
;
...
...
@@ -703,8 +710,8 @@ static void shader_spirv_scan_shader(struct wined3d_shader *shader,
info
.
source
.
size
=
shader
->
byte_code_size
;
info
.
source_type
=
VKD3D_SHADER_SOURCE_DXBC_TPF
;
info
.
target_type
=
VKD3D_SHADER_TARGET_SPIRV_BINARY
;
info
.
options
=
NULL
;
info
.
option_count
=
0
;
info
.
options
=
spirv_compile_options
;
info
.
option_count
=
ARRAY_SIZE
(
spirv_compile_options
)
;
info
.
log_level
=
VKD3D_SHADER_LOG_WARNING
;
info
.
source_name
=
NULL
;
...
...
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