mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 23:50:11 +01:00
panfrost: Size UBO#0 accurately
We explicitly calculated its size as (sysvals + uniforms). We don't need to check the shader metadata for that. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6440>
This commit is contained in:
parent
e5689a5713
commit
e45142113c
1 changed files with 2 additions and 2 deletions
|
|
@ -1118,9 +1118,9 @@ panfrost_emit_const_buf(struct panfrost_batch *batch,
|
|||
|
||||
/* Upload uniforms as a UBO */
|
||||
|
||||
if (ss->uniform_count) {
|
||||
if (size) {
|
||||
pan_pack(ubo_ptr, UNIFORM_BUFFER, cfg) {
|
||||
cfg.entries = ss->uniform_count;
|
||||
cfg.entries = DIV_ROUND_UP(size, 16);
|
||||
cfg.pointer = transfer.gpu;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue