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
d53fd401
Commit
d53fd401
authored
May 09, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
May 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Read the sm4 sample count in DCL instructions.
Based on vkd3d commit ee52ad810635cf504a49d5267a5942fffb16836e.
parent
2cfd75f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
shader_sm4.c
dlls/wined3d/shader_sm4.c
+10
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/shader_sm4.c
View file @
d53fd401
...
...
@@ -49,6 +49,9 @@ WINE_DECLARE_DEBUG_CHANNEL(d3d_bytecode);
#define WINED3D_SM4_RESOURCE_TYPE_SHIFT 11
#define WINED3D_SM4_RESOURCE_TYPE_MASK (0xfu << WINED3D_SM4_RESOURCE_TYPE_SHIFT)
#define WINED3D_SM4_RESOURCE_SAMPLE_COUNT_SHIFT 16
#define WINED3D_SM4_RESOURCE_SAMPLE_COUNT_MASK (0xfu << WINED3D_SM4_RESOURCE_SAMPLE_COUNT_SHIFT)
#define WINED3D_SM4_PRIMITIVE_TYPE_SHIFT 11
#define WINED3D_SM4_PRIMITIVE_TYPE_MASK (0x3fu << WINED3D_SM4_PRIMITIVE_TYPE_SHIFT)
...
...
@@ -592,6 +595,13 @@ static void shader_sm4_read_dcl_resource(struct wined3d_shader_instruction *ins,
{
ins
->
declaration
.
semantic
.
resource_type
=
resource_type_table
[
resource_type
];
}
if
(
ins
->
declaration
.
semantic
.
resource_type
==
WINED3D_SHADER_RESOURCE_TEXTURE_2DMS
||
ins
->
declaration
.
semantic
.
resource_type
==
WINED3D_SHADER_RESOURCE_TEXTURE_2DMSARRAY
)
{
ins
->
declaration
.
semantic
.
sample_count
=
(
opcode_token
&
WINED3D_SM4_RESOURCE_SAMPLE_COUNT_MASK
)
>>
WINED3D_SM4_RESOURCE_SAMPLE_COUNT_SHIFT
;
}
reg_data_type
=
opcode
==
WINED3D_SM4_OP_DCL_RESOURCE
?
WINED3D_DATA_RESOURCE
:
WINED3D_DATA_UAV
;
shader_sm4_read_dst_param
(
priv
,
&
tokens
,
&
tokens
[
token_count
],
reg_data_type
,
&
ins
->
declaration
.
semantic
.
reg
);
...
...
dlls/wined3d/wined3d_private.h
View file @
d53fd401
...
...
@@ -1311,6 +1311,7 @@ struct wined3d_shader_semantic
enum
wined3d_decl_usage
usage
;
UINT
usage_idx
;
enum
wined3d_shader_resource_type
resource_type
;
unsigned
int
sample_count
;
enum
wined3d_data_type
resource_data_type
;
struct
wined3d_shader_dst_param
reg
;
};
...
...
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