search for: nouveau_fbo_functions_init

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

2014 Jan 15
1
[PATCH v2] nouveau: add framebuffer validation callback
...; + if (!zeta_bpp) + goto err; + /* NV04/NV05 requires same bpp-ness for color/zeta */ + if (context_chipset(ctx) < 0x10 && + color_bpp && color_bpp != zeta_bpp) + goto err; + } + + return; +err: + fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED_EXT; + return; +} + void nouveau_fbo_functions_init(struct dd_function_table *functions) { @@ -279,4 +330,5 @@ nouveau_fbo_functions_init(struct dd_function_table *functions) functions->FramebufferRenderbuffer = nouveau_framebuffer_renderbuffer; functions->RenderTexture = nouveau_render_texture; functions->FinishRenderTexture = nouve...
2014 Jan 10
2
[PATCH] nouveau: add framebuffer validation callback
...[BUFFER_DEPTH].Type == GL_TEXTURE) { + struct gl_texture_image *ti = + fb->Attachment[BUFFER_DEPTH].Renderbuffer->TexImage; + if (!drv->is_rt_format_supported(ti->TexFormat)) + goto err; + } + + return; +err: + fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED_EXT; + return; +} + void nouveau_fbo_functions_init(struct dd_function_table *functions) { @@ -279,4 +316,5 @@ nouveau_fbo_functions_init(struct dd_function_table *functions) functions->FramebufferRenderbuffer = nouveau_framebuffer_renderbuffer; functions->RenderTexture = nouveau_render_texture; functions->FinishRenderTexture = nouve...
2014 Jan 14
0
[PATCH] nouveau: add framebuffer validation callback
...ti = > + fb->Attachment[BUFFER_DEPTH].Renderbuffer->TexImage; > + if (!drv->is_rt_format_supported(ti->TexFormat)) > + goto err; > + } > + > + return; > +err: > + fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED_EXT; > + return; > +} > + > void > nouveau_fbo_functions_init(struct dd_function_table *functions) > { > @@ -279,4 +316,5 @@ nouveau_fbo_functions_init(struct dd_function_table *functions) > functions->FramebufferRenderbuffer = nouveau_framebuffer_renderbuffer; > functions->RenderTexture = nouveau_render_texture; > functions->Fi...