diff options
author | Michal Krol <[email protected]> | 2010-03-12 14:37:36 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-03-12 14:38:23 +0100 |
commit | b8030c6561e019e079b5be2fe64ec804df4bfa03 (patch) | |
tree | e3bfe141407636ac9942fc3b890dc03ae5ef0ae4 /src/mesa/state_tracker/st_atom_pixeltransfer.c | |
parent | 08f89988c8738029c60e89c61c9da0522bd53087 (diff) |
st/mesa: Associate a sampler view with an st texture object.
Lazily create a sampler view when the texture is being bound
for the first time.
Diffstat (limited to 'src/mesa/state_tracker/st_atom_pixeltransfer.c')
-rw-r--r-- | src/mesa/state_tracker/st_atom_pixeltransfer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom_pixeltransfer.c b/src/mesa/state_tracker/st_atom_pixeltransfer.c index 0b2e3f53812..e766b3a9038 100644 --- a/src/mesa/state_tracker/st_atom_pixeltransfer.c +++ b/src/mesa/state_tracker/st_atom_pixeltransfer.c @@ -257,6 +257,8 @@ get_pixel_transfer_program(GLcontext *ctx, const struct state_key *key) /* create the colormap/texture now if not already done */ if (!st->pixel_xfer.pixelmap_texture) { st->pixel_xfer.pixelmap_texture = create_color_map_texture(ctx); + st->pixel_xfer.pixelmap_sampler_view = st_sampler_view_from_texture(ctx->st->pipe, + st->pixel_xfer.pixelmap_texture); } /* with a little effort, we can do four pixel map look-ups with |