summaryrefslogtreecommitdiffstats
path: root/src/intel/common/gen_device_info.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-11-15 00:07:35 -0800
committerKenneth Graunke <[email protected]>2016-11-19 11:39:56 -0800
commit639af2a7c637e39b2d30f9891f67da76af50cab7 (patch)
tree45df5ac5ead5c0c94c02062dc984ea69df21b588 /src/intel/common/gen_device_info.c
parent58c09e72b15768524e5b76b55eae506391b663d8 (diff)
intel: Convert devinfo->urb.min_*_entries into an array.
Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/common/gen_device_info.c')
-rw-r--r--src/intel/common/gen_device_info.c86
1 files changed, 58 insertions, 28 deletions
diff --git a/src/intel/common/gen_device_info.c b/src/intel/common/gen_device_info.c
index bf5f05dc18a..42677516088 100644
--- a/src/intel/common/gen_device_info.c
+++ b/src/intel/common/gen_device_info.c
@@ -81,7 +81,9 @@ static const struct gen_device_info gen_device_info_snb_gt1 = {
.max_wm_threads = 40,
.urb = {
.size = 32,
- .min_vs_entries = 24,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 24,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 256,
[MESA_SHADER_GEOMETRY] = 256,
@@ -103,7 +105,9 @@ static const struct gen_device_info gen_device_info_snb_gt2 = {
.max_wm_threads = 80,
.urb = {
.size = 64,
- .min_vs_entries = 24,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 24,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 256,
[MESA_SHADER_GEOMETRY] = 256,
@@ -130,8 +134,10 @@ static const struct gen_device_info gen_device_info_ivb_gt1 = {
.max_cs_threads = 36,
.urb = {
.size = 128,
- .min_vs_entries = 32,
- .min_ds_entries = 10,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 32,
+ [MESA_SHADER_TESS_EVAL] = 10,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 512,
[MESA_SHADER_TESS_CTRL] = 32,
@@ -152,8 +158,10 @@ static const struct gen_device_info gen_device_info_ivb_gt2 = {
.max_cs_threads = 64,
.urb = {
.size = 256,
- .min_vs_entries = 32,
- .min_ds_entries = 10,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 32,
+ [MESA_SHADER_TESS_EVAL] = 10,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 704,
[MESA_SHADER_TESS_CTRL] = 64,
@@ -175,8 +183,10 @@ static const struct gen_device_info gen_device_info_byt = {
.max_cs_threads = 32,
.urb = {
.size = 128,
- .min_vs_entries = 32,
- .min_ds_entries = 10,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 32,
+ [MESA_SHADER_TESS_EVAL] = 10,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 512,
[MESA_SHADER_TESS_CTRL] = 32,
@@ -203,8 +213,10 @@ static const struct gen_device_info gen_device_info_hsw_gt1 = {
.max_cs_threads = 70,
.urb = {
.size = 128,
- .min_vs_entries = 32,
- .min_ds_entries = 10,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 32,
+ [MESA_SHADER_TESS_EVAL] = 10,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 640,
[MESA_SHADER_TESS_CTRL] = 64,
@@ -225,8 +237,10 @@ static const struct gen_device_info gen_device_info_hsw_gt2 = {
.max_cs_threads = 70,
.urb = {
.size = 256,
- .min_vs_entries = 64,
- .min_ds_entries = 10,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 64,
+ [MESA_SHADER_TESS_EVAL] = 10,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 1664,
[MESA_SHADER_TESS_CTRL] = 128,
@@ -247,8 +261,10 @@ static const struct gen_device_info gen_device_info_hsw_gt3 = {
.max_cs_threads = 70,
.urb = {
.size = 512,
- .min_vs_entries = 64,
- .min_ds_entries = 10,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 64,
+ [MESA_SHADER_TESS_EVAL] = 10,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 1664,
[MESA_SHADER_TESS_CTRL] = 128,
@@ -279,8 +295,10 @@ static const struct gen_device_info gen_device_info_bdw_gt1 = {
.max_cs_threads = 42,
.urb = {
.size = 192,
- .min_vs_entries = 64,
- .min_ds_entries = 34,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 64,
+ [MESA_SHADER_TESS_EVAL] = 34,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 2560,
[MESA_SHADER_TESS_CTRL] = 504,
@@ -296,8 +314,10 @@ static const struct gen_device_info gen_device_info_bdw_gt2 = {
.max_cs_threads = 56,
.urb = {
.size = 384,
- .min_vs_entries = 64,
- .min_ds_entries = 34,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 64,
+ [MESA_SHADER_TESS_EVAL] = 34,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 2560,
[MESA_SHADER_TESS_CTRL] = 504,
@@ -313,8 +333,10 @@ static const struct gen_device_info gen_device_info_bdw_gt3 = {
.max_cs_threads = 56,
.urb = {
.size = 384,
- .min_vs_entries = 64,
- .min_ds_entries = 34,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 64,
+ [MESA_SHADER_TESS_EVAL] = 34,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 2560,
[MESA_SHADER_TESS_CTRL] = 504,
@@ -336,8 +358,10 @@ static const struct gen_device_info gen_device_info_chv = {
.max_cs_threads = 6 * 7,
.urb = {
.size = 192,
- .min_vs_entries = 34,
- .min_ds_entries = 34,
+ .min_entries = {
+ [MESA_SHADER_VERTEX] = 34,
+ [MESA_SHADER_TESS_EVAL] = 34,
+ },
.max_entries = {
[MESA_SHADER_VERTEX] = 640,
[MESA_SHADER_TESS_CTRL] = 80,
@@ -363,8 +387,10 @@ static const struct gen_device_info gen_device_info_chv = {
.max_cs_threads = 56, \
.urb = { \
.size = 384, \
- .min_vs_entries = 64, \
- .min_ds_entries = 34, \
+ .min_entries = { \
+ [MESA_SHADER_VERTEX] = 64, \
+ [MESA_SHADER_TESS_EVAL] = 34, \
+ }, \
.max_entries = { \
[MESA_SHADER_VERTEX] = 1856, \
[MESA_SHADER_TESS_CTRL] = 672, \
@@ -386,8 +412,10 @@ static const struct gen_device_info gen_device_info_chv = {
.max_cs_threads = 6 * 6, \
.urb = { \
.size = 192, \
- .min_vs_entries = 34, \
- .min_ds_entries = 34, \
+ .min_entries = { \
+ [MESA_SHADER_VERTEX] = 34, \
+ [MESA_SHADER_TESS_EVAL] = 34, \
+ }, \
.max_entries = { \
[MESA_SHADER_VERTEX] = 704, \
[MESA_SHADER_TESS_CTRL] = 256, \
@@ -405,8 +433,10 @@ static const struct gen_device_info gen_device_info_chv = {
.max_cs_threads = 6 * 6, \
.urb = { \
.size = 128, \
- .min_vs_entries = 34, \
- .min_ds_entries = 34, \
+ .min_entries = { \
+ [MESA_SHADER_VERTEX] = 34, \
+ [MESA_SHADER_TESS_EVAL] = 34, \
+ }, \
.max_entries = { \
[MESA_SHADER_VERTEX] = 352, \
[MESA_SHADER_TESS_CTRL] = 128, \