i965: Add brw_device_info::min_ds_entries field.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Nov 2015 23:26:50 +0000 (15:26 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Dec 2015 22:48:55 +0000 (14:48 -0800)
commit87a1166310161d6ad703e802caa091850462ea55
tree921016fae9f845d1c8cba0f4d3bad56cab562280
parent42ca675cc91af7ee06e2a47daa57d5d65bdd1c80
i965: Add brw_device_info::min_ds_entries field.

From the 3DSTATE_URB_DS documentation:

"Project: IVB, HSW
 If Domain Shader Thread Dispatch is Enabled then the minimum number of
 handles that must be allocated is 10 URB entries."

"Project: BDW+
 If Domain Shader Thread Dispatch is Enabled then the minimum number of
 handles that must be allocated is 34 URB entries."

When the HS is run in SINGLE_PATCH mode (the only mode we support
today), there is no minimum for HS - it's just zero.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_device_info.c
src/mesa/drivers/dri/i965/brw_device_info.h