diff options
author | Eric Anholt <eric@anholt.net> | 2011-08-05 12:38:58 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-08-16 13:04:41 -0700 |
commit | 65b5cbbcf783f6c668ab5b31a0734680dd396794 (patch) | |
tree | 7165d9fc65a6364822d642243798df331e9384e2 /src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp | |
parent | 6034b9a5124475d300d0678bd2fb6160865fa972 (diff) | |
download | external_mesa3d-65b5cbbcf783f6c668ab5b31a0734680dd396794.zip external_mesa3d-65b5cbbcf783f6c668ab5b31a0734680dd396794.tar.gz external_mesa3d-65b5cbbcf783f6c668ab5b31a0734680dd396794.tar.bz2 |
i965: Rename math FS_OPCODE_* to SHADER_OPCODE_*.
I want to just use the same enums in the VS.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp index 965a5b3..0ea4e5c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp @@ -69,26 +69,26 @@ public: int math_latency = 22; switch (inst->opcode) { - case FS_OPCODE_RCP: + case SHADER_OPCODE_RCP: this->latency = 1 * chans * math_latency; break; - case FS_OPCODE_RSQ: + case SHADER_OPCODE_RSQ: this->latency = 2 * chans * math_latency; break; - case FS_OPCODE_SQRT: - case FS_OPCODE_LOG2: + case SHADER_OPCODE_SQRT: + case SHADER_OPCODE_LOG2: /* full precision log. partial is 2. */ this->latency = 3 * chans * math_latency; break; - case FS_OPCODE_EXP2: + case SHADER_OPCODE_EXP2: /* full precision. partial is 3, same throughput. */ this->latency = 4 * chans * math_latency; break; - case FS_OPCODE_POW: + case SHADER_OPCODE_POW: this->latency = 8 * chans * math_latency; break; - case FS_OPCODE_SIN: - case FS_OPCODE_COS: + case SHADER_OPCODE_SIN: + case SHADER_OPCODE_COS: /* minimum latency, max is 12 rounds. */ this->latency = 5 * chans * math_latency; break; |