Fix compiler warning

This commit is contained in:
raven02 2014-07-18 04:05:15 +08:00
parent a7971b55ee
commit f729f21e6c
4 changed files with 67 additions and 67 deletions

View file

@ -79,16 +79,16 @@ struct GLFragmentDecompilerThread : public ThreadBase
struct struct
{ {
u32 else_offset : 31; u32 else_offset : 31;
u32 : 1; u32 : 1;
}; };
struct struct
{ {
u32 : 2; u32 : 2;
u32 rep1 : 8; u32 rep1 : 8;
u32 rep2 : 8; u32 rep2 : 8;
u32 : 1; u32 : 1;
u32 rep3 : 8; u32 rep3 : 8;
}; };
} src1; } src1;

View file

@ -10,26 +10,26 @@ struct GLVertexDecompilerThread : public ThreadBase
struct struct
{ {
u32 addr_swz : 2; u32 addr_swz : 2;
u32 mask_w : 2; u32 mask_w : 2;
u32 mask_z : 2; u32 mask_z : 2;
u32 mask_y : 2; u32 mask_y : 2;
u32 mask_x : 2; u32 mask_x : 2;
u32 cond : 3; u32 cond : 3;
u32 cond_test_enable : 1; u32 cond_test_enable : 1;
u32 cond_update_enable_0 : 1; u32 cond_update_enable_0 : 1;
u32 dst_tmp : 6; u32 dst_tmp : 6;
u32 src0_abs : 1; u32 src0_abs : 1;
u32 src1_abs : 1; u32 src1_abs : 1;
u32 src2_abs : 1; u32 src2_abs : 1;
u32 addr_reg_sel_1 : 1; u32 addr_reg_sel_1 : 1;
u32 cond_reg_sel_1 : 1; u32 cond_reg_sel_1 : 1;
u32 staturate : 1; u32 staturate : 1;
u32 index_input : 1; u32 index_input : 1;
u32 : 1; u32 : 1;
u32 cond_update_enable_1 : 1; u32 cond_update_enable_1 : 1;
u32 vec_result : 1; u32 vec_result : 1;
u32 : 1; u32 : 1;
}; };
} d0; } d0;
@ -39,11 +39,11 @@ struct GLVertexDecompilerThread : public ThreadBase
struct struct
{ {
u32 src0h : 8; u32 src0h : 8;
u32 input_src : 4; u32 input_src : 4;
u32 const_src : 10; u32 const_src : 10;
u32 vec_opcode : 5; u32 vec_opcode : 5;
u32 sca_opcode : 5; u32 sca_opcode : 5;
}; };
} d1; } d1;
@ -53,14 +53,14 @@ struct GLVertexDecompilerThread : public ThreadBase
struct struct
{ {
u32 src2h : 6; u32 src2h : 6;
u32 src1 : 17; u32 src1 : 17;
u32 src0l : 9; u32 src0l : 9;
}; };
struct struct
{ {
u32 iaddrh : 6; u32 iaddrh : 6;
u32 : 26; u32 : 26;
}; };
} d2; } d2;
@ -70,10 +70,10 @@ struct GLVertexDecompilerThread : public ThreadBase
struct struct
{ {
u32 end : 1; u32 end : 1;
u32 index_const : 1; u32 index_const : 1;
u32 dst : 5; u32 dst : 5;
u32 sca_dst_tmp : 6; u32 sca_dst_tmp : 6;
u32 vec_writemask_w : 1; u32 vec_writemask_w : 1;
u32 vec_writemask_z : 1; u32 vec_writemask_z : 1;
u32 vec_writemask_y : 1; u32 vec_writemask_y : 1;
@ -82,12 +82,12 @@ struct GLVertexDecompilerThread : public ThreadBase
u32 sca_writemask_z : 1; u32 sca_writemask_z : 1;
u32 sca_writemask_y : 1; u32 sca_writemask_y : 1;
u32 sca_writemask_x : 1; u32 sca_writemask_x : 1;
u32 src2l : 11; u32 src2l : 11;
}; };
struct struct
{ {
u32 : 29; u32 : 29;
u32 iaddrl : 3; u32 iaddrl : 3;
}; };
} d3; } d3;
@ -99,31 +99,31 @@ struct GLVertexDecompilerThread : public ThreadBase
struct struct
{ {
u32 src0l : 9; u32 src0l : 9;
u32 src0h : 8; u32 src0h : 8;
}; };
struct struct
{ {
u32 src1 : 17; u32 src1 : 17;
}; };
struct struct
{ {
u32 src2l : 11; u32 src2l : 11;
u32 src2h : 6; u32 src2h : 6;
}; };
}; };
struct struct
{ {
u32 reg_type : 2; u32 reg_type : 2;
u32 tmp_src : 6; u32 tmp_src : 6;
u32 swz_w : 2; u32 swz_w : 2;
u32 swz_z : 2; u32 swz_z : 2;
u32 swz_y : 2; u32 swz_y : 2;
u32 swz_x : 2; u32 swz_x : 2;
u32 neg : 1; u32 neg : 1;
}; };
} src[3]; } src[3];

View file

@ -1677,12 +1677,12 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, mem32_ptr_t args, const u32
{ {
const u32 a0 = ARGS(0); const u32 a0 = ARGS(0);
m_set_clip_plane = true; m_set_clip_plane = true;
m_clip_plane_0 = a0 & 0xf; m_clip_plane_0 = (a0 & 0xf) ? true : false;
m_clip_plane_1 = (a0 >> 4) & 0xf; m_clip_plane_1 = ((a0 >> 4)) & 0xf ? true : false;
m_clip_plane_2 = (a0 >> 8) & 0xf; m_clip_plane_2 = ((a0 >> 8)) & 0xf ? true : false;
m_clip_plane_3 = (a0 >> 12) & 0xf; m_clip_plane_3 = ((a0 >> 12)) & 0xf ? true : false;
m_clip_plane_4 = (a0 >> 16) & 0xf; m_clip_plane_4 = ((a0 >> 16)) & 0xf ? true : false;
m_clip_plane_5 = a0 >> 20; m_clip_plane_5 = (a0 >> 20) ? true : false;
} }
break; break;

View file

@ -348,12 +348,12 @@ public:
// Clip plane // Clip plane
bool m_set_clip_plane; bool m_set_clip_plane;
u32 m_clip_plane_0; bool m_clip_plane_0;
u32 m_clip_plane_1; bool m_clip_plane_1;
u32 m_clip_plane_2; bool m_clip_plane_2;
u32 m_clip_plane_3; bool m_clip_plane_3;
u32 m_clip_plane_4; bool m_clip_plane_4;
u32 m_clip_plane_5; bool m_clip_plane_5;
// Surface // Surface
bool m_set_surface_format; bool m_set_surface_format;