diff options
author | Jason Ekstrand <[email protected]> | 2018-10-29 15:06:14 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-01-29 18:43:55 +0000 |
commit | 7f1cf046cd1fb8a3af0e24b622179e4adb398764 (patch) | |
tree | 85c5cbf5208d75888c7e881600e8a24286d8d26c /src/intel/compiler/brw_fs.cpp | |
parent | ba3c5300f9f375c483a7c35724ebe69f797665e3 (diff) |
intel/fs: Add a generic SEND opcode
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_fs.cpp')
-rw-r--r-- | src/intel/compiler/brw_fs.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index b3e3980f0d0..b4e07be14bd 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -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) "); } |