mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/d3dbc: Move IFC lowering to vsir_program_lower_d3dbc_instructions().
This commit is contained in:
committed by
Henri Verbeet
parent
2256c9c7cc
commit
b88fce0d39
Notes:
Henri Verbeet
2025-08-21 16:35:23 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1676
@@ -1669,6 +1669,10 @@ static enum vkd3d_result vsir_program_lower_d3dbc_instructions(struct vsir_progr
|
|||||||
|
|
||||||
switch (ins->opcode)
|
switch (ins->opcode)
|
||||||
{
|
{
|
||||||
|
case VSIR_OP_IFC:
|
||||||
|
ret = vsir_program_lower_ifc(program, &it, &tmp_idx, message_context);
|
||||||
|
break;
|
||||||
|
|
||||||
case VSIR_OP_SINCOS:
|
case VSIR_OP_SINCOS:
|
||||||
ret = vsir_program_lower_sm1_sincos(program, &it);
|
ret = vsir_program_lower_sm1_sincos(program, &it);
|
||||||
break;
|
break;
|
||||||
@@ -1714,7 +1718,6 @@ static enum vkd3d_result vsir_program_lower_instructions(struct vsir_program *pr
|
|||||||
struct vsir_transformation_context *ctx)
|
struct vsir_transformation_context *ctx)
|
||||||
{
|
{
|
||||||
struct vsir_program_iterator it = vsir_program_iterator(&program->instructions);
|
struct vsir_program_iterator it = vsir_program_iterator(&program->instructions);
|
||||||
struct vkd3d_shader_message_context *message_context = ctx->message_context;
|
|
||||||
struct vkd3d_shader_instruction *ins;
|
struct vkd3d_shader_instruction *ins;
|
||||||
unsigned int tmp_idx = ~0u;
|
unsigned int tmp_idx = ~0u;
|
||||||
enum vkd3d_result ret;
|
enum vkd3d_result ret;
|
||||||
@@ -1723,11 +1726,6 @@ static enum vkd3d_result vsir_program_lower_instructions(struct vsir_program *pr
|
|||||||
{
|
{
|
||||||
switch (ins->opcode)
|
switch (ins->opcode)
|
||||||
{
|
{
|
||||||
case VSIR_OP_IFC:
|
|
||||||
if ((ret = vsir_program_lower_ifc(program, &it, &tmp_idx, message_context)) < 0)
|
|
||||||
return ret;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case VSIR_OP_MAD:
|
case VSIR_OP_MAD:
|
||||||
if ((ret = vsir_program_lower_precise_mad(program, &it, &tmp_idx)) < 0)
|
if ((ret = vsir_program_lower_precise_mad(program, &it, &tmp_idx)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user