summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-04-22 14:39:50 -0700
committerJason Ekstrand <[email protected]>2016-04-26 14:55:22 -0700
commit0551f3dfa4a14108dda58eceba3522c9071b2a90 (patch)
tree52bdbc461b5dc451d0f806bf036cdd32ee5e2159 /src/mesa
parentb3f08b5424f581092b375c335c722fced25fb40e (diff)
i965/blorp: Make all of brw_blorp.h accessible to C
Reviewed-by: Topi Pohjolainen <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.h b/src/mesa/drivers/dri/i965/brw_blorp.h
index 25c6179785a..c5c2c4e328d 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.h
+++ b/src/mesa/drivers/dri/i965/brw_blorp.h
@@ -57,9 +57,6 @@ void
brw_blorp_resolve_color(struct brw_context *brw,
struct intel_mipmap_tree *mt);
-#ifdef __cplusplus
-} /* end extern "C" */
-
/**
* Binding table indices used by BLORP.
*/
@@ -203,8 +200,8 @@ struct brw_blorp_wm_push_constants
};
/* Every 32 bytes of push constant data constitutes one GEN register. */
-const unsigned int BRW_BLORP_NUM_PUSH_CONST_REGS =
- sizeof(brw_blorp_wm_push_constants) / 32;
+static const unsigned int BRW_BLORP_NUM_PUSH_CONST_REGS =
+ sizeof(struct brw_blorp_wm_push_constants) / 32;
struct brw_blorp_prog_data
{
@@ -269,13 +266,13 @@ struct brw_blorp_blit_prog_key
/* MSAA layout that has been configured in the surface state for texturing
* from.
*/
- intel_msaa_layout tex_layout;
+ enum intel_msaa_layout tex_layout;
/* Actual number of samples per pixel in the source image. */
unsigned src_samples;
/* Actual MSAA layout used by the source image. */
- intel_msaa_layout src_layout;
+ enum intel_msaa_layout src_layout;
/* Number of samples per pixel that have been configured in the render
* target.
@@ -283,13 +280,13 @@ struct brw_blorp_blit_prog_key
unsigned rt_samples;
/* MSAA layout that has been configured in the render target. */
- intel_msaa_layout rt_layout;
+ enum intel_msaa_layout rt_layout;
/* Actual number of samples per pixel in the destination image. */
unsigned dst_samples;
/* Actual MSAA layout used by the destination image. */
- intel_msaa_layout dst_layout;
+ enum intel_msaa_layout dst_layout;
/* Type of the data to be read from the texture (one of
* BRW_REGISTER_TYPE_{UD,D,F}).
@@ -433,4 +430,6 @@ gen7_blorp_emit_primitive(struct brw_context *brw,
/** \} */
+#ifdef __cplusplus
+} /* end extern "C" */
#endif /* __cplusplus */