diff options
| author | Tor Aamodt <[email protected]> | 2010-10-01 08:55:28 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-10-01 08:55:28 -0800 |
| commit | 11b308e7363e937966b035b4891db32b4eece3bf (patch) | |
| tree | 50ca4c9ad6f163ac4acb2bf505e64dfebed66947 /benchmarks/CUDA/RAY/makebmp.cpp | |
| parent | bb820c116764d7a1b8e071137d32b74e7f34dd2f (diff) | |
integrating recent changes from fermi-test into fermi
(i'll use "fermi" for more disruptive changes to the pipeline model such
as updating the MSHRs and getting rid of the warp tracker, ripping out DWF, etc...)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7805]
Diffstat (limited to 'benchmarks/CUDA/RAY/makebmp.cpp')
| -rw-r--r-- | benchmarks/CUDA/RAY/makebmp.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/benchmarks/CUDA/RAY/makebmp.cpp b/benchmarks/CUDA/RAY/makebmp.cpp deleted file mode 100644 index 1b006ec..0000000 --- a/benchmarks/CUDA/RAY/makebmp.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#include "EasyBMP.h" - -BMP out_bmp; - -void initialize_bmp(unsigned width, unsigned height, unsigned depth) -{ - SetEasyBMPwarningsOff(); - out_bmp.SetSize(width, height); - out_bmp.SetBitDepth(depth); -} - -void create_bmp(unsigned *data) -{ - unsigned height = out_bmp.TellHeight(); - unsigned width = out_bmp.TellWidth(); - for (unsigned y=0; y< height; y++){ - for (unsigned x=0; x< width; x++) { - //printf("%8x ", c_output[x+y*width]); - out_bmp(x,(height-y-1))->Red = 0x000000FF & data[x+y*width]; - out_bmp(x,(height-y-1))->Green = (0x0000FF00 & data[x+y*width]) >> 8; - out_bmp(x,(height-y-1))->Blue = (0x00FF0000 & data[x+y*width]) >> 16; - out_bmp(x,(height-y-1))->Alpha = (0xFF000000 & data[x+y*width]) >> 24; - } - } - out_bmp.WriteToFile("output.bmp"); -} - - |
