blob: d9d0e618bfca72f1998622032c482e2898d9d3cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "lp_bld_action.h"
#include "lp_bld_arit.h"
#include "lp_bld_tgsi.h"
/* TGSI_OPCODE_ABS */
static LLVMValueRef
abs_emit(
const struct lp_build_opcode_action * action,
struct lp_build_tgsi_context * bld_base,
struct lp_build_emit_data * emit_data)
{
return lp_build_abs(&bld_base->base, emit_data->args[0]);
}
static struct lp_build_opcode_action abs_action = {
.emit = abs_emit
};
void
lp_set_default_actions(
struct lp_build_tgsi_context * bld_base)
{
bld_base->op_actions[TGSI_OPCODE_ABS] = abs_action;
}
|