nv10: emit dummy zeta size when no zbuffer is used.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Thu, 3 Apr 2008 02:20:22 +0000 (04:20 +0200)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Thu, 3 Apr 2008 02:20:22 +0000 (04:20 +0200)
src/gallium/drivers/nv10/nv10_state_emit.c

index 18566986b064f582e3599e950c1b7237d5c41157..edc194588d164cdcfab002b483cb71629bc4d137 100644 (file)
@@ -141,7 +141,7 @@ static void nv10_state_emit_framebuffer(struct nv10_context* nv10)
                OUT_RING  ( (rt->pitch * rt->cpp) | ( (zeta->pitch * zeta->cpp) << 16) );
        } else {
                BEGIN_RING(celsius, NV10TCL_RT_PITCH, 1);
-               OUT_RING  ( (rt->pitch * rt->cpp) );
+               OUT_RING  ( (rt->pitch * rt->cpp) | ( (rt->pitch * rt->cpp) << 16) );
        }
 
        nv10->rt[0] = rt->buffer;