search for: dd_function_t

Displaying 6 results from an estimated 6 matches for "dd_function_t".

2014 Jan 15
1
[PATCH v2] nouveau: add framebuffer validation callback
...+ /* 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 = nouveau_finish_render_text...
2014 Jan 10
2
[PATCH] nouveau: add framebuffer validation callback
...{ + 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 = nouveau_finish_render_text...
2013 Oct 04
1
[PATCH] nouveau_vieux: add AllocTextureImageBuffer implementation
...texture_image *ti) +{ + nouveau_teximage(ctx, 3, ti, 0, 0, 0, NULL, + &ctx->DefaultPacking, GL_FALSE); + return GL_TRUE; +} + static void nouveau_texsubimage(struct gl_context *ctx, GLint dims, struct gl_texture_image *ti, @@ -634,6 +642,7 @@ nouveau_texture_functions_init(struct dd_function_table *functions) functions->DeleteTexture = nouveau_texture_free; functions->NewTextureImage = nouveau_teximage_new; functions->FreeTextureImageBuffer = nouveau_teximage_free; + functions->AllocTextureImageBuffer = nouveau_teximage_alloc; functions->ChooseTextureFormat = nouve...
2014 Jan 14
0
[PATCH] nouveau: add framebuffer validation callback
...FFER_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 = n...
2012 Jul 06
0
[PATCH] dri/nouveau: Add AllocTextureImageBuffer() implementation
...d by the CPU, - * so leave them in system RAM for now. */ - return NOUVEAU_BO_MAP; - else - return NOUVEAU_BO_GART | NOUVEAU_BO_MAP; -} - static void nouveau_teximage(struct gl_context *ctx, GLint dims, struct gl_texture_image *ti, @@ -704,7 +744,8 @@ nouveau_texture_functions_init(struct dd_function_table *functions) functions->NewTextureObject = nouveau_texture_new; functions->DeleteTexture = nouveau_texture_free; functions->NewTextureImage = nouveau_teximage_new; - functions->FreeTextureImageBuffer = nouveau_teximage_free; + functions->AllocTextureImageBuffer = nouveau_all...
2012 Apr 06
1
[WIP PATCH] dri/nouveau: Add S3TC support for nv20.
...eight, + GLenum format, + GLint imageSize, const void *data) +{ + nouveau_texsubimage(ctx, 2, ti, xoffset, yoffset, 0, + width, height, 1, imageSize, format, 0, data, + &ctx->Unpack, GL_TRUE); } static void @@ -696,6 +775,8 @@ nouveau_texture_functions_init(struct dd_function_table *functions) functions->TexSubImage1D = nouveau_texsubimage_1d; functions->TexSubImage2D = nouveau_texsubimage_2d; functions->TexSubImage3D = nouveau_texsubimage_3d; + functions->CompressedTexImage2D = nouveau_compressed_teximage_2d; + functions->CompressedTexSubImage2D = no...