summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_device_info.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-09-25 17:01:55 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-10-13 00:10:43 -0700
commitd76f6c7ae4d738193af2b3a06c4e6321e5e4daac (patch)
treedd0b3c58b7ff088410dd7663ec20040224c4a0dc /src/mesa/drivers/dri/i965/brw_device_info.h
parentafe05e71931f53843999ea967946fae1b219a374 (diff)
downloadexternal_mesa3d-d76f6c7ae4d738193af2b3a06c4e6321e5e4daac.zip
external_mesa3d-d76f6c7ae4d738193af2b3a06c4e6321e5e4daac.tar.gz
external_mesa3d-d76f6c7ae4d738193af2b3a06c4e6321e5e4daac.tar.bz2
i965: Move hardware limits to brw_device_info.
Since each kind of device has its own brw_device_info structure, we can simply store the URB and thread limits there. This eliminates all the large if-ladders, and simplifies the context initialization code quite a bit. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_device_info.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_device_info.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_device_info.h b/src/mesa/drivers/dri/i965/brw_device_info.h
index 9c2fecb..0f4c282 100644
--- a/src/mesa/drivers/dri/i965/brw_device_info.h
+++ b/src/mesa/drivers/dri/i965/brw_device_info.h
@@ -39,6 +39,22 @@ struct brw_device_info
bool must_use_separate_stencil;
bool has_llc;
+
+ /**
+ * GPU Limits:
+ * @{
+ */
+ unsigned max_vs_threads;
+ unsigned max_gs_threads;
+ unsigned max_wm_threads;
+
+ struct {
+ unsigned size;
+ unsigned min_vs_entries;
+ unsigned max_vs_entries;
+ unsigned max_gs_entries;
+ } urb;
+ /** @} */
};
const struct brw_device_info *brw_get_device_info(int devid);