projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
llvmpipe: add compute debug option
[mesa.git]
/
src
/
gallium
/
drivers
/
r300
/
compiler
/
radeon_compiler_util.c
diff --git
a/src/gallium/drivers/r300/compiler/radeon_compiler_util.c
b/src/gallium/drivers/r300/compiler/radeon_compiler_util.c
index 36a634114d6a42e93dcaf17a0a2b1d7a5c007905..b609d9fae3c9b1a7de569796878476b7713ad335 100644
(file)
--- a/
src/gallium/drivers/r300/compiler/radeon_compiler_util.c
+++ b/
src/gallium/drivers/r300/compiler/radeon_compiler_util.c
@@
-211,8
+211,8
@@
static void normal_rewrite_writemask_cb(
struct rc_instruction * inst,
struct rc_src_register * src)
{
struct rc_instruction * inst,
struct rc_src_register * src)
{
- unsigned int *
new_mask
= (unsigned int *)userdata;
- src->Swizzle = rc_adjust_channels(src->Swizzle, *
new_mask
);
+ unsigned int *
conversion_swizzle
= (unsigned int *)userdata;
+ src->Swizzle = rc_adjust_channels(src->Swizzle, *
conversion_swizzle
);
}
/**
}
/**
@@
-223,7
+223,6
@@
void rc_normal_rewrite_writemask(
struct rc_instruction * inst,
unsigned int conversion_swizzle)
{
struct rc_instruction * inst,
unsigned int conversion_swizzle)
{
- unsigned int new_mask;
struct rc_sub_instruction * sub = &inst->U.I;
const struct rc_opcode_info * info = rc_get_opcode_info(sub->Opcode);
sub->DstReg.WriteMask =
struct rc_sub_instruction * sub = &inst->U.I;
const struct rc_opcode_info * info = rc_get_opcode_info(sub->Opcode);
sub->DstReg.WriteMask =
@@
-244,8
+243,8
@@
void rc_normal_rewrite_writemask(
return;
}
return;
}
- new_mask = sub->DstReg.WriteMask;
-
rc_for_all_reads_src(inst, normal_rewrite_writemask_cb, &new_mask
);
+ rc_for_all_reads_src(inst, normal_rewrite_writemask_cb,
+
&conversion_swizzle
);
}
/**
}
/**