mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Respect the coords writemask in write_sm1_resource_load().
Spotted by Francisco Casas.
This commit is contained in:
parent
8d946f3c20
commit
7fe581203b
@ -2582,7 +2582,7 @@ static void write_sm1_resource_load(struct hlsl_ctx *ctx, struct vkd3d_bytecode_
|
|||||||
|
|
||||||
.srcs[0].type = D3DSPR_TEMP,
|
.srcs[0].type = D3DSPR_TEMP,
|
||||||
.srcs[0].reg = coords->reg.id,
|
.srcs[0].reg = coords->reg.id,
|
||||||
.srcs[0].swizzle = hlsl_swizzle_from_writemask(VKD3DSP_WRITEMASK_ALL),
|
.srcs[0].swizzle = hlsl_swizzle_from_writemask(coords->reg.writemask),
|
||||||
|
|
||||||
.srcs[1].type = D3DSPR_SAMPLER,
|
.srcs[1].type = D3DSPR_SAMPLER,
|
||||||
.srcs[1].reg = reg_id,
|
.srcs[1].reg = reg_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user