[Mesa-dev] [PATCH 12/14] i965/blorp/gen7: Expose state setup applicable to gen8

Topi Pohjolainen topi.pohjolainen at intel.com
Thu Apr 23 11:18:26 PDT 2015


Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
 src/mesa/drivers/dri/i965/brw_blorp.h    | 36 ++++++++++++++++++++++++++++++++
 src/mesa/drivers/dri/i965/gen7_blorp.cpp | 20 +++++++++---------
 2 files changed, 46 insertions(+), 10 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_blorp.h b/src/mesa/drivers/dri/i965/brw_blorp.h
index 12b4133..750ec5f 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.h
+++ b/src/mesa/drivers/dri/i965/brw_blorp.h
@@ -516,6 +516,42 @@ void
 gen6_blorp_emit_drawing_rectangle(struct brw_context *brw,
                                   const brw_blorp_params *params);
 
+void
+gen7_blorp_emit_urb_config(struct brw_context *brw);
+
+void
+gen7_blorp_emit_blend_state_pointer(struct brw_context *brw,
+                                    uint32_t cc_blend_state_offset);
+
+void
+gen7_blorp_emit_cc_state_pointer(struct brw_context *brw,
+                                 uint32_t cc_state_offset);
+
+void
+gen7_blorp_emit_cc_viewport(struct brw_context *brw);
+
+void
+gen7_blorp_emit_te_disable(struct brw_context *brw);
+
+void
+gen7_blorp_emit_binding_table_pointers_ps(struct brw_context *brw,
+                                          uint32_t wm_bind_bo_offset);
+
+void
+gen7_blorp_emit_clear_params(struct brw_context *brw,
+                             const brw_blorp_params *params);
+
+void
+gen7_blorp_emit_constant_ps(struct brw_context *brw,
+                            uint32_t wm_push_const_offset);
+
+void
+gen7_blorp_emit_constant_ps_disable(struct brw_context *brw);
+
+void
+gen7_blorp_emit_primitive(struct brw_context *brw,
+                          const brw_blorp_params *params);
+
 /** \} */
 
 #endif /* __cplusplus */
diff --git a/src/mesa/drivers/dri/i965/gen7_blorp.cpp b/src/mesa/drivers/dri/i965/gen7_blorp.cpp
index d41d592..472e12a 100644
--- a/src/mesa/drivers/dri/i965/gen7_blorp.cpp
+++ b/src/mesa/drivers/dri/i965/gen7_blorp.cpp
@@ -47,7 +47,7 @@
  *     programmed in order for the programming of this state to be
  *     valid.
  */
-static void
+void
 gen7_blorp_emit_urb_config(struct brw_context *brw)
 {
    const unsigned urb_size =
@@ -72,7 +72,7 @@ gen7_blorp_emit_urb_config(struct brw_context *brw)
 
 
 /* 3DSTATE_BLEND_STATE_POINTERS */
-static void
+void
 gen7_blorp_emit_blend_state_pointer(struct brw_context *brw,
                                     uint32_t cc_blend_state_offset)
 {
@@ -84,7 +84,7 @@ gen7_blorp_emit_blend_state_pointer(struct brw_context *brw,
 
 
 /* 3DSTATE_CC_STATE_POINTERS */
-static void
+void
 gen7_blorp_emit_cc_state_pointer(struct brw_context *brw,
                                  uint32_t cc_state_offset)
 {
@@ -94,7 +94,7 @@ gen7_blorp_emit_cc_state_pointer(struct brw_context *brw,
    ADVANCE_BATCH();
 }
 
-static void
+void
 gen7_blorp_emit_cc_viewport(struct brw_context *brw)
 {
    struct brw_cc_viewport *ccv;
@@ -280,7 +280,7 @@ gen7_blorp_emit_hs_disable(struct brw_context *brw)
  *
  * Disable the tesselation engine.
  */
-static void
+void
 gen7_blorp_emit_te_disable(struct brw_context *brw)
 {
    BEGIN_BATCH(4);
@@ -567,7 +567,7 @@ gen7_blorp_emit_ps_config(struct brw_context *brw,
 }
 
 
-static void
+void
 gen7_blorp_emit_binding_table_pointers_ps(struct brw_context *brw,
                                           uint32_t wm_bind_bo_offset)
 {
@@ -578,7 +578,7 @@ gen7_blorp_emit_binding_table_pointers_ps(struct brw_context *brw,
 }
 
 
-static void
+void
 gen7_blorp_emit_constant_ps(struct brw_context *brw,
                             uint32_t wm_push_const_offset)
 {
@@ -605,7 +605,7 @@ gen7_blorp_emit_constant_ps(struct brw_context *brw,
    ADVANCE_BATCH();
 }
 
-static void
+void
 gen7_blorp_emit_constant_ps_disable(struct brw_context *brw)
 {
    BEGIN_BATCH(7);
@@ -754,7 +754,7 @@ gen7_blorp_emit_depth_disable(struct brw_context *brw)
  *    with the other Depth/Stencil state commands(i.e.  3DSTATE_DEPTH_BUFFER,
  *    3DSTATE_STENCIL_BUFFER, or 3DSTATE_HIER_DEPTH_BUFFER).
  */
-static void
+void
 gen7_blorp_emit_clear_params(struct brw_context *brw,
                              const brw_blorp_params *params)
 {
@@ -767,7 +767,7 @@ gen7_blorp_emit_clear_params(struct brw_context *brw,
 
 
 /* 3DPRIMITIVE */
-static void
+void
 gen7_blorp_emit_primitive(struct brw_context *brw,
                           const brw_blorp_params *params)
 {
-- 
1.9.3



More information about the mesa-dev mailing list