Displaying 4 results from an estimated 4 matches for "_mesa_texstore".
2014 Sep 13
2
[PATCH] nouveau: fix glCompressedTexImage
...e.TotalBytesPerRow;
+ }
+}
+
+static void
nouveau_teximage(struct gl_context *ctx, GLint dims,
struct gl_texture_image *ti,
GLsizei imageSize,
@@ -451,13 +476,19 @@ nouveau_teximage(struct gl_context *ctx, GLint dims,
GL_MAP_WRITE_BIT,
&map, &row_stride);
- ret = _mesa_texstore(ctx, dims, ti->_BaseFormat,
- ti->TexFormat,
- row_stride,
- &map,
- ti->Width, ti->Height, depth,
- format, type, pixels, packing);
- assert(ret);
+ if (compressed) {
+ nouveau_compressed_copy(ctx, dims, ti,
+ ti->Width, ti->He...
2014 Sep 14
1
[PATCH] nouveau: fix glCompressedTexImage
...GLsizei imageSize,
>> @@ -451,13 +476,19 @@ nouveau_teximage(struct gl_context *ctx, GLint dims,
>> GL_MAP_WRITE_BIT,
>> &map, &row_stride);
>>
>> - ret = _mesa_texstore(ctx, dims, ti->_BaseFormat,
>> - ti->TexFormat,
>> - row_stride,
>> - &map,
>> - ti->Width, ti->Height, depth,
>> -...
2014 Sep 14
0
[PATCH] nouveau: fix glCompressedTexImage
...d
> nouveau_teximage(struct gl_context *ctx, GLint dims,
> struct gl_texture_image *ti,
> GLsizei imageSize,
> @@ -451,13 +476,19 @@ nouveau_teximage(struct gl_context *ctx, GLint dims,
> GL_MAP_WRITE_BIT,
> &map, &row_stride);
>
> - ret = _mesa_texstore(ctx, dims, ti->_BaseFormat,
> - ti->TexFormat,
> - row_stride,
> - &map,
> - ti->Width, ti->Height, depth,
> - format, type, pixels, packing);
> - assert(ret);
> + if (compressed) {
> + nouveau_compressed_copy(ctx,...
2012 Apr 06
1
[WIP PATCH] dri/nouveau: Add S3TC support for nv20.
...exSubImage");
+ } else {
+ pixels = _mesa_validate_pbo_teximage(ctx,
+ dims, width, height, depth, format, type,
+ pixels, packing, "glTexSubImage");
+ }
+
if (pixels) {
nouveau_teximage_map(ctx, ti, GL_MAP_WRITE_BIT,
xoffset, yoffset, width, height);
- ret = _mesa_texstore(ctx, 3, ti->_BaseFormat, ti->TexFormat,
+ ret = _mesa_texstore(ctx, dims, ti->_BaseFormat, ti->TexFormat,
s->pitch,
&nti->base.Map,
width, height, depth,
@@ -591,8 +657,8 @@ nouveau_texsubim...