瀏覽代碼

cell: implement swizzling for src regs

tags/mesa_20090313
Brian Paul 17 年之前
父節點
當前提交
e8b199c6e3
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. 4
    3
      src/gallium/drivers/cell/ppu/cell_gen_fp.c

+ 4
- 3
src/gallium/drivers/cell/ppu/cell_gen_fp.c 查看文件

@@ -137,11 +137,12 @@ get_src_reg(struct codegen *gen,
const struct tgsi_full_src_register *src)
{
int reg;
int swizzle = tgsi_util_get_full_src_register_extswizzle(src, channel);

/* XXX need to examine src swizzle info here.
* That will involve changing the channel var...
*/
assert(swizzle >= 0);
assert(swizzle <= 3);

channel = swizzle;

switch (src->SrcRegister.File) {
case TGSI_FILE_TEMPORARY:

Loading…
取消
儲存