diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-06-30 11:10:33 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-06-30 11:10:33 +0100 |
commit | a2311400fe9385c39a278eb624dc60a0a635c838 (patch) | |
tree | a9dae74372cb84302bca5c5bd2cfd8e42fcf3b84 /src/gallium/drivers/llvmpipe/lp_setup_context.h | |
parent | 4ca3e0d84ba21ac4e37ecea0eed05a0bfcb3f098 (diff) |
llvmpipe: Add a new scene state to describe scenes which only have state changes.
It's a rare condition, but it may happen if all primitives are
clipped/culled.
For now we just do a no-op rasterization, but we could bypass it.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_context.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_context.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_context.h b/src/gallium/drivers/llvmpipe/lp_setup_context.h index c8b8a2480b..8f4e00f073 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_context.h +++ b/src/gallium/drivers/llvmpipe/lp_setup_context.h @@ -101,9 +101,10 @@ struct lp_setup_context } clear; enum setup_state { - SETUP_FLUSHED, - SETUP_CLEARED, - SETUP_ACTIVE + SETUP_FLUSHED, /**< scene is null */ + SETUP_EMPTY, /**< scene exists but has only state changes */ + SETUP_CLEARED, /**< scene exists but has only clears */ + SETUP_ACTIVE /**< scene exists and has at least one draw/query */ } state; struct { |