summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.h
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2017-03-22 10:46:54 -0700
committerBrian Paul <[email protected]>2017-04-07 13:46:43 -0600
commit02c9bf2d54cc166882a10a5b54b14dda832b4ecd (patch)
treed621a916b9a42eaccf6ed9fc3b6d7b4754fc3b48 /src/gallium/drivers/svga/svga_context.h
parenta421d45e61c56c48bcc0fed19b15b5081c8f32d3 (diff)
svga: add the has_backed_views flag
The new has_backed_views flag specifies if any of the render target views or depth stencil view is a backing surface view. The flag is used in svga_propagate_rendertargets() so it can return early if there is no surface to propagate. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r--src/gallium/drivers/svga/svga_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index 2b95a787870..3789a46bf50 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -401,6 +401,7 @@ struct svga_hw_draw_state
unsigned default_constbuf_size[PIPE_SHADER_TYPES];
boolean rasterizer_discard; /* set if rasterization is disabled */
+ boolean has_backed_views; /* set if any of the rtv/dsv is a backed surface view */
};