From: Andrii Simiklit Date: Tue, 23 Jul 2019 11:48:58 +0000 (+0300) Subject: intel/compiler: don't use a keyword struct for a class fs_reg X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=fa2fc68de132317ce63d407cef34e266c1d3e838 intel/compiler: don't use a keyword struct for a class fs_reg warning: struct 'fs_reg' was previously declared as a class Fixes: e64be391 ("intel/compiler: generalize the combine constants pass") Reviewed-by: Eric Engestrom Reviewed-by: Matt Turner Signed-off-by: Andrii Simiklit --- diff --git a/src/intel/compiler/brw_fs_combine_constants.cpp b/src/intel/compiler/brw_fs_combine_constants.cpp index 8d16be4c4bb..c12e0d62293 100644 --- a/src/intel/compiler/brw_fs_combine_constants.cpp +++ b/src/intel/compiler/brw_fs_combine_constants.cpp @@ -289,7 +289,7 @@ get_alignment_for_imm(const struct imm *imm) } static bool -needs_negate(const struct fs_reg *reg, const struct imm *imm) +needs_negate(const fs_reg *reg, const struct imm *imm) { switch (reg->type) { case BRW_REGISTER_TYPE_DF: