mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
anv: fix transform feedback surface size
Non multiple 4 sizes are causing issue in particular < 4. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3450 Fixes:36ee2fd61c("anv: Implement the basic form of VK_EXT_transform_feedback") Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6430> (cherry picked from commitfd10cb8cfc)
This commit is contained in:
parent
c1e2e33752
commit
33653e6dde
2 changed files with 2 additions and 2 deletions
|
|
@ -1507,7 +1507,7 @@
|
|||
"description": "anv: fix transform feedback surface size",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "36ee2fd61c8f943be1d1e2b0354f7a121ffef28f"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -3412,7 +3412,7 @@ genX(cmd_buffer_flush_state)(struct anv_cmd_buffer *cmd_buffer)
|
|||
sob.SurfaceBaseAddress = anv_address_add(xfb->buffer->address,
|
||||
xfb->offset);
|
||||
/* Size is in DWords - 1 */
|
||||
sob.SurfaceSize = xfb->size / 4 - 1;
|
||||
sob.SurfaceSize = DIV_ROUND_UP(xfb->size, 4) - 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue