ir3, freedreno: Round up constlen earlier
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 23 Jun 2020 15:09:10 +0000 (17:09 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Jun 2020 09:34:33 +0000 (09:34 +0000)
commit2841bb1fac81c32b736f593507d46c46e7488f68
treee37ecf259a620347a50449266ed197739fdb716a
parent4845f184d767edebb952a0a1a0f9af769b651656
ir3, freedreno: Round up constlen earlier

Prevents problems when calculating whether we overflow the shared limit.
Note that on a6xx, the macros handle the assert for us.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5607>
src/freedreno/ir3/ir3_shader.c
src/freedreno/vulkan/tu_clear_blit.c
src/freedreno/vulkan/tu_pipeline.c
src/gallium/drivers/freedreno/a4xx/fd4_program.c
src/gallium/drivers/freedreno/a5xx/fd5_compute.c
src/gallium/drivers/freedreno/a5xx/fd5_program.c
src/gallium/drivers/freedreno/a6xx/fd6_compute.c
src/gallium/drivers/freedreno/a6xx/fd6_program.c