Commit ea9f9ad0 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Change parameters of OddProcessCounts to tickle new bug.

Turned on ordered compositing so that image dest goes to final process.
This is causing problems with indexing.
parent c89c157c
......@@ -26,7 +26,6 @@ static void draw(const IceTDouble *projection_matrix,
IceTImage result)
{
IceTUByte *color_buffer;
IceTFloat *depth_buffer;
IceTSizeType num_pixels;
IceTSizeType i;
......@@ -42,11 +41,6 @@ static void draw(const IceTDouble *projection_matrix,
for (i = 0; i < num_pixels*4; i++) {
color_buffer[i] = 255;
}
depth_buffer = icetImageGetDepthf(result);
for (i = 0; i < num_pixels; i++) {
depth_buffer[i] = 0.5f;
}
}
static int OddProcessCountsTryFrame(void)
......@@ -218,14 +212,29 @@ static int OddProcessCountsTryCount(void)
static int OddProcessCountsRun(void)
{
IceTInt num_proc;
IceTInt *process_ranks;
IceTInt proc;
icetGetIntegerv(ICET_NUM_PROCESSES, &num_proc);
icetCompositeMode(ICET_COMPOSITE_MODE_BLEND);
icetSetColorFormat(ICET_IMAGE_COLOR_RGBA_UBYTE);
icetSetDepthFormat(ICET_IMAGE_DEPTH_NONE);
icetDisable(ICET_CORRECT_COLORED_BACKGROUND);
icetDrawCallback(draw);
icetResetTiles();
icetAddTile(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, num_proc-1);
process_ranks = malloc(num_proc * sizeof(IceTInt));
for (proc = 0; proc < num_proc; proc++) {
process_ranks[proc] = proc;
}
icetEnable(ICET_ORDERED_COMPOSITE);
icetCompositeOrder(process_ranks);
free(process_ranks);
return OddProcessCountsTryCount();
}
......
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