nvfx: add missing pushbuffer space check
authorLuca Barbieri <luca@luca-barbieri.com>
Sat, 4 Sep 2010 00:37:41 +0000 (02:37 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Sat, 4 Sep 2010 00:37:41 +0000 (02:37 +0200)
src/gallium/drivers/nvfx/nvfx_state_fb.c

index 3b869d43a15a2ce62dc39214067e442a1c8c7d7b..54855290a98573eb81ce5b0cc6f68c09d3b311d5 100644 (file)
@@ -167,6 +167,8 @@ nvfx_framebuffer_validate(struct nvfx_context *nvfx, unsigned prepare_result)
        else
                rt_format |= NV34TCL_RT_FORMAT_ZETA_Z24S8;
 
+       MARK_RING(chan, 44, 10);
+
        if ((rt_enable & NV34TCL_RT_ENABLE_COLOR0) || fb->zsbuf) {
                struct nvfx_render_target *rt0 = &nvfx->hw_rt[0];
                uint32_t pitch;