summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-02-03 09:40:08 -0700
committerBrian Paul <brianp@vmware.com>2016-02-17 19:57:48 -0700
commit06d3b0a006f35dc232d512d09f45a6cb4f13cfdf (patch)
treed41ae0df74552ccf9e77cc0b73cfc1164c116eb3 /src/mesa/state_tracker/st_context.h
parentb26ddda12fe7dbb6a4e6af3b47c1e837cc7ebb03 (diff)
downloadexternal_mesa3d-06d3b0a006f35dc232d512d09f45a6cb4f13cfdf.zip
external_mesa3d-06d3b0a006f35dc232d512d09f45a6cb4f13cfdf.tar.gz
external_mesa3d-06d3b0a006f35dc232d512d09f45a6cb4f13cfdf.tar.bz2
st/mesa: new st_DrawAtlasBitmaps() function for drawing bitmap text
This basically saves the current pipeline state, sets up state for rendering, constructs a set of textured quads, renders, then restores the previous pipeline state. It shouldn't be hard to implement a similar function for non-gallium drives. With some code refactoring, the vertex definition code could probably be shared. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r--src/mesa/state_tracker/st_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
index 93da0e5..1701c61 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -205,6 +205,7 @@ struct st_context
struct {
struct pipe_rasterizer_state rasterizer;
struct pipe_sampler_state sampler;
+ struct pipe_sampler_state atlas_sampler;
enum pipe_format tex_format;
void *vs;
struct bitmap_cache *cache;