mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
i965/inst: Stop using fi_type
It's a mesa define that's trivial to inline. This removes a dependence on main/imports.h. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
ffeb738112
commit
2523241660
1 changed files with 8 additions and 2 deletions
|
|
@ -570,7 +570,10 @@ brw_inst_imm_ud(const struct gen_device_info *devinfo, const brw_inst *insn)
|
|||
static inline float
|
||||
brw_inst_imm_f(const struct gen_device_info *devinfo, const brw_inst *insn)
|
||||
{
|
||||
fi_type ft;
|
||||
union {
|
||||
float f;
|
||||
uint32_t u;
|
||||
} ft;
|
||||
(void) devinfo;
|
||||
ft.u = brw_inst_bits(insn, 127, 96);
|
||||
return ft.f;
|
||||
|
|
@ -608,7 +611,10 @@ static inline void
|
|||
brw_inst_set_imm_f(const struct gen_device_info *devinfo,
|
||||
brw_inst *insn, float value)
|
||||
{
|
||||
fi_type ft;
|
||||
union {
|
||||
float f;
|
||||
uint32_t u;
|
||||
} ft;
|
||||
(void) devinfo;
|
||||
ft.f = value;
|
||||
brw_inst_set_bits(insn, 127, 96, ft.u);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue