diff options
author | Brian <[email protected]> | 2008-03-20 15:02:59 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-03-20 15:04:08 -0600 |
commit | 2fb30b77ad09016efcf969456de9b0341bc53bac (patch) | |
tree | 92c8f9aa88b87d3098b438467b39ba0785b458fe /src/gallium/drivers/cell/ppu/cell_state_derived.c | |
parent | 3a4ece89a799a7c699be229a6d965d4820af0196 (diff) |
cell: use pipe_framebuffer_state.width, height
Diffstat (limited to 'src/gallium/drivers/cell/ppu/cell_state_derived.c')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_state_derived.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_state_derived.c b/src/gallium/drivers/cell/ppu/cell_state_derived.c index 5c240a55c0b..5480534ad90 100644 --- a/src/gallium/drivers/cell/ppu/cell_state_derived.c +++ b/src/gallium/drivers/cell/ppu/cell_state_derived.c @@ -141,17 +141,8 @@ calculate_vertex_layout( struct cell_context *cell ) static void compute_cliprect(struct cell_context *sp) { - unsigned surfWidth, surfHeight; - - if (sp->framebuffer.num_cbufs > 0) { - surfWidth = sp->framebuffer.cbufs[0]->width; - surfHeight = sp->framebuffer.cbufs[0]->height; - } - else { - /* no surface? */ - surfWidth = sp->scissor.maxx; - surfHeight = sp->scissor.maxy; - } + uint surfWidth = sp->framebuffer.width; + uint surfHeight = sp->framebuffer.height; if (sp->rasterizer->scissor) { /* clip to scissor rect */ |