OSDN Git Service

nv50: fix resource_resolve shader start offsets
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 23 Jul 2012 11:04:34 +0000 (13:04 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 28 Jul 2012 11:11:56 +0000 (13:11 +0200)
src/gallium/drivers/nv50/nv50_surface.c

index 15c88d5..0872f8d 100644 (file)
@@ -637,14 +637,14 @@ nv50_blitctx_get_color_mask_and_fp(struct nv50_blitctx *blit,
    switch (format) {
    case PIPE_FORMAT_Z24X8_UNORM:
    case PIPE_FORMAT_Z24_UNORM_S8_UINT:
-      blit->fp_offset = 160;
+      blit->fp_offset = 0xb0;
       if (mask & PIPE_MASK_Z)
          blit->color_mask |= 0x0111;
       if (mask & PIPE_MASK_S)
          blit->color_mask |= 0x1000;
       break;
    case PIPE_FORMAT_S8_UINT_Z24_UNORM:
-      blit->fp_offset = 24;
+      blit->fp_offset = 0x18;
       if (mask & PIPE_MASK_Z)
          blit->color_mask |= 0x1110;
       if (mask & PIPE_MASK_S)