mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 21:10:16 +01:00
i965: Fix VBO last-valid-offset setup on Ironlake.
Instead of doing math based on the (broken for VBO && offset != 0) input->count number, just use the BO size. Fixes assertion failure in ETQW.
This commit is contained in:
parent
ab12e764ba
commit
5f305b1db9
1 changed files with 3 additions and 10 deletions
|
|
@ -536,16 +536,9 @@ static void brw_emit_vertices(struct brw_context *brw)
|
|||
I915_GEM_DOMAIN_VERTEX, 0,
|
||||
input->offset);
|
||||
if (BRW_IS_IGDNG(brw)) {
|
||||
if (input->stride) {
|
||||
OUT_RELOC(input->bo,
|
||||
I915_GEM_DOMAIN_VERTEX, 0,
|
||||
input->offset + input->stride * input->count - 1);
|
||||
} else {
|
||||
assert(input->count == 1);
|
||||
OUT_RELOC(input->bo,
|
||||
I915_GEM_DOMAIN_VERTEX, 0,
|
||||
input->offset + input->element_size - 1);
|
||||
}
|
||||
OUT_RELOC(input->bo,
|
||||
I915_GEM_DOMAIN_VERTEX, 0,
|
||||
input->bo->size - 1);
|
||||
} else
|
||||
OUT_BATCH(input->stride ? input->count : 0);
|
||||
OUT_BATCH(0); /* Instance data step rate */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue