swr: automake: silence the python invocation
[mesa.git] / src / gallium / drivers / rbug / rbug_context.h
index 0a41bbd104729af9c3d7e68f81482a5698e2a266..e99f6edc5235e1e807e745d436bbfd1aa0c32087 100644 (file)
@@ -46,17 +46,11 @@ struct rbug_context {
 
    /* current state */
    struct {
-      struct rbug_shader *fs;
-      struct rbug_shader *vs;
-      struct rbug_shader *gs;
+      struct rbug_shader *shader[PIPE_SHADER_TYPES];
 
-      struct rbug_sampler_view *fs_views[PIPE_MAX_SAMPLERS];
-      struct rbug_resource *fs_texs[PIPE_MAX_SAMPLERS];
-      unsigned num_fs_views;
-
-      struct rbug_sampler_view *vs_views[PIPE_MAX_SAMPLERS];
-      struct rbug_resource *vs_texs[PIPE_MAX_SAMPLERS];
-      unsigned num_vs_views;
+      struct rbug_sampler_view *views[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_SAMPLER_VIEWS];
+      struct rbug_resource *texs[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_SAMPLER_VIEWS];
+      unsigned num_views[PIPE_SHADER_TYPES];
 
       unsigned nr_cbufs;
       struct rbug_resource *cbufs[PIPE_MAX_COLOR_BUFS];
@@ -71,8 +65,7 @@ struct rbug_context {
    int draw_blocked;
 
    struct {
-      struct rbug_shader *fs;
-      struct rbug_shader *vs;
+      struct rbug_shader *shader[PIPE_SHADER_TYPES];
 
       struct rbug_resource *texture;
       struct rbug_resource *surf;
@@ -86,7 +79,7 @@ struct rbug_context {
    struct rbug_list shaders;
 };
 
-static INLINE struct rbug_context *
+static inline struct rbug_context *
 rbug_context(struct pipe_context *pipe)
 {
    return (struct rbug_context *)pipe;