libs/vkd3d-shader: Mask immediate constant operands for bitfield instructions.

This commit is contained in:
Józef Kucia
2017-06-28 12:28:09 +02:00
parent 5005e2c10d
commit 2c139bdf81

View File

@@ -1977,7 +1977,6 @@ static void vkd3d_dxbc_compiler_emit_bitfield_instruction(struct vkd3d_dxbc_comp
for (j = src_count - 2; j < src_count; ++j) 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);
} }