intel/compiler: don't use a keyword struct for a class fs_reg
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Tue, 23 Jul 2019 11:48:58 +0000 (14:48 +0300)
committerEric Engestrom <eric@engestrom.ch>
Wed, 24 Jul 2019 13:26:42 +0000 (13:26 +0000)
warning: struct 'fs_reg' was previously declared as a class
Fixes: e64be391 ("intel/compiler: generalize the combine constants pass")
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
src/intel/compiler/brw_fs_combine_constants.cpp

index 8d16be4c4bb44cf95e7ba5665bc3d58aafb7224e..c12e0d62293eb1c5d4921fae15bb03631e7a67a6 100644 (file)
@@ -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: