aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_blorp.h
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2012-04-30 14:29:35 -0700
committerPaul Berry <[email protected]>2012-05-15 15:09:22 -0700
commit586b3894744819071bb1ad56383e3c0d9e5b7e1f (patch)
tree65f6cb050c938e6079373d679bf1e303813113ac /src/mesa/drivers/dri/i965/brw_blorp.h
parent2c5510b71b6348b686e76ecc2c34195080d566f4 (diff)
i965: split gen{6,7}_blorp_exec functions into manageable chunks.
This patch splits up the gen6_blorp_exec and gen7_blorp_exec functions, which were very long, into simple component functions. With a few exceptions, there is one function per state packet. This will allow blit functionality to be added without significantly complicating the code. Reviewed-by: Chad Versace <[email protected]> v2: Rename the functions gen{6,7}_emit_wm_disable() to gen{6,7}_emit_wm_config() (since the WM is not actually disabled during HiZ ops; it simply doesn't have a program). Also, on gen7, split out the configration of 3DSTATE_PS to a separate function gen7_emit_ps_config().
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.h b/src/mesa/drivers/dri/i965/brw_blorp.h
index d250db5eb1e..c1c8334f6b5 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.h
+++ b/src/mesa/drivers/dri/i965/brw_blorp.h
@@ -108,6 +108,10 @@ void
gen6_blorp_init(struct brw_context *brw);
void
+gen6_blorp_compute_tile_masks(const brw_blorp_params *params,
+ uint32_t *tile_mask_x, uint32_t *tile_mask_y);
+
+void
gen6_blorp_emit_batch_head(struct brw_context *brw,
const brw_blorp_params *params);
@@ -116,7 +120,22 @@ gen6_blorp_emit_vertices(struct brw_context *brw,
const brw_blorp_params *params);
void
+gen6_blorp_emit_vs_disable(struct brw_context *brw,
+ const brw_blorp_params *params);
+
+uint32_t
gen6_blorp_emit_depth_stencil_state(struct brw_context *brw,
- const brw_blorp_params *params,
- uint32_t *out_offset);
+ const brw_blorp_params *params);
+
+void
+gen6_blorp_emit_gs_disable(struct brw_context *brw,
+ const brw_blorp_params *params);
+
+void
+gen6_blorp_emit_clip_disable(struct brw_context *brw,
+ const brw_blorp_params *params);
+
+void
+gen6_blorp_emit_drawing_rectangle(struct brw_context *brw,
+ const brw_blorp_params *params);
/** \} */