mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d-shader: Translate dcl_tessellator_partitioning instructions.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
f1de58c58e
commit
2759ea7857
@ -3729,6 +3729,32 @@ static void vkd3d_dxbc_compiler_emit_dcl_tessellator_domain(struct vkd3d_dxbc_co
|
|||||||
vkd3d_dxbc_compiler_emit_execution_mode(compiler, mode, NULL, 0);
|
vkd3d_dxbc_compiler_emit_execution_mode(compiler, mode, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void vkd3d_dxbc_compiler_emit_dcl_tessellator_partitioning(struct vkd3d_dxbc_compiler *compiler,
|
||||||
|
const struct vkd3d_shader_instruction *instruction)
|
||||||
|
{
|
||||||
|
enum vkd3d_tessellator_partitioning partitioning = instruction->declaration.tessellator_partitioning;
|
||||||
|
SpvExecutionMode mode;
|
||||||
|
|
||||||
|
switch (partitioning)
|
||||||
|
{
|
||||||
|
case VKD3D_TESSELLATOR_PARTITIONING_INTEGER:
|
||||||
|
case VKD3D_TESSELLATOR_PARTITIONING_POW2:
|
||||||
|
mode = SpvExecutionModeSpacingEqual;
|
||||||
|
break;
|
||||||
|
case VKD3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD:
|
||||||
|
mode = SpvExecutionModeSpacingFractionalOdd;
|
||||||
|
break;
|
||||||
|
case VKD3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN:
|
||||||
|
mode = SpvExecutionModeSpacingFractionalEven;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
FIXME("Invalid tessellator partitioning %#x.\n", partitioning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
vkd3d_dxbc_compiler_emit_execution_mode(compiler, mode, NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
static void vkd3d_dxbc_compiler_emit_dcl_thread_group(struct vkd3d_dxbc_compiler *compiler,
|
static void vkd3d_dxbc_compiler_emit_dcl_thread_group(struct vkd3d_dxbc_compiler *compiler,
|
||||||
const struct vkd3d_shader_instruction *instruction)
|
const struct vkd3d_shader_instruction *instruction)
|
||||||
{
|
{
|
||||||
@ -5672,6 +5698,9 @@ void vkd3d_dxbc_compiler_handle_instruction(struct vkd3d_dxbc_compiler *compiler
|
|||||||
case VKD3DSIH_DCL_TESSELLATOR_DOMAIN:
|
case VKD3DSIH_DCL_TESSELLATOR_DOMAIN:
|
||||||
vkd3d_dxbc_compiler_emit_dcl_tessellator_domain(compiler, instruction);
|
vkd3d_dxbc_compiler_emit_dcl_tessellator_domain(compiler, instruction);
|
||||||
break;
|
break;
|
||||||
|
case VKD3DSIH_DCL_TESSELLATOR_PARTITIONING:
|
||||||
|
vkd3d_dxbc_compiler_emit_dcl_tessellator_partitioning(compiler, instruction);
|
||||||
|
break;
|
||||||
case VKD3DSIH_DCL_THREAD_GROUP:
|
case VKD3DSIH_DCL_THREAD_GROUP:
|
||||||
vkd3d_dxbc_compiler_emit_dcl_thread_group(compiler, instruction);
|
vkd3d_dxbc_compiler_emit_dcl_thread_group(compiler, instruction);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user