mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
v3d: take into account prim_counts_offset
Specifically when reading the primitive counters. This fixed ~700 CTS tests using this pattern: dEQP-GLES3.functional.transform_feedback.* when run after tests like dEQP-GLES3.functional.prerequisite.read_pixels on the same caselist. When run individually those tests were passing because prim_counts_offset was zero. Fixes:0f2d1dfe65("v3d: use the GPU to record primitives written to transform feedback") Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (cherry picked from commitfa41a51891)
This commit is contained in:
parent
c48dc6ad5f
commit
0beee2f723
1 changed files with 1 additions and 1 deletions
|
|
@ -457,7 +457,7 @@ v3d_read_and_accumulate_primitive_counters(struct v3d_context *v3d)
|
|||
perf_debug("stalling on TF counts readback");
|
||||
struct v3d_resource *rsc = v3d_resource(v3d->prim_counts);
|
||||
if (v3d_bo_wait(rsc->bo, PIPE_TIMEOUT_INFINITE, "prim-counts")) {
|
||||
uint32_t *map = v3d_bo_map(rsc->bo);
|
||||
uint32_t *map = v3d_bo_map(rsc->bo) + v3d->prim_counts_offset;
|
||||
v3d->tf_prims_generated += map[V3D_PRIM_COUNTS_TF_WRITTEN];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue