summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/rbug/rbug_objects.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/rbug/rbug_objects.h')
-rw-r--r--src/gallium/drivers/rbug/rbug_objects.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/rbug/rbug_objects.h b/src/gallium/drivers/rbug/rbug_objects.h
index 7f48c01b577..49c128d3d1a 100644
--- a/src/gallium/drivers/rbug/rbug_objects.h
+++ b/src/gallium/drivers/rbug/rbug_objects.h
@@ -47,6 +47,13 @@ struct rbug_resource
};
+enum rbug_shader_type
+{
+ RBUG_SHADER_GEOM,
+ RBUG_SHADER_VERTEX,
+ RBUG_SHADER_FRAGMENT,
+};
+
struct rbug_shader
{
struct rbug_list list;
@@ -56,6 +63,7 @@ struct rbug_shader
void *replaced_shader;
void *replaced_tokens;
+ enum rbug_shader_type type;
boolean disabled;
};
@@ -205,5 +213,14 @@ void
rbug_transfer_destroy(struct rbug_context *rb_context,
struct rbug_transfer *rb_transfer);
+void *
+rbug_shader_create(struct rbug_context *rb_context,
+ const struct pipe_shader_state *state,
+ void *result, enum rbug_shader_type type);
+
+void
+rbug_shader_destroy(struct rbug_context *rb_context,
+ struct rbug_shader *rb_shader);
+
#endif /* RBUG_OBJECTS_H */