瀏覽代碼

i965/vec4: Rename try_copy/constant_propagat{ion,e} to match the fs.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
tags/10.3-branchpoint
Matt Turner 11 年之前
父節點
當前提交
7526df70ea
共有 2 個檔案被更改,包括 8 行新增8 行删除
  1. 2
    2
      src/mesa/drivers/dri/i965/brw_vec4.h
  2. 6
    6
      src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp

+ 2
- 2
src/mesa/drivers/dri/i965/brw_vec4.h 查看文件

vec4_instruction *pre_rhs_inst, vec4_instruction *pre_rhs_inst,
vec4_instruction *last_rhs_inst); vec4_instruction *last_rhs_inst);


bool try_copy_propagation(vec4_instruction *inst, int arg,
src_reg *values[4]);
bool try_copy_propagate(vec4_instruction *inst, int arg,
src_reg *values[4]);


/** Walks an exec_list of ir_instruction and sends it through this visitor. */ /** Walks an exec_list of ir_instruction and sends it through this visitor. */
void visit_instructions(const exec_list *list); void visit_instructions(const exec_list *list);

+ 6
- 6
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp 查看文件

} }


static bool static bool
try_constant_propagation(struct brw_context *brw, vec4_instruction *inst,
int arg, src_reg *values[4])
try_constant_propagate(struct brw_context *brw, vec4_instruction *inst,
int arg, src_reg *values[4])
{ {
/* For constant propagation, we only handle the same constant /* For constant propagation, we only handle the same constant
* across all 4 channels. Some day, we should handle the 8-bit * across all 4 channels. Some day, we should handle the 8-bit
} }


bool bool
vec4_visitor::try_copy_propagation(vec4_instruction *inst, int arg,
src_reg *values[4])
vec4_visitor::try_copy_propagate(vec4_instruction *inst, int arg,
src_reg *values[4])
{ {
/* For constant propagation, we only handle the same constant /* For constant propagation, we only handle the same constant
* across all 4 channels. Some day, we should handle the 8-bit * across all 4 channels. Some day, we should handle the 8-bit
if (c != 4) if (c != 4)
continue; continue;


if (try_constant_propagation(brw, inst, i, values) ||
try_copy_propagation(inst, i, values))
if (try_constant_propagate(brw, inst, i, values) ||
try_copy_propagate(inst, i, values))
progress = true; progress = true;
} }



Loading…
取消
儲存