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
committerBen Skeggs <skeggsb@gmail.com>2008-02-15 13:51:11 +1100
commitaa31fe3b54592b1c017e0389de990040f2ad18f4 (patch)
treec1d47555e916269736911f08a419822a3d9e6e84 /src/mesa/state_tracker/st_context.h
parent7057a031f196f677366d0d397951aa87932ac887 (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;
};