mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
Replace variable init code in WAIT by src_null_reg
This commit is contained in:
parent
7e2461b6fc
commit
b899aba57f
@ -44,6 +44,7 @@ static struct src_operand src_null_reg =
|
|||||||
{
|
{
|
||||||
.reg_file = BRW_ARCHITECTURE_REGISTER_FILE,
|
.reg_file = BRW_ARCHITECTURE_REGISTER_FILE,
|
||||||
.reg_nr = BRW_ARF_NULL,
|
.reg_nr = BRW_ARF_NULL,
|
||||||
|
.reg_type = BRW_REGISTER_TYPE_UD,
|
||||||
};
|
};
|
||||||
static struct dst_operand dst_null_reg =
|
static struct dst_operand dst_null_reg =
|
||||||
{
|
{
|
||||||
@ -1103,15 +1104,9 @@ maskpushop: MSAVE | PUSH
|
|||||||
|
|
||||||
syncinstruction: predicate WAIT notifyreg
|
syncinstruction: predicate WAIT notifyreg
|
||||||
{
|
{
|
||||||
struct direct_reg null;
|
|
||||||
struct dst_operand notify_dst;
|
struct dst_operand notify_dst;
|
||||||
struct src_operand null_src;
|
|
||||||
struct src_operand notify_src;
|
struct src_operand notify_src;
|
||||||
|
|
||||||
null.reg_file = BRW_ARCHITECTURE_REGISTER_FILE;
|
|
||||||
null.reg_nr = BRW_ARF_NULL;
|
|
||||||
null.subreg_nr = 0;
|
|
||||||
|
|
||||||
memset(&$$, 0, sizeof($$));
|
memset(&$$, 0, sizeof($$));
|
||||||
$$.header.opcode = $2;
|
$$.header.opcode = $2;
|
||||||
$$.header.execution_size = ffs(1) - 1;
|
$$.header.execution_size = ffs(1) - 1;
|
||||||
@ -1119,8 +1114,7 @@ syncinstruction: predicate WAIT notifyreg
|
|||||||
set_instruction_dest(&$$, ¬ify_dst);
|
set_instruction_dest(&$$, ¬ify_dst);
|
||||||
set_direct_src_operand(¬ify_src, &$3, BRW_REGISTER_TYPE_D);
|
set_direct_src_operand(¬ify_src, &$3, BRW_REGISTER_TYPE_D);
|
||||||
set_instruction_src0(&$$, ¬ify_src);
|
set_instruction_src0(&$$, ¬ify_src);
|
||||||
set_direct_src_operand(&null_src, &null, BRW_REGISTER_TYPE_UD);
|
set_instruction_src1(&$$, &src_null_reg);
|
||||||
set_instruction_src1(&$$, &null_src);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user