mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
tgsi: fix operand type of TGSI_OPCODE_NOT
It should be TGSI_TYPE_UNSIGNED, not TGSI_TYPE_FLOAT. Fixed also gallivm not_emit_cpu() to use uint build context. Signed-off-by: Chia-I Wu <olvaffe@gmail.com> Acked-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
1f970816b1
commit
75a48a53d8
2 changed files with 2 additions and 1 deletions
|
|
@ -1314,7 +1314,7 @@ not_emit_cpu(
|
|||
struct lp_build_tgsi_context * bld_base,
|
||||
struct lp_build_emit_data * emit_data)
|
||||
{
|
||||
emit_data->output[emit_data->chan] = lp_build_not(&bld_base->base,
|
||||
emit_data->output[emit_data->chan] = lp_build_not(&bld_base->uint_bld,
|
||||
emit_data->args[0]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -276,6 +276,7 @@ tgsi_opcode_infer_type( uint opcode )
|
|||
case TGSI_OPCODE_MOV:
|
||||
case TGSI_OPCODE_UCMP:
|
||||
return TGSI_TYPE_UNTYPED;
|
||||
case TGSI_OPCODE_NOT:
|
||||
case TGSI_OPCODE_SHL:
|
||||
case TGSI_OPCODE_AND:
|
||||
case TGSI_OPCODE_OR:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue