[Mesa-dev] [PATCH 12/13] i965/blorp: Make state setup C-safe
Jason Ekstrand
jason at jlekstrand.net
Fri Apr 22 23:19:19 UTC 2016
Previously they (very rarely) used C++isms that prevented them from being
compiled as C. As of this commit, they can be compiled as either C or C++.
---
src/mesa/drivers/dri/i965/gen6_blorp.cpp | 4 ++--
src/mesa/drivers/dri/i965/gen7_blorp.cpp | 2 +-
src/mesa/drivers/dri/i965/gen8_blorp.cpp | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/gen6_blorp.cpp b/src/mesa/drivers/dri/i965/gen6_blorp.cpp
index 120ec1d..dabe8b5 100644
--- a/src/mesa/drivers/dri/i965/gen6_blorp.cpp
+++ b/src/mesa/drivers/dri/i965/gen6_blorp.cpp
@@ -742,7 +742,7 @@ gen6_blorp_emit_constant_ps(struct brw_context *brw,
/* Make sure the push constants fill an exact integer number of
* registers.
*/
- assert(sizeof(brw_blorp_wm_push_constants) % 32 == 0);
+ assert(sizeof(struct brw_blorp_wm_push_constants) % 32 == 0);
/* There must be at least one register worth of push constant data. */
assert(BRW_BLORP_NUM_PUSH_CONST_REGS > 0);
@@ -971,7 +971,7 @@ gen6_blorp_emit_drawing_rectangle(struct brw_context *brw,
}
/* 3DSTATE_VIEWPORT_STATE_POINTERS */
-void
+static void
gen6_blorp_emit_viewport_state(struct brw_context *brw,
const struct brw_blorp_params *params)
{
diff --git a/src/mesa/drivers/dri/i965/gen7_blorp.cpp b/src/mesa/drivers/dri/i965/gen7_blorp.cpp
index 36d90b7..0dcdcf6 100644
--- a/src/mesa/drivers/dri/i965/gen7_blorp.cpp
+++ b/src/mesa/drivers/dri/i965/gen7_blorp.cpp
@@ -598,7 +598,7 @@ gen7_blorp_emit_constant_ps(struct brw_context *brw,
/* Make sure the push constants fill an exact integer number of
* registers.
*/
- assert(sizeof(brw_blorp_wm_push_constants) % 32 == 0);
+ assert(sizeof(struct brw_blorp_wm_push_constants) % 32 == 0);
/* There must be at least one register worth of push constant data. */
assert(BRW_BLORP_NUM_PUSH_CONST_REGS > 0);
diff --git a/src/mesa/drivers/dri/i965/gen8_blorp.cpp b/src/mesa/drivers/dri/i965/gen8_blorp.cpp
index 8e3eadc..8da51e1 100644
--- a/src/mesa/drivers/dri/i965/gen8_blorp.cpp
+++ b/src/mesa/drivers/dri/i965/gen8_blorp.cpp
@@ -599,7 +599,7 @@ gen8_blorp_emit_surface_states(struct brw_context *brw,
true /* is_render_target */);
if (params->src.mt) {
const struct brw_blorp_surface_info *surface = ¶ms->src;
- intel_mipmap_tree *mt = surface->mt;
+ struct intel_mipmap_tree *mt = surface->mt;
/* Textures are always sampled as 2D. */
const bool is_cube = mt->target == GL_TEXTURE_CUBE_MAP_ARRAY ||
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list