ilo: fix bound check for 3DSTATE_URB_VS

Fix max/min entries on GEN7.5 GT2/GT3.
This commit is contained in:
Chia-I Wu 2014-08-31 01:34:41 +08:00
parent 5f4b13f5fa
commit 255b274d75
1 changed files with 3 additions and 3 deletions

View File

@ -774,15 +774,15 @@ gen7_emit_3dstate_urb(const struct ilo_dev_info *dev,
switch (subop) {
case GEN7_RENDER_OPCODE_3DSTATE_URB_VS:
min_entries = 32;
switch (dev->gen) {
case ILO_GEN(7.5):
max_entries = (dev->gt >= 2) ? 1644 : 640;
max_entries = (dev->gt >= 2) ? 1664 : 640;
min_entries = (dev->gt >= 2) ? 64 : 32;
break;
case ILO_GEN(7):
default:
max_entries = (dev->gt == 2) ? 704 : 512;
min_entries = 32;
break;
}