mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
libs/vkd3d-shader: Fix write mask for vPrim register.
This commit is contained in:
parent
0642318dea
commit
f82a90ff78
@ -2395,10 +2395,11 @@ static uint32_t vkd3d_dxbc_compiler_emit_input(struct vkd3d_dxbc_compiler *compi
|
|||||||
bool use_private_var = false;
|
bool use_private_var = false;
|
||||||
DWORD write_mask;
|
DWORD write_mask;
|
||||||
|
|
||||||
/* vThreadIDInGroupFlattened is declared with no write mask in shader
|
/* vThreadIDInGroupFlattened, vPrim are declared with no write mask in
|
||||||
* bytecode generated by fxc. */
|
* shader bytecode generated by fxc. */
|
||||||
write_mask = dst->write_mask;
|
write_mask = dst->write_mask;
|
||||||
if (!write_mask && reg->type == VKD3DSPR_LOCALTHREADINDEX)
|
if (!write_mask && (reg->type == VKD3DSPR_LOCALTHREADINDEX
|
||||||
|
|| reg->type == VKD3DSPR_PRIMID))
|
||||||
write_mask = VKD3DSP_WRITEMASK_0;
|
write_mask = VKD3DSP_WRITEMASK_0;
|
||||||
|
|
||||||
signature_element = vkd3d_find_signature_element_for_reg(compiler->input_signature,
|
signature_element = vkd3d_find_signature_element_for_reg(compiler->input_signature,
|
||||||
|
Loading…
Reference in New Issue
Block a user