[Mesa-dev] [PATCH 1/3] i965: silence android build warning
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Thu Jul 5 11:13:59 UTC 2018
mesa/drivers/dri/i965/genX_state_upload.c:2983:46: warning: implicit
conversion from enumeration type 'enum gl_logicop_mode' to different
enumeration type 'enum GEN4_3D_Logic_Op_Function' [-Wenum-conversion]
Introduced by 0c69db895f790a ("i965: Use the translated color logic op
from the context")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
src/mesa/drivers/dri/i965/genX_state_upload.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c
index 7fe12887030..844ecddb8a5 100644
--- a/src/mesa/drivers/dri/i965/genX_state_upload.c
+++ b/src/mesa/drivers/dri/i965/genX_state_upload.c
@@ -2980,7 +2980,7 @@ set_blend_entry_bits(struct brw_context *brw, BLEND_ENTRY_GENXML *entry, int i,
_mesa_enum_to_string(rb_type));
if (GEN_GEN >= 8 || rb_type == GL_UNSIGNED_NORMALIZED) {
entry->LogicOpEnable = true;
- entry->LogicOpFunction = ctx->Color._LogicOp;
+ entry->LogicOpFunction = (enum GENX(3D_Logic_Op_Function)) ctx->Color._LogicOp;
}
} else if (blend_enabled && !ctx->Color._AdvancedBlendMode
&& (GEN_GEN <= 5 || !integer)) {
--
2.18.0
More information about the mesa-dev
mailing list