summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_context.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-12 16:06:51 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-02-12 16:06:51 -0700
commit6d53b8f42349c507e7184aa567a4b2a4fc7b037f (patch)
tree7eab622bc8eac05929888e44c6217d3d654bc28c /src/mesa/state_tracker/st_context.h
parentcf949411221211a278c169e917756aa4f9aba49f (diff)
gallium: move gen-mipmap global/static vars into st_context
This fixes potential problems with multi-context programs.
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r--src/mesa/state_tracker/st_context.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
index a756055898..59d1590f05 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -166,6 +166,15 @@ struct st_context
struct st_fragment_program *combined_prog;
} bitmap;
+ /** For gen/render mipmap feature */
+ struct {
+ void *blend_cso;
+ void *depthstencil_cso;
+ void *rasterizer_cso;
+ struct st_fragment_program *stfp;
+ struct st_vertex_program *stvp;
+ } gen_mipmap;
+
struct cso_cache *cache;
};