search for: glvoid

Displaying 4 results from an estimated 4 matches for "glvoid".

2014 Sep 13
2
[PATCH] nouveau: fix glCompressedTexImage
...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_pixelstore(dims, ti->TexFormat, + width, height, depth, + &ctx->Unpack, &store); + + src += store.SkipBytes; + + assert(store.CopySlices == 1); + + /* copy...
2014 Sep 14
1
[PATCH] nouveau: fix glCompressedTexImage
...e_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_pixelstore(dims, ti->TexFormat, >> + width, height, depth, >> +...
2014 Sep 14
0
[PATCH] nouveau: fix glCompressedTexImage
...veau_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_pixelstore(dims, ti->TexFormat, > + width, height, depth, > + &ctx->Unpack, &store); > + > + src += store.SkipBytes; &...
2012 Apr 06
1
[WIP PATCH] dri/nouveau: Add S3TC support for nv20.
....pitch = pitch, }; offset += size; @@ -458,8 +494,10 @@ nouveau_teximage(struct gl_context *ctx, GLint dims, struct gl_texture_image *ti, GLint internalFormat, GLint width, GLint height, GLint depth, GLint border, + GLsizei imageSize, GLenum format, GLenum type, const GLvoid *pixels, - const struct gl_pixelstore_attrib *packing) + const struct gl_pixelstore_attrib *packing, + GLboolean compressed) { struct gl_texture_object *t = ti->TexObject; const GLuint level = ti->Level; @@ -472,9 +510,16 @@ nouveau_teximage(struct gl_context *ctx, GLint dims,...