[Mesa-dev] [PATCH 09/19] i965/fs: Add SHADER_OPCODE_LOAD_PAYLOAD.

Matt Turner mattst88 at gmail.com
Fri Apr 18 11:56:45 PDT 2014


Will be used to simplify the handling of large virtual GRFs in SSA form.
---
 src/mesa/drivers/dri/i965/brw_defines.h        | 2 ++
 src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 3 +++
 src/mesa/drivers/dri/i965/brw_shader.cpp       | 3 +++
 3 files changed, 8 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h
index c38e447..34467e9 100644
--- a/src/mesa/drivers/dri/i965/brw_defines.h
+++ b/src/mesa/drivers/dri/i965/brw_defines.h
@@ -797,6 +797,8 @@ enum opcode {
    SHADER_OPCODE_TG4,
    SHADER_OPCODE_TG4_OFFSET,
 
+   SHADER_OPCODE_LOAD_PAYLOAD,
+
    SHADER_OPCODE_SHADER_TIME_ADD,
 
    SHADER_OPCODE_UNTYPED_ATOMIC,
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index 38ba21c..03aa80f 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -1751,6 +1751,9 @@ fs_generator::generate_code(exec_list *instructions, FILE *dump_file)
          generate_discard_jump(inst);
          break;
 
+      case SHADER_OPCODE_LOAD_PAYLOAD:
+         break;
+
       case SHADER_OPCODE_SHADER_TIME_ADD:
          generate_shader_time_add(inst, src[0], src[1], src[2]);
          break;
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp
index 6e74803..5a3f675 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.cpp
+++ b/src/mesa/drivers/dri/i965/brw_shader.cpp
@@ -451,6 +451,9 @@ brw_instruction_name(enum opcode op)
    case SHADER_OPCODE_TG4_OFFSET:
       return "tg4_offset";
 
+   case SHADER_OPCODE_LOAD_PAYLOAD:
+      return "load_payload";
+
    case SHADER_OPCODE_GEN4_SCRATCH_READ:
       return "gen4_scratch_read";
    case SHADER_OPCODE_GEN4_SCRATCH_WRITE:
-- 
1.8.3.2



More information about the mesa-dev mailing list