Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
vkd3d
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wine
vkd3d
Commits
079f8e4d
Commit
079f8e4d
authored
1 year ago
by
Conor McCarthy
Committed by
Alexandre Julliard
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
vkd3d-shader/dxil: Implement DX intrinsic OutputControlPointID.
parent
3976738b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!768
vkd3d-shader/dxil: Tessellation part 2.
Pipeline
#25516
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/vkd3d-shader/dxil.c
+8
-0
8 additions, 0 deletions
libs/vkd3d-shader/dxil.c
with
8 additions
and
0 deletions
libs/vkd3d-shader/dxil.c
+
8
−
0
View file @
079f8e4d
...
...
@@ -423,6 +423,7 @@ enum dx_intrinsic_opcode
DX_LOAD_PATCH_CONSTANT
=
104
,
DX_DOMAIN_LOCATION
=
105
,
DX_STORE_PATCH_CONSTANT
=
106
,
DX_OUTPUT_CONTROL_POINT_ID
=
107
,
DX_PRIMITIVE_ID
=
108
,
DX_LEGACY_F32TOF16
=
130
,
DX_LEGACY_F16TOF32
=
131
,
...
...
@@ -5149,6 +5150,12 @@ static void sm6_parser_emit_dx_make_double(struct sm6_parser *sm6, enum dx_intri
instruction_dst_param_init_ssa_scalar
(
ins
,
sm6
);
}
static
void
sm6_parser_emit_dx_output_control_point_id
(
struct
sm6_parser
*
sm6
,
enum
dx_intrinsic_opcode
op
,
const
struct
sm6_value
**
operands
,
struct
function_emission_state
*
state
)
{
sm6_parser_emit_dx_input_register_mov
(
sm6
,
state
->
ins
,
VKD3DSPR_OUTPOINTID
,
VKD3D_DATA_UINT
);
}
static
void
sm6_parser_emit_dx_primitive_id
(
struct
sm6_parser
*
sm6
,
enum
dx_intrinsic_opcode
op
,
const
struct
sm6_value
**
operands
,
struct
function_emission_state
*
state
)
{
...
...
@@ -5880,6 +5887,7 @@ static const struct sm6_dx_opcode_info sm6_dx_op_table[] =
[
DX_LOAD_PATCH_CONSTANT
]
=
{
"o"
,
"ii8"
,
sm6_parser_emit_dx_load_input
},
[
DX_LOG
]
=
{
"g"
,
"R"
,
sm6_parser_emit_dx_unary
},
[
DX_MAKE_DOUBLE
]
=
{
"d"
,
"ii"
,
sm6_parser_emit_dx_make_double
},
[
DX_OUTPUT_CONTROL_POINT_ID
]
=
{
"i"
,
""
,
sm6_parser_emit_dx_output_control_point_id
},
[
DX_PRIMITIVE_ID
]
=
{
"i"
,
""
,
sm6_parser_emit_dx_primitive_id
},
[
DX_RAW_BUFFER_LOAD
]
=
{
"o"
,
"Hii8i"
,
sm6_parser_emit_dx_raw_buffer_load
},
[
DX_RAW_BUFFER_STORE
]
=
{
"v"
,
"Hiioooocc"
,
sm6_parser_emit_dx_raw_buffer_store
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment