From: Ben Skeggs Date: Fri, 21 Mar 2008 10:17:57 +0000 (+1100) Subject: nv40: use num_cbufs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebde8d3a1276f5c72d39936efabe72b5325f8e98;p=mesa.git nv40: use num_cbufs --- diff --git a/src/gallium/drivers/nv40/nv40_state_fb.c b/src/gallium/drivers/nv40/nv40_state_fb.c index 107b4400283..93b79377c92 100644 --- a/src/gallium/drivers/nv40/nv40_state_fb.c +++ b/src/gallium/drivers/nv40/nv40_state_fb.c @@ -13,10 +13,7 @@ nv40_state_framebuffer_validate(struct nv40_context *nv40) unsigned h = fb->height; rt_enable = 0; - for (i = 0; i < 4; i++) { - if (!fb->cbufs[i]) - continue; - + for (i = 0; i < fb->num_cbufs; i++) { if (colour_format) { assert(colour_format == fb->cbufs[i]->format); } else {