aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/state_tracker/st_atom_pixeltransfer.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-08-05 08:12:52 +0200
committermarha <marha@users.sourceforge.net>2011-08-05 08:12:52 +0200
commitd105412503ea250e07d3cb008f10f60e6e48bf8a (patch)
tree8601f1f1f77b22249cbfdecb20b52aa8bc69bd5a /mesalib/src/mesa/state_tracker/st_atom_pixeltransfer.c
parent9b009a8bdb31d08e3d07f68416373b9aa6f85724 (diff)
downloadvcxsrv-d105412503ea250e07d3cb008f10f60e6e48bf8a.tar.gz
vcxsrv-d105412503ea250e07d3cb008f10f60e6e48bf8a.tar.bz2
vcxsrv-d105412503ea250e07d3cb008f10f60e6e48bf8a.zip
mesa pixman git update 5 aug 2011
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_atom_pixeltransfer.c')
-rw-r--r--mesalib/src/mesa/state_tracker/st_atom_pixeltransfer.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_atom_pixeltransfer.c b/mesalib/src/mesa/state_tracker/st_atom_pixeltransfer.c
index 1f833d282..12b5bc5ba 100644
--- a/mesalib/src/mesa/state_tracker/st_atom_pixeltransfer.c
+++ b/mesalib/src/mesa/state_tracker/st_atom_pixeltransfer.c
@@ -84,26 +84,6 @@ make_state_key(struct gl_context *ctx, struct state_key *key)
}
-static struct pipe_resource *
-create_color_map_texture(struct gl_context *ctx)
-{
- struct st_context *st = st_context(ctx);
- struct pipe_context *pipe = st->pipe;
- struct pipe_resource *pt;
- enum pipe_format format;
- const uint texSize = 256; /* simple, and usually perfect */
-
- /* find an RGBA texture format */
- format = st_choose_format(pipe->screen, GL_RGBA, GL_NONE, GL_NONE,
- PIPE_TEXTURE_2D, 0, PIPE_BIND_SAMPLER_VIEW);
-
- /* create texture for color map/table */
- pt = st_texture_create(st, PIPE_TEXTURE_2D, format, 0,
- texSize, texSize, 1, 1, PIPE_BIND_SAMPLER_VIEW);
- return pt;
-}
-
-
/**
* Update the pixelmap texture with the contents of the R/G/B/A pixel maps.
*/
@@ -219,7 +199,7 @@ get_pixel_transfer_program(struct gl_context *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_texture = st_create_color_map_texture(ctx);
st->pixel_xfer.pixelmap_sampler_view =
st_create_texture_sampler_view(st->pipe,
st->pixel_xfer.pixelmap_texture);