浏览代码

r300/compiler: Don't erase sources when converting RGB->Alpha

https://bugs.freedesktop.org/show_bug.cgi?id=34030

NOTE: This is a candidate for the 7.10 branch.
tags/android-x86-2.2-r2
Tom Stellard 14 年前
父节点
当前提交
9106b98766
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0
    6
      src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c

+ 0
- 6
src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c 查看文件

{ {
int new_src_index; int new_src_index;
unsigned int i; unsigned int i;
struct rc_pair_instruction_source * old_src =
rc_pair_get_src(&inst->U.P, arg);
if (!old_src) {
return;
}


for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
if (get_swz(arg->Swizzle, i) == old_swz) { if (get_swz(arg->Swizzle, i) == old_swz) {
SET_SWZ(arg->Swizzle, i, RC_SWIZZLE_W); SET_SWZ(arg->Swizzle, i, RC_SWIZZLE_W);
} }
} }
memset(old_src, 0, sizeof(struct rc_pair_instruction_source));
new_src_index = rc_pair_alloc_source(&inst->U.P, 0, 1, new_src_index = rc_pair_alloc_source(&inst->U.P, 0, 1,
old_file, new_index); old_file, new_index);
/* This conversion is not possible, we must have made a mistake in /* This conversion is not possible, we must have made a mistake in

正在加载...
取消
保存