summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.h
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2017-04-25 14:27:51 -0600
committerBrian Paul <[email protected]>2017-04-26 11:37:59 -0600
commitdc30ac5c24d662718b6aa4fbc9917aa34ba55160 (patch)
tree6d8a7b02d0c52b54f114dd333f9473404cc20a91 /src/gallium/drivers/svga/svga_context.h
parentf482493dcff6fc9141ba703c9d64ff61d374072c (diff)
svga: Move rendertarget view related fields to hw_clear state
This patch moves the rendertarget view related fields from svga_hw_draw_state to svga_hw_clear_state where all the hw framebuffer related state resides. 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.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index 3789a46bf50..a214f2cf902 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -324,6 +324,11 @@ struct svga_hw_clear_state
struct pipe_framebuffer_state framebuffer;
struct svga_prescale prescale;
+
+ /* VGPU10 state */
+ unsigned num_rendertargets;
+ struct pipe_surface *rtv[SVGA3D_MAX_RENDER_TARGETS];
+ struct pipe_surface *dsv;
};
struct svga_hw_view_state
@@ -393,10 +398,6 @@ struct svga_hw_draw_state
struct pipe_sampler_view
*sampler_views[PIPE_SHADER_TYPES][PIPE_MAX_SAMPLERS];
- unsigned num_rendertargets;
- struct pipe_surface *rtv[SVGA3D_MAX_RENDER_TARGETS];
- struct pipe_surface *dsv;
-
/* used for rebinding */
unsigned default_constbuf_size[PIPE_SHADER_TYPES];