From: Chia-I Wu Date: Sat, 13 Mar 2010 09:00:24 +0000 (+0800) Subject: st/mesa: Set revalidate in st_framebuffer_update_attachments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f91d8c6885c8944322991115b739cee3e2fdf6bd;p=mesa.git st/mesa: Set revalidate in st_framebuffer_update_attachments. There are two conditions that a validation is required. One is when the the framebuffer becomes invalid. The other is when we request for textures that we did not request before. --- diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index f0dda4be6e9..9475704121c 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -226,6 +226,8 @@ st_framebuffer_update_attachments(struct st_framebuffer *stfb) st_visual_have_buffers(stfb->iface->visual, 1 << statt)) stfb->statts[stfb->num_statts++] = statt; } + + p_atomic_set(&stfb->revalidate, TRUE); } /** @@ -438,7 +440,6 @@ st_framebuffer_create(struct st_framebuffer_iface *stfbi) st_framebuffer_update_attachments(stfb); - p_atomic_set(&stfb->revalidate, TRUE); stfb->Base.Initialized = GL_TRUE; return stfb;