search for: gl_renderbuffer_attach

Displaying 3 results from an estimated 3 matches for "gl_renderbuffer_attach".

2014 Jan 15
1
[PATCH v2] nouveau: add framebuffer validation callback
...RMAT_Z24_S8: + return 32; + case MESA_FORMAT_RGB565: + case MESA_FORMAT_Z16: + return 16; + default: + return 0; + } +} + +static void +nouveau_check_framebuffer_complete(struct gl_context *ctx, + struct gl_framebuffer *fb) +{ + const struct nouveau_driver *drv = context_drv(ctx); + struct gl_renderbuffer_attachment *color = + &fb->Attachment[BUFFER_COLOR0]; + struct gl_renderbuffer_attachment *depth = + &fb->Attachment[BUFFER_DEPTH]; + int color_bpp = 0, zeta_bpp; + + if (color->Type == GL_TEXTURE) { + color_bpp = validate_format_bpp( + color->Renderbuffer->TexImage->TexFor...
2014 Jan 10
2
[PATCH] nouveau: add framebuffer validation callback
..._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]; + if (rba->Type == GL_NONE) + continue; + + count++; + if (rba->Type != GL_TEXTURE) + continue; + + if (!drv->is_rt_format_supported( + rba->Renderbuffer->TexImage->TexFormat)) + goto err; + } + if (count &...
2014 Jan 14
0
[PATCH] nouveau: add framebuffer validation callback
...gt; +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]; > + if (rba->Type == GL_NONE) > + continue; > + > + count++; > + if (rba->Type != GL_TEXTURE) > + continue; > + > + if (!drv->is_rt_format_supported( > + rba->Renderbuffer->TexIma...