mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/d3dbc: Fix implicit enum conversion warning.
This slipped through and broke CI.
This commit is contained in:
parent
746222b349
commit
67c690aa07
Notes:
Henri Verbeet
2024-07-10 11:48:10 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/939
@ -2670,11 +2670,11 @@ static void d3dbc_write_resource_load(struct d3dbc_compiler *d3dbc, const struct
|
|||||||
case HLSL_RESOURCE_SAMPLE_GRAD:
|
case HLSL_RESOURCE_SAMPLE_GRAD:
|
||||||
sm1_instr.opcode = D3DSIO_TEXLDD;
|
sm1_instr.opcode = D3DSIO_TEXLDD;
|
||||||
|
|
||||||
sm1_instr.srcs[2].type = D3DSPR_TEMP;
|
sm1_instr.srcs[2].type = VKD3DSPR_TEMP;
|
||||||
sm1_instr.srcs[2].reg = ddx->reg.id;
|
sm1_instr.srcs[2].reg = ddx->reg.id;
|
||||||
sm1_instr.srcs[2].swizzle = hlsl_swizzle_from_writemask(ddx->reg.writemask);
|
sm1_instr.srcs[2].swizzle = hlsl_swizzle_from_writemask(ddx->reg.writemask);
|
||||||
|
|
||||||
sm1_instr.srcs[3].type = D3DSPR_TEMP;
|
sm1_instr.srcs[3].type = VKD3DSPR_TEMP;
|
||||||
sm1_instr.srcs[3].reg = ddy->reg.id;
|
sm1_instr.srcs[3].reg = ddy->reg.id;
|
||||||
sm1_instr.srcs[3].swizzle = hlsl_swizzle_from_writemask(ddy->reg.writemask);
|
sm1_instr.srcs[3].swizzle = hlsl_swizzle_from_writemask(ddy->reg.writemask);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user