From e08ec89a195111c95bf91b636e301c81900a5f89 Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Thu, 9 Jul 2020 15:00:21 -0700 Subject: [PATCH] intel/ehl: Use GEN11_URB_MIN_MAX_ENTRIES in device info Signed-off-by: Anuj Phogat Reviewed-by: Lionel Landwerlin --- src/intel/dev/gen_device_info.c | 44 +++------------------------------ 1 file changed, 4 insertions(+), 40 deletions(-) diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c index e7c7395cefd..38caf699bde 100644 --- a/src/intel/dev/gen_device_info.c +++ b/src/intel/dev/gen_device_info.c @@ -914,16 +914,7 @@ static const struct gen_device_info gen_device_info_ehl_7 = { GEN11_FEATURES(1, 1, subslices(4), 4), .is_elkhartlake = true, .urb = { - .min_entries = { - [MESA_SHADER_VERTEX] = 64, - [MESA_SHADER_TESS_EVAL] = 34, - }, - .max_entries = { - [MESA_SHADER_VERTEX] = 2384, - [MESA_SHADER_TESS_CTRL] = 1032, - [MESA_SHADER_TESS_EVAL] = 2384, - [MESA_SHADER_GEOMETRY] = 1032, - }, + GEN11_URB_MIN_MAX_ENTRIES, }, .disable_ccs_repack = true, .simulator_id = 28, @@ -933,16 +924,7 @@ static const struct gen_device_info gen_device_info_ehl_6 = { GEN11_FEATURES(1, 1, subslices(4), 4), .is_elkhartlake = true, .urb = { - .min_entries = { - [MESA_SHADER_VERTEX] = 64, - [MESA_SHADER_TESS_EVAL] = 34, - }, - .max_entries = { - [MESA_SHADER_VERTEX] = 2384, - [MESA_SHADER_TESS_CTRL] = 1032, - [MESA_SHADER_TESS_EVAL] = 2384, - [MESA_SHADER_GEOMETRY] = 1032, - }, + GEN11_URB_MIN_MAX_ENTRIES, }, .disable_ccs_repack = true, .num_eu_per_subslice = 6, @@ -953,16 +935,7 @@ static const struct gen_device_info gen_device_info_ehl_5 = { GEN11_FEATURES(1, 1, subslices(4), 4), .is_elkhartlake = true, .urb = { - .min_entries = { - [MESA_SHADER_VERTEX] = 64, - [MESA_SHADER_TESS_EVAL] = 34, - }, - .max_entries = { - [MESA_SHADER_VERTEX] = 2384, - [MESA_SHADER_TESS_CTRL] = 1032, - [MESA_SHADER_TESS_EVAL] = 2384, - [MESA_SHADER_GEOMETRY] = 1032, - }, + GEN11_URB_MIN_MAX_ENTRIES, }, .disable_ccs_repack = true, .num_eu_per_subslice = 4, @@ -973,16 +946,7 @@ static const struct gen_device_info gen_device_info_ehl_4 = { GEN11_FEATURES(1, 1, subslices(2), 4), .is_elkhartlake = true, .urb = { - .min_entries = { - [MESA_SHADER_VERTEX] = 64, - [MESA_SHADER_TESS_EVAL] = 34, - }, - .max_entries = { - [MESA_SHADER_VERTEX] = 2384, - [MESA_SHADER_TESS_CTRL] = 1032, - [MESA_SHADER_TESS_EVAL] = 2384, - [MESA_SHADER_GEOMETRY] = 1032, - }, + GEN11_URB_MIN_MAX_ENTRIES, }, .disable_ccs_repack = true, .num_eu_per_subslice =4, -- 2.30.2