diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-03 07:49:59 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-03 07:49:59 -0700 |
commit | 5cd96f7684adc7ba52a216fb676c7eb88ba3f66a (patch) | |
tree | 48a36245e27aef167d49fc47ae8474a257f17c62 /src/mesa/pipe/cell/spu/tri.c | |
parent | 7aee3eff18decd6ce46f63a44c9a531414565265 (diff) |
pass surface format in cell_command_framebuffer struct
Diffstat (limited to 'src/mesa/pipe/cell/spu/tri.c')
-rw-r--r-- | src/mesa/pipe/cell/spu/tri.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/pipe/cell/spu/tri.c b/src/mesa/pipe/cell/spu/tri.c index 4e198e638c..3707ebea45 100644 --- a/src/mesa/pipe/cell/spu/tri.c +++ b/src/mesa/pipe/cell/spu/tri.c @@ -234,8 +234,7 @@ pack_color(const float color[4]) uint g = (uint) (color[1] * 255.0); uint b = (uint) (color[2] * 255.0); uint a = (uint) (color[3] * 255.0); - const enum pipe_format format = PIPE_FORMAT_A8R8G8B8_UNORM; /* XXX temp */ - switch (format) { + switch (fb.format) { case PIPE_FORMAT_A8R8G8B8_UNORM: return (a << 24) | (r << 16) | (g << 8) | b; case PIPE_FORMAT_B8G8R8A8_UNORM: |