gallium: add condition parameter to render_condition
[mesa.git] / src / gallium / drivers / nv50 / nv50_context.h
index 5da0473f0e62d66cfaf13dca810c6713708eeb2d..0a83131fefd736b0f044618f82237a8bdb5407be 100644 (file)
 #define NV50_CB_AUX 127
 
 
+struct nv50_blitctx;
+
+boolean nv50_blitctx_create(struct nv50_context *);
+
 struct nv50_context {
    struct nouveau_context base;
 
@@ -97,6 +101,7 @@ struct nv50_context {
       boolean flushed;
       boolean rasterizer_discard;
       uint8_t tls_required;
+      boolean new_tls_space;
       uint8_t num_vtxbufs;
       uint8_t num_vtxelts;
       uint8_t num_textures[3];
@@ -150,6 +155,12 @@ struct nv50_context {
 
    boolean vbo_push_hint;
 
+   struct pipe_query *cond_query;
+   boolean cond_cond;
+   uint cond_mode;
+
+   struct nv50_blitctx *blit;
+
 #ifdef NV50_WITH_DRAW_MODULE
    struct draw_context *draw;
 #endif
@@ -231,6 +242,12 @@ extern void nv50_init_surface_functions(struct nv50_context *);
 void nv50_validate_textures(struct nv50_context *);
 void nv50_validate_samplers(struct nv50_context *);
 
+struct pipe_sampler_view *
+nv50_create_texture_view(struct pipe_context *,
+                         struct pipe_resource *,
+                         const struct pipe_sampler_view *,
+                         uint32_t flags,
+                         enum pipe_texture_target);
 struct pipe_sampler_view *
 nv50_create_sampler_view(struct pipe_context *,
                          struct pipe_resource *,