Displaying 2 results from an estimated 2 matches for "nouveau_framebuffer_valid".
2014 Jan 10
2
[PATCH] nouveau: add framebuffer validation callback
...ers/dri/nouveau/nouveau_fbo.c
index 25543e4..fba0d52 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c
@@ -268,6 +268,43 @@ nouveau_finish_render_texture(struct gl_context *ctx,
texture_dirty(rb->TexImage->TexObject);
}
+static void
+nouveau_framebuffer_validate(struct gl_context *ctx,
+ struct gl_framebuffer *fb)
+{
+ const struct nouveau_driver *drv = context_drv(ctx);
+ int i, count = 0;
+
+ for (i = 0; i < ctx->Const.MaxColorAttachments; i++) {
+ struct gl_renderbuffer_attachment *rba =
+ &fb->Attachment[BUFFER_COLOR0 + i];
+...
2014 Jan 14
0
[PATCH] nouveau: add framebuffer validation callback
...s matters. Also I used
> st_validate_framebuffer as a template, but I don't know if there can actually
> be many attachments. Should MaxColorAttachments be set to 1? I think it's set
> to 8 right now.
>
Yes, we should probably set that to one, and that will make the loop in
your nouveau_framebuffer_validate() code unnecessary.
> And there's also an odd nouveau_validate_framebuffer thing in
> nouveau_context.c, but I think that's related to actually
> rendering/invalidating the fb displayed to the screen.
>
That's called before any rendering happens to check if we need to re...