Displaying 1 result from an estimated 1 matches for "nouveau_format_get_nblocksx".
Did you mean:
nouveau_format_get_nblocksy
2012 Apr 06
1
[WIP PATCH] dri/nouveau: Add S3TC support for nv20.
...Heuristic: use a bounce buffer to pipeline
* teximage transfers.
@@ -104,7 +105,8 @@ nouveau_teximage_map(struct gl_context *ctx, struct gl_texture_image *ti,
nti->transfer.x = x;
nti->transfer.y = y;
- nti->base.Map = nouveau_get_scratch(ctx, st->pitch * h,
+ size = nouveau_format_get_nblocksx(st->format, h) * st->pitch;
+ nti->base.Map = nouveau_get_scratch(ctx, size,
&st->bo, &st->offset);
} else {
@@ -120,7 +122,10 @@ nouveau_teximage_map(struct gl_context *ctx, struct gl_texture_image *ti,
assert(!ret);
}
- nti->base.Map = s...