mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
Change return type of try_emit_* methods to bool.
Ian Romanick explained (Message-Id: <4E528973.6080902@freedesktop.org>), that the return type of non-API methods shouldn't use GLboolean but a standard C++ bool. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Bryan Cain <bryancain3@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
This commit is contained in:
parent
55592d9da1
commit
79a486ead9
2 changed files with 9 additions and 9 deletions
|
|
@ -312,11 +312,11 @@ public:
|
||||||
void emit_scs(ir_instruction *ir, enum prog_opcode op,
|
void emit_scs(ir_instruction *ir, enum prog_opcode op,
|
||||||
dst_reg dst, const src_reg &src);
|
dst_reg dst, const src_reg &src);
|
||||||
|
|
||||||
GLboolean try_emit_mad(ir_expression *ir,
|
bool try_emit_mad(ir_expression *ir,
|
||||||
int mul_operand);
|
int mul_operand);
|
||||||
bool try_emit_mad_for_and_not(ir_expression *ir,
|
bool try_emit_mad_for_and_not(ir_expression *ir,
|
||||||
int mul_operand);
|
int mul_operand);
|
||||||
GLboolean try_emit_sat(ir_expression *ir);
|
bool try_emit_sat(ir_expression *ir);
|
||||||
|
|
||||||
void emit_swz(ir_expression *ir);
|
void emit_swz(ir_expression *ir);
|
||||||
|
|
||||||
|
|
@ -871,7 +871,7 @@ ir_to_mesa_visitor::visit(ir_function *ir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GLboolean
|
bool
|
||||||
ir_to_mesa_visitor::try_emit_mad(ir_expression *ir, int mul_operand)
|
ir_to_mesa_visitor::try_emit_mad(ir_expression *ir, int mul_operand)
|
||||||
{
|
{
|
||||||
int nonmul_operand = 1 - mul_operand;
|
int nonmul_operand = 1 - mul_operand;
|
||||||
|
|
@ -934,7 +934,7 @@ ir_to_mesa_visitor::try_emit_mad_for_and_not(ir_expression *ir, int try_operand)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLboolean
|
bool
|
||||||
ir_to_mesa_visitor::try_emit_sat(ir_expression *ir)
|
ir_to_mesa_visitor::try_emit_sat(ir_expression *ir)
|
||||||
{
|
{
|
||||||
/* Saturates were only introduced to vertex programs in
|
/* Saturates were only introduced to vertex programs in
|
||||||
|
|
|
||||||
|
|
@ -390,11 +390,11 @@ public:
|
||||||
void emit_scs(ir_instruction *ir, unsigned op,
|
void emit_scs(ir_instruction *ir, unsigned op,
|
||||||
st_dst_reg dst, const st_src_reg &src);
|
st_dst_reg dst, const st_src_reg &src);
|
||||||
|
|
||||||
GLboolean try_emit_mad(ir_expression *ir,
|
bool try_emit_mad(ir_expression *ir,
|
||||||
int mul_operand);
|
int mul_operand);
|
||||||
bool try_emit_mad_for_and_not(ir_expression *ir,
|
bool try_emit_mad_for_and_not(ir_expression *ir,
|
||||||
int mul_operand);
|
int mul_operand);
|
||||||
GLboolean try_emit_sat(ir_expression *ir);
|
bool try_emit_sat(ir_expression *ir);
|
||||||
|
|
||||||
void emit_swz(ir_expression *ir);
|
void emit_swz(ir_expression *ir);
|
||||||
|
|
||||||
|
|
@ -1186,7 +1186,7 @@ glsl_to_tgsi_visitor::visit(ir_function *ir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GLboolean
|
bool
|
||||||
glsl_to_tgsi_visitor::try_emit_mad(ir_expression *ir, int mul_operand)
|
glsl_to_tgsi_visitor::try_emit_mad(ir_expression *ir, int mul_operand)
|
||||||
{
|
{
|
||||||
int nonmul_operand = 1 - mul_operand;
|
int nonmul_operand = 1 - mul_operand;
|
||||||
|
|
@ -1252,7 +1252,7 @@ glsl_to_tgsi_visitor::try_emit_mad_for_and_not(ir_expression *ir, int try_operan
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLboolean
|
bool
|
||||||
glsl_to_tgsi_visitor::try_emit_sat(ir_expression *ir)
|
glsl_to_tgsi_visitor::try_emit_sat(ir_expression *ir)
|
||||||
{
|
{
|
||||||
/* Saturates were only introduced to vertex programs in
|
/* Saturates were only introduced to vertex programs in
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue