gallium: new pipe->texture_update() function

Called whenever texture data is changed (glTexImage, glTexSubImage,
glCopyTexSubImage, etc).
This commit is contained in:
Brian
2008-02-20 13:24:52 -07:00
parent 1d45787d4a
commit d5640a2dbd
16 changed files with 104 additions and 28 deletions

View File

@@ -206,6 +206,14 @@ struct pipe_context {
void (*texture_release)(struct pipe_context *pipe,
struct pipe_texture **pt);
/**
* Called when texture data is changed.
* Note: we could pass some hints about which mip levels or cube faces
* have changed...
*/
void (*texture_update)(struct pipe_context *pipe,
struct pipe_texture *texture);
/** Get a surface which is a "view" into a texture */
struct pipe_surface *(*get_tex_surface)(struct pipe_context *pipe,
struct pipe_texture *texture,