summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_context.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-10-14 16:53:12 +1000
committerDave Airlie <airlied@redhat.com>2009-10-14 16:53:12 +1000
commitc1bee7bdea470b6b5dcebef9aacc8fe4feca687c (patch)
treed58eb285c84f7b9510565be37c5df0f742fd679d /src/gallium/drivers/r300/r300_context.h
parent210481ae16e966865dcf9f1fd5f5dfabf4dc28bc (diff)
r300g: fixup arb occulsion query support.
1: add rv530 support - num z pipes cap - add proper start/finish query options for rv530 2: convert to use linked list properly. 3: add flushing required check. 4: initial Z top disabling support. TODO: make it actually work on my rv530.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r--src/gallium/drivers/r300/r300_context.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h
index 086633f732..9b0094b63c 100644
--- a/src/gallium/drivers/r300/r300_context.h
+++ b/src/gallium/drivers/r300/r300_context.h
@@ -172,6 +172,8 @@ struct r300_query {
unsigned int count;
/* The offset of this query into the query buffer, in bytes. */
unsigned offset;
+ /* if we've flushed the query */
+ boolean flushed;
/* Linked list members. */
struct r300_query* prev;
struct r300_query* next;
@@ -237,7 +239,7 @@ struct r300_context {
/* Occlusion query buffer. */
struct pipe_buffer* oqbo;
/* Query list. */
- struct r300_query* query_list;
+ struct r300_query query_list;
/* Various CSO state objects. */
/* Blend state. */