nvc0: fix valid range for shader buffers
[mesa.git] / src / gallium / drivers / nouveau / nvc0 / nvc0_query.h
index c4f0cb0ec6ef776f12452592d6c9450f1109bd05..a887b2205570bafd3e2067b340bfa754fc5652c7 100644 (file)
@@ -14,6 +14,13 @@ struct nvc0_query_funcs {
    void (*end_query)(struct nvc0_context *, struct nvc0_query *);
    boolean (*get_query_result)(struct nvc0_context *, struct nvc0_query *,
                                boolean, union pipe_query_result *);
+   void (*get_query_result_resource)(struct nvc0_context *nvc0,
+                                     struct nvc0_query *q,
+                                     boolean wait,
+                                     enum pipe_query_value_type result_type,
+                                     int index,
+                                     struct pipe_resource *resource,
+                                     unsigned offset);
 };
 
 struct nvc0_query {
@@ -31,8 +38,9 @@ nvc0_query(struct pipe_query *pipe)
 /*
  * Driver queries groups:
  */
-#define NVC0_QUERY_MP_COUNTER_GROUP 0
-#define NVC0_SW_QUERY_DRV_STAT_GROUP 1
+#define NVC0_HW_SM_QUERY_GROUP       0
+#define NVC0_HW_METRIC_QUERY_GROUP   1
+#define NVC0_SW_QUERY_DRV_STAT_GROUP 2
 
 void nvc0_init_query_functions(struct nvc0_context *);