mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d-shader: Mask immediate constant operands for bitfield instructions.
This commit is contained in:
parent
5005e2c10d
commit
2c139bdf81
@ -1977,8 +1977,7 @@ static void vkd3d_dxbc_compiler_emit_bitfield_instruction(struct vkd3d_dxbc_comp
|
||||
|
||||
for (j = src_count - 2; j < src_count; ++j)
|
||||
{
|
||||
if (instruction->src[src_count - j - 1].reg.type != VKD3DSPR_IMMCONST)
|
||||
src_ids[j] = vkd3d_spirv_build_op_and(builder, type_id, src_ids[j], mask_id);
|
||||
src_ids[j] = vkd3d_spirv_build_op_and(builder, type_id, src_ids[j], mask_id);
|
||||
}
|
||||
|
||||
result_id = vkd3d_spirv_build_op_trv(builder, &builder->function_stream,
|
||||
|
Loading…
x
Reference in New Issue
Block a user