[Mesa-dev] [PATCH 14/17] intel/compiler: Mark line, pln, and lrp as removed on Gen11+
Kenneth Graunke
kenneth at whitecape.org
Sat Feb 24 00:24:08 UTC 2018
On Tuesday, February 20, 2018 9:15:21 PM PST Matt Turner wrote:
> ---
> 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");
> }
>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180223/20dbf917/attachment.sig>
More information about the mesa-dev
mailing list