freedreno/a6xx: pre-calculate userconst stateobj size
authorRob Clark <robdclark@chromium.org>
Wed, 11 Sep 2019 17:02:37 +0000 (10:02 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 13 Sep 2019 01:07:20 +0000 (18:07 -0700)
commitb4df115d3f3c7e5a1f6105c3737d0fe9a80dfcf2
tree8a4b642a3e2e306694d5dac07cc9bc67cf78fbbc
parent5a9dec7534c09b7eb1646085517dcce5ff48033c
freedreno/a6xx: pre-calculate userconst stateobj size

The AnTuTu "garden" benchmark overflows the fixed size constbuffer
stateobject, so lets be more clever and calculate (a potentially
slightly pessimistic) actual size.

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/freedreno/ir3/ir3_shader.h
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_program.c
src/gallium/drivers/freedreno/ir3/ir3_gallium.c
src/gallium/drivers/freedreno/ir3/ir3_gallium.h