gallium: Drop pipe_texture->cpp and pipe_surface->cpp.

The chars-per-pixel concept falls apart with compressed and yuv images,
where more than one pixel are coded in a single data block.
This commit is contained in:
José Fonseca
2008-06-27 19:37:56 +09:00
parent 05cfb4c4b8
commit 4ddd659679
34 changed files with 510 additions and 482 deletions

View File

@@ -341,9 +341,9 @@ make_bitmap_texture(GLcontext *ctx, GLsizei width, GLsizei height,
dest = screen->surface_map(screen, surface, PIPE_BUFFER_USAGE_CPU_WRITE);
/* Put image into texture surface */
memset(dest, 0xff, height * surface->pitch);
memset(dest, 0xff, height * surface->stride);
unpack_bitmap(ctx->st, 0, 0, width, height, unpack, bitmap,
dest, surface->pitch);
dest, surface->stride);
_mesa_unmap_bitmap_pbo(ctx, unpack);