Merge branch 'width0'
authorRoland Scheidegger <sroland@vmware.com>
Fri, 27 Nov 2009 16:15:47 +0000 (17:15 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 27 Nov 2009 16:15:47 +0000 (17:15 +0100)
Conflicts:
src/gallium/drivers/r300/r300_texture.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/mesa/state_tracker/st_cb_texture.c

1  2 
src/gallium/auxiliary/util/u_math.h
src/gallium/drivers/r300/r300_texture.c
src/gallium/state_trackers/xorg/xorg_composite.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/gallium/state_trackers/xorg/xorg_xv.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_texture.c

Simple merge
index d13aa8f036bf838893fb7c4bd49b56a00bceffa1,f4d148cdc5a6f08745943dce1cd82f25a7c0418c..093a21ebe243c5735bf941584fbe82dce8ec9e5e
@@@ -43,7 -43,8 +43,7 @@@ static void r300_setup_texture_state(st
          state->format2 = (tex->pitch[0] - 1) & 0x1fff;
      } else {
          /* power of two textures (3D, mipmaps, and no pitch) */
-         state->format0 |= R300_TX_DEPTH(util_logbase2(pt->depth[0]) & 0xf);
 -        state->format0 |= R300_TX_DEPTH(util_logbase2(pt->depth0) & 0xf) |
 -                          R300_TX_NUM_LEVELS(pt->last_level & 0xf);
++        state->format0 |= R300_TX_DEPTH(util_logbase2(pt->depth0) & 0xf);
      }
  
      state->format1 = r300_translate_texformat(pt->format);
index 3d83b5700d50d0aa95456c2ef026c0a95eac2f3b,534d4da13f75933f0851d6ccd8cb4a9da4a19428..a68a626fa483f7f6c0e6658e65163a9adfae203f
@@@ -750,11 -751,10 +750,11 @@@ ExaModifyPixmapHeader(PixmapPtr pPixmap
                             bitsPerPixel, devKind, NULL);
  
      /* Deal with screen resize */
 -    if (!priv->tex ||
 -        (priv->tex->width0 != width ||
 -         priv->tex->height0 != height ||
 -         priv->tex_flags != priv->flags)) {
 +    if ((exa->accel || priv->flags) &&
 +        (!priv->tex ||
-          (priv->tex->width[0] != width ||
-           priv->tex->height[0] != height ||
++         (priv->tex->width0 != width ||
++          priv->tex->height0 != height ||
 +          priv->tex_flags != priv->flags))) {
        struct pipe_texture *texture = NULL;
        struct pipe_texture template;
  
index d4630a514f8f2bf1bf4a00d2155c016a69712bfb,72892b7c8c2f49ea426b0952ee6953ebea0b4c98..3a2337802fab185927161e69627a1999304649ab
@@@ -1761,10 -1813,11 +1761,10 @@@ st_finalize_texture(GLcontext *ctx
        if (stObj->pt->target != gl_target_to_pipe(stObj->base.Target) ||
            stObj->pt->format != fmt ||
            stObj->pt->last_level < stObj->lastLevel ||
-           stObj->pt->width[0] != firstImage->base.Width2 ||
-           stObj->pt->height[0] != firstImage->base.Height2 ||
-           stObj->pt->depth[0] != firstImage->base.Depth2 ||
+           stObj->pt->width0 != firstImage->base.Width2 ||
+           stObj->pt->height0 != firstImage->base.Height2 ||
+           stObj->pt->depth0 != firstImage->base.Depth2 ||
 -          /* Nominal bytes per pixel: */
 -          stObj->pt->block.size / stObj->pt->block.width != cpp)
 +          stObj->pt->block.size != blockSize)
        {
           pipe_texture_reference(&stObj->pt, NULL);
           ctx->st->dirty.st |= ST_NEW_FRAMEBUFFER;
Simple merge