Commit 2b735471 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Merge branch 'RadixKDefault'

parents 327571b4 5a9de4d5
...@@ -20,27 +20,23 @@ void icetAutomaticCompose(const IceTInt *compose_group, ...@@ -20,27 +20,23 @@ void icetAutomaticCompose(const IceTInt *compose_group,
IceTSparseImage *result_image, IceTSparseImage *result_image,
IceTSizeType *piece_offset) IceTSizeType *piece_offset)
{ {
if (group_size >= 8) { if (group_size > 1) {
icetRaiseDebug("Doing bswap compose"); icetRaiseDebug("Doing radix-k compose");
icetInvokeSingleImageStrategy(ICET_SINGLE_IMAGE_STRATEGY_BSWAP, icetInvokeSingleImageStrategy(ICET_SINGLE_IMAGE_STRATEGY_RADIXK,
compose_group,
group_size,
image_dest,
input_image,
result_image,
piece_offset);
} else if (group_size > 0) {
icetRaiseDebug("Doing tree compose");
icetInvokeSingleImageStrategy(ICET_SINGLE_IMAGE_STRATEGY_TREE,
compose_group, compose_group,
group_size, group_size,
image_dest, image_dest,
input_image, input_image,
result_image, result_image,
piece_offset); piece_offset);
} else if (group_size == 1) {
icetRaiseDebug("Shallow copy input.");
*result_image = input_image;
*piece_offset = 0;
} else { } else {
icetRaiseDebug("Clearing pixels"); icetRaiseDebug("Clearing pixels");
icetClearSparseImage(input_image); icetClearSparseImage(input_image);
*result_image = input_image; *result_image = input_image;
*piece_offset = 0;
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment