intel/fs: Add a generic SEND opcode
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
committed by
Jason Ekstrand
parent
ba3c5300f9
commit
7f1cf046cd
@@ -216,6 +216,7 @@ bool
|
||||
fs_inst::is_send_from_grf() const
|
||||
{
|
||||
switch (opcode) {
|
||||
case SHADER_OPCODE_SEND:
|
||||
case FS_OPCODE_VARYING_PULL_CONSTANT_LOAD_GEN7:
|
||||
case SHADER_OPCODE_SHADER_TIME_ADD:
|
||||
case FS_OPCODE_INTERPOLATE_AT_SAMPLE:
|
||||
@@ -848,6 +849,14 @@ unsigned
|
||||
fs_inst::size_read(int arg) const
|
||||
{
|
||||
switch (opcode) {
|
||||
case SHADER_OPCODE_SEND:
|
||||
if (arg == 2) {
|
||||
return mlen * REG_SIZE;
|
||||
} else if (arg == 3) {
|
||||
return ex_mlen * REG_SIZE;
|
||||
}
|
||||
break;
|
||||
|
||||
case FS_OPCODE_FB_WRITE:
|
||||
case FS_OPCODE_REP_FB_WRITE:
|
||||
if (arg == 0) {
|
||||
@@ -6025,6 +6034,10 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
|
||||
fprintf(file, "(mlen: %d) ", inst->mlen);
|
||||
}
|
||||
|
||||
if (inst->ex_mlen) {
|
||||
fprintf(file, "(ex_mlen: %d) ", inst->ex_mlen);
|
||||
}
|
||||
|
||||
if (inst->eot) {
|
||||
fprintf(file, "(EOT) ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user