Merge commit 'origin/gallium-0.1' into gallium-0.2
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 5 Nov 2008 22:58:09 +0000 (15:58 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 5 Nov 2008 22:58:09 +0000 (15:58 -0700)
Conflicts:

src/gallium/auxiliary/rtasm/rtasm_execmem.c
src/mesa/shader/slang/slang_emit.c
src/mesa/shader/slang/slang_log.c
src/mesa/state_tracker/st_atom_framebuffer.c

12 files changed:
1  2 
src/gallium/auxiliary/draw/draw_vs_exec.c
src/gallium/auxiliary/draw/draw_vs_sse.c
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/tgsi/tgsi_sse2.c
src/gallium/auxiliary/util/u_mm.c
src/gallium/drivers/softpipe/sp_fs_sse.c
src/mesa/main/texenvprogram.c
src/mesa/shader/prog_uniform.c
src/mesa/shader/shader_api.c
src/mesa/state_tracker/st_atom_framebuffer.c
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_framebuffer.c

Simple merge
Simple merge
Simple merge
Simple merge
index b4f42c6f93f6a4182e759667d8a9f09462345401,2916886610d8984bb1d5030d66608b471879e624..ca1a719a9ac720e5a1fc34a37eeb0fd04cb58c79
@@@ -108,18 -108,21 +108,19 @@@ update_framebuffer_state( struct st_con
      * to determine which surfaces to draw to
      */
     framebuffer->num_cbufs = 0;
 -   for (j = 0; j < MAX_DRAW_BUFFERS; j++) {
 -      for (i = 0; i < fb->_NumColorDrawBuffers[j]; i++) {
 -         strb = st_renderbuffer(fb->_ColorDrawBuffers[j][i]);
 -
 -         /*printf("--------- framebuffer surface rtt %p\n", strb->rtt);*/
 -         if (strb->rtt) {
 -            /* rendering to a GL texture, may have to update surface */
 -            update_renderbuffer_surface(st, strb);
 -         }
 +   for (i = 0; i < fb->_NumColorDrawBuffers; i++) {
 +      strb = st_renderbuffer(fb->_ColorDrawBuffers[i]);
  
 -         if (strb->surface) {
 -            framebuffer->cbufs[framebuffer->num_cbufs] = strb->surface;
 -            framebuffer->num_cbufs++;
 -         }
 +      /*printf("--------- framebuffer surface rtt %p\n", strb->rtt);*/
 +      if (strb->rtt) {
 +         /* rendering to a GL texture, may have to update surface */
 +         update_renderbuffer_surface(st, strb);
 +      }
-       
-       assert(strb->surface);
-       framebuffer->cbufs[framebuffer->num_cbufs] = strb->surface;
-       framebuffer->num_cbufs++;
++
++      if (strb->surface) {
++         framebuffer->cbufs[framebuffer->num_cbufs] = strb->surface;
++         framebuffer->num_cbufs++;
+       }
     }
  
     strb = st_renderbuffer(fb->Attachment[BUFFER_DEPTH].Renderbuffer);
Simple merge