summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-11-08 23:09:33 +0100
committerMarek Olšák <[email protected]>2011-11-09 00:18:53 +0100
commit1b375f8413d898a18c989c20d0dc16d3b1be33bc (patch)
tree3a3c220565ff1bba69264e674cca3158482aa064 /src/gallium/drivers/r600/r600.h
parent8187ad07546cae0ae91255c665315f86b03367a9 (diff)
r600g: cosmetic changes in query code
Mainly updating comments and removing one use of a magic number.
Diffstat (limited to 'src/gallium/drivers/r600/r600.h')
-rw-r--r--src/gallium/drivers/r600/r600.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h
index c38ea1b2a9a..715501d91d3 100644
--- a/src/gallium/drivers/r600/r600.h
+++ b/src/gallium/drivers/r600/r600.h
@@ -163,9 +163,6 @@ struct r600_range {
struct r600_block **blocks;
};
-/*
- * query
- */
struct r600_query {
u64 result;
/* The kind of query */
@@ -174,7 +171,8 @@ struct r600_query {
unsigned results_start;
/* Offset of the next free result after current query data */
unsigned results_end;
- /* Size of the result */
+ /* Size of the result in memory for both begin_query and end_query,
+ * this can be one or two numbers, or it could even be a size of a structure. */
unsigned result_size;
/* The buffer where query results are stored. It's used as a ring,
* data blocks for current query are stored sequentially from