stream dynamic allocation (new approach)

Discussion created by jean-claude on Dec 14, 2008
Latest reply on Dec 14, 2008 by jean-claude
possible bug?

I noticed a probable dynamic stream allocation bug ...

Coul you confirm?

here is a simple test program

// Test_GPU_1.cpp : Defines the entry point for the console application.

#include "stdafx.h"
#include "brook/Stream.h"

brook::Stream<int3> *stream_A;

void create_streams( int width, int height ) {
    unsigned int dims[2] = { height, width };       
    stream_A= new brook::Stream<int3>(2,dims); // allocation doubtful...

int _tmain(int argc, _TCHAR* argv[])
    return 0;

Noticed that as a resultof allocation, here is part of the stream_A structure :


  _refcount =1


  _ dimensions (should have 2 items)

      720  OK

      576 is missing !!!!