diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2013-11-01 11:44:09 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2013-11-21 00:26:11 -0800 |
commit | b61ff94032ba136b34586840301169c4e126d1eb (patch) | |
tree | 1912579dc53e2ba8ff90660221a4c6e0240be980 | |
parent | b7c0b61782251c1dedb0b0fb0e6654af81249910 (diff) | |
download | external_mesa3d-b61ff94032ba136b34586840301169c4e126d1eb.zip external_mesa3d-b61ff94032ba136b34586840301169c4e126d1eb.tar.gz external_mesa3d-b61ff94032ba136b34586840301169c4e126d1eb.tar.bz2 |
i965: Add device info structs for Broadwell.
As always, the chipset limits here are placeholders, rather than the
actual values.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_device_info.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_device_info.c b/src/mesa/drivers/dri/i965/brw_device_info.c index 5a35747..eb1df79 100644 --- a/src/mesa/drivers/dri/i965/brw_device_info.c +++ b/src/mesa/drivers/dri/i965/brw_device_info.c @@ -192,6 +192,35 @@ static const struct brw_device_info brw_device_info_hsw_gt3 = { }, }; +/* Thread counts and URB limits are placeholders, and may not be accurate. */ +#define GEN8_FEATURES \ + .gen = 8, \ + .has_hiz_and_separate_stencil = true, \ + .must_use_separate_stencil = true, \ + .has_llc = true, \ + .has_pln = true, \ + .max_vs_threads = 280, \ + .max_gs_threads = 256, \ + .max_wm_threads = 64, /* threads per PSD */ \ + .urb = { \ + .size = 128, \ + .min_vs_entries = 64, \ + .max_vs_entries = 1664, \ + .max_gs_entries = 640, \ + } + +static const struct brw_device_info brw_device_info_bdw_gt1 = { + GEN8_FEATURES, .gt = 1, +}; + +static const struct brw_device_info brw_device_info_bdw_gt2 = { + GEN8_FEATURES, .gt = 2, +}; + +static const struct brw_device_info brw_device_info_bdw_gt3 = { + GEN8_FEATURES, .gt = 3, +}; + const struct brw_device_info * brw_get_device_info(int devid) { |