From d5bf093cf9da323ce3ebb69c07834870441e0e38 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 14 Jun 2017 16:14:11 -0700 Subject: [PATCH] intel/compiler: Mark line, pln, and lrp as removed on Gen11+ Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_eu.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/intel/compiler/brw_eu.c b/src/intel/compiler/brw_eu.c index bc297a21b32..3646076a8e8 100644 --- a/src/intel/compiler/brw_eu.c +++ b/src/intel/compiler/brw_eu.c @@ -384,7 +384,8 @@ enum gen { GEN75 = (1 << 5), GEN8 = (1 << 6), GEN9 = (1 << 7), - GEN10 = (1 << 8), + GEN10 = (1 << 8), + GEN11 = (1 << 9), GEN_ALL = ~0 }; @@ -628,16 +629,16 @@ static const struct opcode_desc opcode_descs[128] = { }, /* Reserved 88 */ [BRW_OPCODE_LINE] = { - .name = "line", .nsrc = 2, .ndst = 1, .gens = GEN_ALL, + .name = "line", .nsrc = 2, .ndst = 1, .gens = GEN_LE(GEN10), }, [BRW_OPCODE_PLN] = { - .name = "pln", .nsrc = 2, .ndst = 1, .gens = GEN_GE(GEN45), + .name = "pln", .nsrc = 2, .ndst = 1, .gens = GEN_GE(GEN45) & GEN_LE(GEN10), }, [BRW_OPCODE_MAD] = { .name = "mad", .nsrc = 3, .ndst = 1, .gens = GEN_GE(GEN6), }, [BRW_OPCODE_LRP] = { - .name = "lrp", .nsrc = 3, .ndst = 1, .gens = GEN_GE(GEN6), + .name = "lrp", .nsrc = 3, .ndst = 1, .gens = GEN_GE(GEN6) & GEN_LE(GEN10), }, [93] = { .name = "madm", .nsrc = 3, .ndst = 1, .gens = GEN_GE(GEN8), @@ -662,6 +663,7 @@ gen_from_devinfo(const struct gen_device_info *devinfo) case 8: return GEN8; case 9: return GEN9; case 10: return GEN10; + case 11: return GEN11; default: unreachable("not reached"); } -- 2.30.2