search for: gl_texture_imag

Displaying 9 results from an estimated 9 matches for "gl_texture_imag".

Did you mean: gl_texture_image
2014 Sep 13
2
[PATCH] nouveau: fix glCompressedTexImage
...-) diff --git a/src/mesa/drivers/dri/nouveau/nouveau_texture.c b/src/mesa/drivers/dri/nouveau/nouveau_texture.c index 4626cc3..dc5699c 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_texture.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c @@ -413,6 +413,31 @@ get_teximage_placement(struct gl_texture_image *ti) } static void +nouveau_compressed_copy(struct gl_context *ctx, GLint dims, + struct gl_texture_image *ti, + GLsizei width, GLsizei height, GLsizei depth, + const GLvoid *src, GLvoid *dst, int row_stride) +{ + struct compressed_pixelstore store; + int i; + + _mesa_compute_compressed_...
2014 Sep 14
1
[PATCH] nouveau: fix glCompressedTexImage
...i/nouveau/nouveau_texture.c b/src/mesa/drivers/dri/nouveau/nouveau_texture.c >> index 4626cc3..dc5699c 100644 >> --- a/src/mesa/drivers/dri/nouveau/nouveau_texture.c >> +++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c >> @@ -413,6 +413,31 @@ get_teximage_placement(struct gl_texture_image *ti) >> } >> >> static void >> +nouveau_compressed_copy(struct gl_context *ctx, GLint dims, >> + struct gl_texture_image *ti, >> + GLsizei width, GLsizei height, GLsizei depth, >> + const GLvoid...
2012 Jul 06
0
[PATCH] dri/nouveau: Add AllocTextureImageBuffer() implementation
...+#include "swrast/swrast.h" static struct gl_texture_object * nouveau_texture_new(struct gl_context *ctx, GLuint name, GLenum target) @@ -71,12 +72,64 @@ nouveau_teximage_new(struct gl_context *ctx) return &nti->base.Base; } +static unsigned +get_teximage_placement(struct gl_texture_image *ti) +{ + if (ti->TexFormat == MESA_FORMAT_A8 || + ti->TexFormat == MESA_FORMAT_L8 || + ti->TexFormat == MESA_FORMAT_I8) + /* 1 cpp formats will have to be swizzled by the CPU, + * so leave them in system RAM for now. */ + return NOUVEAU_BO_MAP; + else + return NOUVEAU_BO_GAR...
2012 Apr 06
1
[WIP PATCH] dri/nouveau: Add S3TC support for nv20.
...c/mesa/drivers/dri/nouveau/nouveau_texture.c b/src/mesa/drivers/dri/nouveau/nouveau_texture.c index 643b890..52f0259 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_texture.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c @@ -91,6 +91,7 @@ nouveau_teximage_map(struct gl_context *ctx, struct gl_texture_image *ti, if (s->bo) { if (!(access & GL_MAP_READ_BIT) && nouveau_pushbuf_refd(context_push(ctx), s->bo)) { + unsigned size; /* * Heuristic: use a bounce buffer to pipeline * teximage transfers. @@ -104,7 +105,8 @@ nouveau_teximage_map(struct gl_context *ct...
2013 Oct 04
1
[PATCH] nouveau_vieux: add AllocTextureImageBuffer implementation
...src/mesa/drivers/dri/nouveau/nouveau_texture.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c @@ -494,6 +494,14 @@ nouveau_compressed_teximage(struct gl_context *ctx, GLuint dims, &ctx->Unpack, GL_TRUE); } +static GLboolean +nouveau_teximage_alloc(struct gl_context *ctx, struct gl_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_...
2014 Sep 14
0
[PATCH] nouveau: fix glCompressedTexImage
.../mesa/drivers/dri/nouveau/nouveau_texture.c b/src/mesa/drivers/dri/nouveau/nouveau_texture.c > index 4626cc3..dc5699c 100644 > --- a/src/mesa/drivers/dri/nouveau/nouveau_texture.c > +++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c > @@ -413,6 +413,31 @@ get_teximage_placement(struct gl_texture_image *ti) > } > > static void > +nouveau_compressed_copy(struct gl_context *ctx, GLint dims, > + struct gl_texture_image *ti, > + GLsizei width, GLsizei height, GLsizei depth, > + const GLvoid *src, GLvoid *dst, int row_stride) > +{ > + struct compressed_pixelstore...
2012 Jun 11
1
[PATCH 10/21] nouveau: Add support for ARB_sampler_object
.../drivers/dri/nouveau/nv04_state_tex.c +++ b/src/mesa/drivers/dri/nouveau/nv04_state_tex.c @@ -32,6 +32,7 @@ #include "nv_object.xml.h" #include "nv04_3d.xml.h" #include "nv04_driver.h" +#include "main/samplerobj.h" static uint32_t get_tex_format(struct gl_texture_image *ti) @@ -67,6 +68,7 @@ nv04_emit_tex_obj(struct gl_context *ctx, int emit) if (ctx->Texture.Unit[i]._ReallyEnabled) { struct gl_texture_object *t = ctx->Texture.Unit[i]._Current; struct gl_texture_image *ti = t->Image[0][t->BaseLevel]; + const struct gl_sampler_object *sa = _m...
2014 Jan 10
2
[PATCH] nouveau: add framebuffer validation callback
...continue; + + count++; + if (rba->Type != GL_TEXTURE) + continue; + + if (!drv->is_rt_format_supported( + rba->Renderbuffer->TexImage->TexFormat)) + goto err; + } + if (count > 1) + goto err; + + if (fb->Attachment[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...
2014 Jan 14
0
[PATCH] nouveau: add framebuffer validation callback
...XTURE) > + continue; > + > + if (!drv->is_rt_format_supported( > + rba->Renderbuffer->TexImage->TexFormat)) > + goto err; > + } > + if (count > 1) > + goto err; > + > + if (fb->Attachment[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 &gt...