mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
i965/gen6: Fix assertions on VS/GS URB size.
The "{VS,GS} URB Entry Allocation Size" fields of 3DSTATE_URB allow
values in the range 0-4, but they are U8-1 fields, so the range of
possible allocation sizes is 1-5. We were erroneously prohibiting a
size of 5.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
784044c206
commit
57b8cff33c
1 changed files with 2 additions and 2 deletions
|
|
@ -86,8 +86,8 @@ gen6_upload_urb( struct brw_context *brw )
|
|||
assert(brw->urb.nr_vs_entries >= brw->urb.min_vs_entries);
|
||||
assert(brw->urb.nr_vs_entries % 4 == 0);
|
||||
assert(brw->urb.nr_gs_entries % 4 == 0);
|
||||
assert(vs_size < 5);
|
||||
assert(gs_size < 5);
|
||||
assert(vs_size <= 5);
|
||||
assert(gs_size <= 5);
|
||||
|
||||
BEGIN_BATCH(3);
|
||||
OUT_BATCH(_3DSTATE_URB << 16 | (3 - 2));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue